Skip to content

Commit

Permalink
include ip_reservations when creating/getting gateways in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Dec 15, 2023
1 parent 025cc2f commit 8fd9b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e/gateways/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func TestGateways_Create(t *testing.T) {
apiClient := helper.TestClient()
gateways, _, err := apiClient.MetalGatewaysApi.
FindMetalGatewaysByProject(context.Background(), projectId).
Include([]string{"ip_reservation"}).
Execute()
if err != nil {
t.Error(err)
Expand Down
1 change: 1 addition & 0 deletions test/e2e/gateways/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func TestGateways_Delete(t *testing.T) {
apiClient := helper.TestClient()
gateways, _, err := apiClient.MetalGatewaysApi.
FindMetalGatewayById(context.Background(), metalGateway.GetId()).
Include([]string{"ip_reservation"}).
Execute()
if err != nil && !strings.Contains(err.Error(), "Not Found") {
t.Error(err)
Expand Down

0 comments on commit 8fd9b77

Please sign in to comment.