Skip to content

Commit

Permalink
[CI] Fix number of args passed to FWaaSv2 tests
Browse files Browse the repository at this point in the history
A follow-up to #2936 that
missed part of the
`internal/acceptance/openstack/networking/v2/extensions/fwaas_v2/groups_test.go`
file.

Fixes #2981
  • Loading branch information
mandre committed Mar 13, 2024
1 parent 35b8342 commit 8e35b9c
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -51,7 +51,7 @@ func TestGroupCRUD(t *testing.T) {
EgressFirewallPolicyID: &firewall_policy_id,
}

updatedGroup, err := groups.Update(client, createdGroup.ID, updateOpts).Extract()
updatedGroup, err := groups.Update(context.TODO(), client, createdGroup.ID, updateOpts).Extract()
if err != nil {
t.Fatalf("Unable to update firewall group %s: %v", createdGroup.ID, err)
}
Expand All @@ -65,7 +65,7 @@ func TestGroupCRUD(t *testing.T) {

t.Logf("Updated firewall group %s", updatedGroup.ID)

removeIngressPolicy, err := groups.RemoveIngressPolicy(client, updatedGroup.ID).Extract()
removeIngressPolicy, err := groups.RemoveIngressPolicy(context.TODO(), client, updatedGroup.ID).Extract()
if err != nil {
t.Fatalf("Unable to remove ingress firewall policy from firewall group %s: %v", removeIngressPolicy.ID, err)
}
Expand All @@ -75,7 +75,7 @@ func TestGroupCRUD(t *testing.T) {

t.Logf("Ingress policy removed from firewall group %s", updatedGroup.ID)

removeEgressPolicy, err := groups.RemoveEgressPolicy(client, updatedGroup.ID).Extract()
removeEgressPolicy, err := groups.RemoveEgressPolicy(context.TODO(), client, updatedGroup.ID).Extract()
if err != nil {
t.Fatalf("Unable to remove egress firewall policy from firewall group %s: %v", removeEgressPolicy.ID, err)
}
Expand Down

0 comments on commit 8e35b9c

Please sign in to comment.