The latest version of aws-sdk-go-v2/service/eks breaks unit tests. This changelist added SDK-specific feature tracking where all paginated operations now pass an additional argument (addIsPaginatorUserAgent) to add UserAgentFeaturePaginator to the user agent. The mocks, however, do not expect this variadic argument to be passed, resulting in failing assertions. This needs to be fixed before upgrading to the newer version of the SDK.
mock: Unexpected Method Call
-----------------------------
ListClusters(context.backgroundCtx,*eks.ListClustersInput,func(*eks.Options))
0: context.backgroundCtx{emptyCtx:context.emptyCtx{}}
1: &eks.ListClustersInput{Include:[]string{"all"}, MaxResults:(*int32)(0x14000c24a50), NextToken:(*string)(nil), noSmithyDocumentSerde:document.NoSerde{}}
2: (func(*eks.Options))(0x103f33540)
The closest call I have is:
ListClusters(string,*eks.ListClustersInput)
0: "mock.Anything"
1: &eks.ListClustersInput{Include:[]string{"all"}, MaxResults:(*int32)(0x14000c30070), NextToken:(*string)(nil), noSmithyDocumentSerde:document.NoSerde{}}
Provided 2 arguments, mocked for 3 arguments
Diff: 0: PASS: (context.backgroundCtx=context.Background) == (string=mock.Anything)
1: PASS: (*eks.ListClustersInput=&{[all] 0x14000c24a50 <nil> {}}) == (*eks.ListClustersInput=&{[all] 0x14000c30070 <nil> {}})
2: FAIL: (func(*eks.Options)=0x103f33540) != (Missing)
The latest version of
aws-sdk-go-v2/service/eksbreaks unit tests. This changelist added SDK-specific feature tracking where all paginated operations now pass an additional argument (addIsPaginatorUserAgent) to addUserAgentFeaturePaginatorto the user agent. The mocks, however, do not expect this variadic argument to be passed, resulting in failing assertions. This needs to be fixed before upgrading to the newer version of the SDK.