Skip to content

Commit f3425d4

Browse files
committed
fix waf service call name
1 parent 51f58bd commit f3425d4

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

pkg/aws/services/wafv2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type WAFv2 interface {
1010
AssociateWebACLWithContext(context.Context, *wafv2.AssociateWebACLInput) (*wafv2.AssociateWebACLOutput, error)
1111
DisassociateWebACLWithContext(ctx context.Context, req *wafv2.DisassociateWebACLInput) (*wafv2.DisassociateWebACLOutput, error)
1212
GetWebACLForResourceWithContext(ctx context.Context, req *wafv2.GetWebACLForResourceInput) (*wafv2.GetWebACLForResourceOutput, error)
13-
ListWebACLs(ctx context.Context, req *wafv2.ListWebACLsInput) (*wafv2.ListWebACLsOutput, error)
13+
ListWebACLsWithContext(ctx context.Context, req *wafv2.ListWebACLsInput) (*wafv2.ListWebACLsOutput, error)
1414
}
1515

1616
// NewWAFv2 constructs new WAFv2 implementation.
@@ -48,7 +48,7 @@ func (c *wafv2Client) GetWebACLForResourceWithContext(ctx context.Context, req *
4848
return client.GetWebACLForResource(ctx, req)
4949
}
5050

51-
func (c *wafv2Client) ListWebACLs(ctx context.Context, req *wafv2.ListWebACLsInput) (*wafv2.ListWebACLsOutput, error) {
51+
func (c *wafv2Client) ListWebACLsWithContext(ctx context.Context, req *wafv2.ListWebACLsInput) (*wafv2.ListWebACLsOutput, error) {
5252
client, err := c.awsClientsProvider.GetWAFv2Client(ctx, "GetWebACL")
5353
if err != nil {
5454
return nil, err

pkg/aws/services/wafv2_mocks.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/ingress/model_build_load_balancer_addons_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ func Test_defaultModelBuildTask_buildWAFv2WebACLAssociationFromWAFv2Name(t *test
12931293

12941294
for _, call := range tt.args.getWebACLCalls {
12951295
wafv2Client.EXPECT().
1296-
ListWebACLs(gomock.Any(), call.req).
1296+
ListWebACLsWithContext(gomock.Any(), call.req).
12971297
Return(call.resp, call.err)
12981298
}
12991299

pkg/ingress/model_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ func (w *webACLNameToArnMapper) getArnByName(ctx context.Context, webACLName str
622622
NextMarker: next,
623623
}
624624

625-
output, err := w.wafv2Client.ListWebACLs(ctx, req)
625+
output, err := w.wafv2Client.ListWebACLsWithContext(ctx, req)
626626
if err != nil {
627627
return "", err
628628
}

0 commit comments

Comments
 (0)