Skip to content

Commit

Permalink
add second item
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-swinkler committed Mar 25, 2024
1 parent 6d4fc14 commit 2e0e837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sdk/testint/network_policies_gen_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ func TestInt_NetworkPolicies(t *testing.T) {

t.Run("Alter - set allowed network rule list", func(t *testing.T) {
allowedNetworkRule := createNetworkRuleHandle(t, client)

allowedNetworkRule2 := createNetworkRuleHandle(t, client)
req := defaultCreateRequest()
err, dropNetworkPolicy := createNetworkPolicy(t, client, req)
require.NoError(t, err)
t.Cleanup(dropNetworkPolicy)

err = client.NetworkPolicies.Alter(ctx, sdk.NewAlterNetworkPolicyRequest(req.GetName()).
WithSet(sdk.NewNetworkPolicySetRequest().WithAllowedNetworkRuleList([]sdk.SchemaObjectIdentifier{allowedNetworkRule})))
WithSet(sdk.NewNetworkPolicySetRequest().WithAllowedNetworkRuleList([]sdk.SchemaObjectIdentifier{allowedNetworkRule, allowedNetworkRule2})))
require.NoError(t, err)

np, err := client.NetworkPolicies.ShowByID(ctx, req.GetName())
Expand Down

0 comments on commit 2e0e837

Please sign in to comment.