Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SDK paginator mocks #7850

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Fix SDK paginator mocks #7850

merged 1 commit into from
Jul 2, 2024

Conversation

cPu1
Copy link
Contributor

@cPu1 cPu1 commented Jun 25, 2024

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.

Fixes #7845

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

@cPu1 cPu1 force-pushed the fix-sdk-mocks branch 2 times, most recently from 9d4fda6 to 1af848c Compare June 25, 2024 21:43
The latest version of `aws-sdk-go-v2/service/eks` breaks unit tests. This [changelist](aws/aws-sdk-go-v2#2682) 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.

Fixes eksctl-io#7845
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cPu1 cPu1 merged commit 5aaba15 into eksctl-io:main Jul 2, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Latest version of AWS SDK breaks unit tests
2 participants