Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Jul 9, 2024
1 parent c1007db commit d2ad1a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions cmd/size_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,16 +406,17 @@ func Test_SizeReservationsCmd_MultiResult(t *testing.T) {
{
name: "reservation list",
cmd: func(want []*models.V1SizeReservationResponse) []string {
args := []string{"size", "reservations", "list", "--project", "project-1", "--size-id", "size-1", "--tenant", "tenant-1"}
args := []string{"size", "reservations", "list", "--partition", "partition-1", "--project", "project-1", "--size-id", "size-1", "--tenant", "tenant-1"}
assertExhaustiveArgs(t, args, "sort-by")
return args
},
mocks: &client.MetalMockFns{
Size: func(mock *mock.Mock) {
mock.On("ListSizeReservations", testcommon.MatchIgnoreContext(t, size.NewListSizeReservationsParams().WithBody(&models.V1SizeReservationListRequest{
Projectid: "project-1",
Sizeid: "size-1",
Tenant: "tenant-1",
Projectid: "project-1",
Sizeid: "size-1",
Tenant: "tenant-1",
Partitionid: "partition-1",
})), nil).Return(&size.ListSizeReservationsOK{Payload: reservations}, nil)
},
},
Expand Down
11 changes: 6 additions & 5 deletions docs/metalctl_size_reservations_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ metalctl size reservations list [flags]
### Options

```
-h, --help help for list
--project string the project to filter
--size-id string the size-id to filter
--sort-by strings sort by (comma separated) column(s), sort direction can be changed by appending :asc or :desc behind the column identifier. possible values: partition|project|size|tenant
--tenant string the tenant to filter
-h, --help help for list
--partition string the partition to filter
--project string the project to filter
--size-id string the size-id to filter
--sort-by strings sort by (comma separated) column(s), sort direction can be changed by appending :asc or :desc behind the column identifier. possible values: partition|project|size|tenant
--tenant string the tenant to filter
```

### Options inherited from parent commands
Expand Down

0 comments on commit d2ad1a4

Please sign in to comment.