diff --git a/cmd/size_test.go b/cmd/size_test.go index d8ffa1c9..3bb29ec2 100644 --- a/cmd/size_test.go +++ b/cmd/size_test.go @@ -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) }, }, diff --git a/docs/metalctl_size_reservations_list.md b/docs/metalctl_size_reservations_list.md index 58ec5a2b..13f8c8ad 100644 --- a/docs/metalctl_size_reservations_list.md +++ b/docs/metalctl_size_reservations_list.md @@ -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