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: fix failing dashboard lifecycle test for multi-account and region #9799

Merged
merged 1 commit into from Dec 5, 2023

Conversation

sannya-singal
Copy link
Contributor

Motivation

When using values other than 000000000000 for account ID or us-east-1 for region, cloudwatch tests should still create the consequent resources in corresponding accounts and region.

Changes

This PR fixes all the failing tests tests.aws.services.cloudwatch.test_cloudwatch.TestCloudwatch.test_dashboard_lifecycle by replacing the static value of region us-east-1 with TEST_AWS_REGION_NAME.

Testing

The tests were failing previously when executed with a non-default account ID, set through environment variables (TEST_AWS_ACCOUNT_ID=111111111111, TEST_AWS_ACCESS_KEY_ID=111111111111, TEST_AWS_REGION=us-west-1).

@sannya-singal sannya-singal self-assigned this Dec 4, 2023
@sannya-singal sannya-singal added the semver: patch Non-breaking changes which can be included in patch releases label Dec 4, 2023
@sannya-singal sannya-singal marked this pull request as ready for review December 4, 2023 17:54
@coveralls
Copy link

Coverage Status

coverage: 84.231% (-0.008%) from 84.239%
when pulling ef86586 on test_cloudwatch
into f721442 on master.

Copy link

github-actions bot commented Dec 4, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 10m 13s ⏱️
2 383 tests 2 139 ✔️ 244 💤 0
2 384 runs  2 139 ✔️ 245 💤 0

Results for commit ef86586.

Copy link
Member

@silv-io silv-io left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@sannya-singal sannya-singal merged commit c1dcbc5 into master Dec 5, 2023
28 of 29 checks passed
@sannya-singal sannya-singal deleted the test_cloudwatch branch December 5, 2023 15:28
@steffyP steffyP mentioned this pull request Dec 15, 2023
11 tasks
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.

None yet

3 participants