Skip to content

Commit

Permalink
Fixed go client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pbesret committed Nov 8, 2024
1 parent fb3282f commit dab97b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion internal/client/compute_content_library_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ func TestCompute_ContentLibraryRead(t *testing.T) {

func TestContentLibraryClient_ListItems(t *testing.T) {
ctx := context.Background()
items, err := client.Compute().ContentLibrary().ListItems(ctx, os.Getenv(ContentLibraryId))
items, err := client.Compute().ContentLibrary().ListItems(ctx, &ContentLibraryItemFilter{
ContentLibraryId: os.Getenv(ContentLibraryId),
})
require.NoError(t, err)

require.GreaterOrEqual(t, len(items), 1)
Expand Down
2 changes: 1 addition & 1 deletion internal/client/compute_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (

func TestCompute_NetworkList(t *testing.T) {
ctx := context.Background()
networks, err := client.Compute().Network().List(ctx, "", "", "", "", "", "", "", "", true)
networks, err := client.Compute().Network().List(ctx, &NetworkFilter{})
require.NoError(t, err)

require.GreaterOrEqual(t, len(networks), 1)
Expand Down
2 changes: 1 addition & 1 deletion internal/client/compute_virtual_switch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (

func TestCompute_VirtualSwitchList(t *testing.T) {
ctx := context.Background()
virtualSwitchs, err := client.Compute().VirtualSwitch().List(ctx, "", "", "")
virtualSwitchs, err := client.Compute().VirtualSwitch().List(ctx, &VirtualSwitchFilter{})
require.NoError(t, err)

require.GreaterOrEqual(t, len(virtualSwitchs), 1)
Expand Down

0 comments on commit dab97b3

Please sign in to comment.