-
Notifications
You must be signed in to change notification settings - Fork 399
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] Verify IAM policy in TestAccSystemGetAWSSNSIAMPolicy_basic #441
[fix] Verify IAM policy in TestAccSystemGetAWSSNSIAMPolicy_basic #441
Conversation
177d4cc
to
61e8813
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer that we instead rewrite the test to not care at all about the IAM user. I think the assertion could be as simple as "we got some valid JSON".
61e8813
to
90a5ed3
Compare
@ryanking Changed the test to verify policy JSON using regex. Please review it. |
pkg/datasources/system_get_aws_sns_iam_policy_acceptance_test.go
Outdated
Show resolved
Hide resolved
90a5ed3
to
06454a5
Compare
@ryanking Can you review this? |
/ok-to-test sha=06454a5 |
Integration tests success for 06454a5 |
<!-- Feel free to delete comments as you fill this in --> <!-- summary of changes --> * AWS IAM User ARN is different for each Snowflake account but IAM user ARN is hardcoded in an acceptance test. * This PR makes the AWS IAM User ARN configurable by environment variable. * Fix Snowflake-Labs#439 ## Test Plan <!-- detail ways in which this PR has been tested or needs to be tested --> * [x] acceptance tests <!-- add more below if you think they are relevant --> * [ ] … ## References <!-- issues documentation links, etc --> *
<!-- Feel free to delete comments as you fill this in --> <!-- summary of changes --> * AWS IAM User ARN is different for each Snowflake account but IAM user ARN is hardcoded in an acceptance test. * This PR makes the AWS IAM User ARN configurable by environment variable. * Fix Snowflake-Labs#439 ## Test Plan <!-- detail ways in which this PR has been tested or needs to be tested --> * [x] acceptance tests <!-- add more below if you think they are relevant --> * [ ] … ## References <!-- issues documentation links, etc --> *
<!-- Feel free to delete comments as you fill this in --> <!-- summary of changes --> * AWS IAM User ARN is different for each Snowflake account but IAM user ARN is hardcoded in an acceptance test. * This PR makes the AWS IAM User ARN configurable by environment variable. * Fix Snowflake-Labs#439 ## Test Plan <!-- detail ways in which this PR has been tested or needs to be tested --> * [x] acceptance tests <!-- add more below if you think they are relevant --> * [ ] … ## References <!-- issues documentation links, etc --> *
Test Plan
References