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

service/secretsmanager: Update acceptance tests to use ARN testing check functions #13152

Merged
merged 1 commit into from
May 6, 2020

Conversation

gdavison
Copy link
Contributor

@gdavison gdavison commented May 4, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #11888

Release note for CHANGELOG:

NONE

Previously:

aws/resource_aws_secretsmanager_secret_test.go:81:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_secretsmanager_secret_test.go:116:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_secretsmanager_secret_test.go:249:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_secretsmanager_secret_version_test.go:33:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_secretsmanager_secret_version_test.go:64:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)

Output from acceptance testing:

--- PASS: TestAccAwsSecretsManagerSecret_policy (17.47s)
--- PASS: TestAccAwsSecretsManagerSecret_Basic (19.59s)
--- PASS: TestAccAwsSecretsManagerSecret_withNamePrefix (20.10s)
--- PASS: TestAccAwsSecretsManagerSecret_Description (31.28s)
--- PASS: TestAccAwsSecretsManagerSecret_KmsKeyID (35.90s)
--- PASS: TestAccAwsSecretsManagerSecret_Tags (55.29s)
--- PASS: TestAccAwsSecretsManagerSecret_RecoveryWindowInDays_Recreate (57.99s)
--- PASS: TestAccAwsSecretsManagerSecret_RotationLambdaARN (60.14s)
--- PASS: TestAccAwsSecretsManagerSecret_RotationRules (66.59s)
--- PASS: TestAccAwsSecretsManagerSecretVersion_Base64Binary (18.69s)
--- PASS: TestAccAwsSecretsManagerSecretVersion_BasicString (20.54s)
--- PASS: TestAccAwsSecretsManagerSecretVersion_VersionStages (44.35s)

…ctions

Addresses:
aws/resource_aws_secretsmanager_secret_test.go:81:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_secretsmanager_secret_test.go:116:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_secretsmanager_secret_test.go:249:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_secretsmanager_secret_version_test.go:33:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_secretsmanager_secret_version_test.go:64:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
@gdavison gdavison requested a review from a team May 4, 2020 21:00
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/S Managed by automation to categorize the size of a PR. service/secretsmanager Issues and PRs that pertain to the secretsmanager service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels May 4, 2020
@gdavison gdavison added technical-debt Addresses areas of the codebase that need refactoring or redesign. and removed needs-triage Waiting for first response or review from a maintainer. labels May 4, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 Created #13181 for some unrelated flakiness I saw with CheckDestroy while testing this.

Output from acceptance testing:

--- PASS: TestAccAwsSecretsManagerSecret_policy (16.55s)
--- PASS: TestAccAwsSecretsManagerSecret_withNamePrefix (17.82s)
--- PASS: TestAccAwsSecretsManagerSecret_Basic (18.49s)
--- PASS: TestAccAwsSecretsManagerSecretVersion_BasicString (19.02s)
--- PASS: TestAccAwsSecretsManagerSecretVersion_Base64Binary (19.59s)
--- PASS: TestAccAwsSecretsManagerSecret_Description (29.24s)
--- PASS: TestAccAwsSecretsManagerSecret_KmsKeyID (38.04s)
--- PASS: TestAccAwsSecretsManagerSecretVersion_VersionStages (43.34s)
--- PASS: TestAccAwsSecretsManagerSecret_Tags (52.72s)
--- PASS: TestAccAwsSecretsManagerSecret_RotationRules (65.81s)
--- PASS: TestAccAwsSecretsManagerSecret_RecoveryWindowInDays_Recreate (66.03s)
--- PASS: TestAccAwsSecretsManagerSecret_RotationLambdaARN (75.98s)

@gdavison gdavison merged commit 5398a4f into master May 6, 2020
@gdavison gdavison deleted the t-clean-up-secretsmanager-arn-tests branch May 6, 2020 19:30
@ghost
Copy link

ghost commented Jun 6, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Jun 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/secretsmanager Issues and PRs that pertain to the secretsmanager service. size/S Managed by automation to categorize the size of a PR. technical-debt Addresses areas of the codebase that need refactoring or redesign. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants