Skip to content

Conversation

viren-nadkarni
Copy link
Member

@viren-nadkarni viren-nadkarni commented Sep 14, 2023

Summary

This PR fixes the following scenario tests that fail in non-default account/region:

  • tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication.test_setup
  • tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication.test_lambda_dynamodb
  • tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication.test_search_books

Changes

Earlier, the credentials and region were hardcoded within the Lambda function code. Now, a proper IAM role is passed as a Lambda execution role. The function derives the proper credentials from this role and uses them for internal Boto instantiation.

Tests

See ci/circleci: acceptance-tests job for 1b03412 🟢 - this CI run used non-default test credentials, this demonstrates that the tests pass in such a situation.

The affected tests have also been re-validated against AWS.

@viren-nadkarni viren-nadkarni changed the title Fix acceptance tests failing with non-default region Fix scenario tests failing with non-default region Sep 14, 2023
@viren-nadkarni viren-nadkarni self-assigned this Sep 15, 2023
@viren-nadkarni viren-nadkarni added this to the 3.0 milestone Sep 18, 2023
@viren-nadkarni viren-nadkarni added the semver: patch Non-breaking changes which can be included in patch releases label Sep 18, 2023
Other creds must be picked up from the execution role
Copy link

github-actions bot commented Dec 15, 2023

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   3m 16s ⏱️
386 tests 335 ✅  51 💤 0 ❌
772 runs  670 ✅ 102 💤 0 ❌

Results for commit 1b03412.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 15, 2023

LocalStack Community integration with Pro

    2 files      2 suites   1h 22m 54s ⏱️
2 617 tests 2 369 ✅ 248 💤 0 ❌
2 619 runs  2 369 ✅ 250 💤 0 ❌

Results for commit e2c4a79.

♻️ This comment has been updated with latest results.

@viren-nadkarni viren-nadkarni marked this pull request as ready for review January 31, 2024 13:43
Copy link
Member

@steffyP steffyP left a comment

Choose a reason for hiding this comment

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

Thanks for jumping on this by improving and fixing the code 🚀 🙏

@viren-nadkarni viren-nadkarni merged commit 896ba4b into master Feb 1, 2024
@viren-nadkarni viren-nadkarni deleted the bookstore branch February 1, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants