Skip to content

Commit 626fb2d

Browse files
committed
Fixing the failing unit test after updating the AWS SDK
1 parent fe8a989 commit 626fb2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exp/controllers/rosaroleconfig_controller_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ func TestROSARoleConfigReconcileCreate(t *testing.T) {
9494
defer mockCtrl.Finish()
9595
// mock iam client to expect ListRoles call
9696
mockIamClient := rosaMocks.NewMockIamApiClient(mockCtrl)
97-
mockIamClient.EXPECT().ListRoles(gomock.Any(), gomock.Any()).Return(&iamv2.ListRolesOutput{
98-
Roles: []iamTypes.Role{},
99-
}, nil).AnyTimes()
97+
mockIamClient.EXPECT().ListRoles(gomock.Any(), gomock.Any(), gomock.Any()).
98+
Return(&iamv2.ListRolesOutput{Roles: []iamTypes.Role{}}, nil).
99+
AnyTimes()
100100

101101
mockIamClient.EXPECT().ListOpenIDConnectProviders(gomock.Any(), gomock.Any()).Return(&iamv2.ListOpenIDConnectProvidersOutput{
102102
OpenIDConnectProviderList: []iamTypes.OpenIDConnectProviderListEntry{},

0 commit comments

Comments
 (0)