Skip to content

Fix flaky IMDS client test #3912

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

Merged
merged 2 commits into from
Apr 18, 2023
Merged

Fix flaky IMDS client test #3912

merged 2 commits into from
Apr 18, 2023

Conversation

dagnir
Copy link
Contributor

@dagnir dagnir commented Apr 14, 2023

Motivation and Context

This test should be less flaky since the mock client should never trigger the retry logic in the IMDS client by sometimes returning a 500.

Modifications

Testing

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@dagnir dagnir force-pushed the dongie/fix-imds-client-test branch from a81a68e to 9aef3db Compare April 14, 2023 22:11
This test should be less flaky since the mock client should never trigger the
retry logic in the IMDS client by sometimes returning a 500.
@dagnir dagnir force-pushed the dongie/fix-imds-client-test branch from 9aef3db to a893f54 Compare April 14, 2023 22:12
@dagnir dagnir marked this pull request as ready for review April 14, 2023 22:14
@dagnir dagnir requested a review from a team as a code owner April 14, 2023 22:14
@dagnir dagnir enabled auto-merge (squash) April 14, 2023 22:20
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dagnir dagnir merged commit c6c9d6a into master Apr 18, 2023
@dagnir dagnir deleted the dongie/fix-imds-client-test branch April 18, 2023 16:57
aws-sdk-java-automation added a commit that referenced this pull request Apr 19, 2023
…#2467)

* Update to next snapshot version: 2.20.49-SNAPSHOT

* Fix flaky IMDS client test (#3912)

This test should be less flaky since the mock client should never trigger the
retry logic in the IMDS client by sometimes returning a 500.

* Add TrustAllCertificates in CRT S3 Client options (#3903)

* Add TrustAllCertificates in CRT S3 Client options

* Handled PR comments

* Amazon Relational Database Service Update: Adds support for the ImageId parameter of CreateCustomDBEngineVersion to RDS Custom for Oracle

* AWS SecurityHub Update: Update that adds SDK code examples for Security Hub

* Amazon Comprehend Update: This release supports native document models for custom classification, in addition to plain-text models. You train native document models using documents (PDF, Word, images) in their native format.

* Amazon Simple Storage Service Update: Provides support for "Snow" Storage class.

* Amazon EC2 Container Service Update: This release supports the Account Setting "TagResourceAuthorization" that allows for enhanced Tagging security controls.

* AWS Secrets Manager Update: Documentation updates for Secrets Manager

* AWS S3 Control Update: Provides support for overriding endpoint when region is "snow". This will enable bucket APIs for Amazon S3 Compatible storage on Snow Family devices.

* AWS Resource Access Manager Update: This release adds support for customer managed permissions. Customer managed permissions enable customers to author and manage tailored permissions for resources shared using RAM.

* Updated endpoints.json and partitions.json.

* Release 2.20.49. Updated CHANGELOG.md, README.md and all pom.xml.

---------

Co-authored-by: AWS <>
Co-authored-by: Dongie Agnir <[email protected]>
Co-authored-by: John Viegas <[email protected]>
millems added a commit that referenced this pull request Apr 19, 2023
* Pull request: release <- staging/31d9787e-9a7d-4544-bbf2-ffb44eac702a (#2467)

* Update to next snapshot version: 2.20.49-SNAPSHOT

* Fix flaky IMDS client test (#3912)

This test should be less flaky since the mock client should never trigger the
retry logic in the IMDS client by sometimes returning a 500.

* Add TrustAllCertificates in CRT S3 Client options (#3903)

* Add TrustAllCertificates in CRT S3 Client options

* Handled PR comments

* Amazon Relational Database Service Update: Adds support for the ImageId parameter of CreateCustomDBEngineVersion to RDS Custom for Oracle

* AWS SecurityHub Update: Update that adds SDK code examples for Security Hub

* Amazon Comprehend Update: This release supports native document models for custom classification, in addition to plain-text models. You train native document models using documents (PDF, Word, images) in their native format.

* Amazon Simple Storage Service Update: Provides support for "Snow" Storage class.

* Amazon EC2 Container Service Update: This release supports the Account Setting "TagResourceAuthorization" that allows for enhanced Tagging security controls.

* AWS Secrets Manager Update: Documentation updates for Secrets Manager

* AWS S3 Control Update: Provides support for overriding endpoint when region is "snow". This will enable bucket APIs for Amazon S3 Compatible storage on Snow Family devices.

* AWS Resource Access Manager Update: This release adds support for customer managed permissions. Customer managed permissions enable customers to author and manage tailored permissions for resources shared using RAM.

* Updated endpoints.json and partitions.json.

* Release 2.20.49. Updated CHANGELOG.md, README.md and all pom.xml.

---------

Co-authored-by: AWS <>
Co-authored-by: Dongie Agnir <[email protected]>
Co-authored-by: John Viegas <[email protected]>

* Remove unnecessary ACL integration test for S3. (#2468)

* Update to next snapshot version: 2.20.50-SNAPSHOT

---------

Co-authored-by: aws-sdk-java-automation <[email protected]>
Co-authored-by: Dongie Agnir <[email protected]>
Co-authored-by: John Viegas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants