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/config: Update acceptance tests to use ARN testing check functions #12734

Merged
merged 3 commits into from
Apr 23, 2020

Conversation

gdavison
Copy link
Contributor

@gdavison gdavison commented Apr 8, 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:

resource/aws_config_configuration_recorder: prevent error during deletion operation when resource is missing

Previously:

aws/resource_aws_config_aggregate_authorization_test.go:74:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_config_config_rule_test.go:57:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_config_config_rule_test.go:95:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_config_configuration_aggregator_test.go:109:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_config_configuration_recorder_test.go:85:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_config_configuration_recorder_test.go:112:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_config_delivery_channel_test.go:119:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)

Output from acceptance testing:

--- PASS: TestAccAWSConfig (1477.75s)
    --- PASS: TestAccAWSConfig/ConfigurationRecorderStatus (150.11s)
        --- PASS: TestAccAWSConfig/ConfigurationRecorderStatus/basic (37.36s)
        --- PASS: TestAccAWSConfig/ConfigurationRecorderStatus/startEnabled (75.11s)
        --- PASS: TestAccAWSConfig/ConfigurationRecorderStatus/importBasic (37.64s)
    --- PASS: TestAccAWSConfig/ConfigurationRecorder (121.82s)
        --- PASS: TestAccAWSConfig/ConfigurationRecorder/basic (35.81s)
        --- PASS: TestAccAWSConfig/ConfigurationRecorder/allParams (38.05s)
        --- PASS: TestAccAWSConfig/ConfigurationRecorder/importBasic (47.95s)
    --- PASS: TestAccAWSConfig/DeliveryChannel (116.79s)
        --- PASS: TestAccAWSConfig/DeliveryChannel/basic (41.71s)
        --- PASS: TestAccAWSConfig/DeliveryChannel/allParams (39.26s)
        --- PASS: TestAccAWSConfig/DeliveryChannel/importBasic (35.83s)
    --- PASS: TestAccAWSConfig/OrganizationCustomRule (26.85s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/Description (1.97s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/ExcludedAccounts (1.79s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/ResourceIdScope (2.75s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/TriggerTypes (2.72s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/basic (2.09s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/disappears (1.91s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/errorHandling (2.02s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/ResourceTypesScope (1.86s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/TagKeyScope (2.01s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/TagValueScope (1.97s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/InputParameters (1.98s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/LambdaFunctionArn (1.89s)
        --- SKIP: TestAccAWSConfig/OrganizationCustomRule/MaximumExecutionFrequency (1.89s)
    --- PASS: TestAccAWSConfig/OrganizationManagedRule (24.79s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/basic (1.92s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/errorHandling (2.73s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/InputParameters (2.65s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/MaximumExecutionFrequency (1.94s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/TagKeyScope (1.93s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/disappears (1.90s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/Description (1.99s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/ExcludedAccounts (1.92s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/ResourceIdScope (1.91s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/ResourceTypesScope (1.85s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/RuleIdentifier (1.99s)
        --- SKIP: TestAccAWSConfig/OrganizationManagedRule/TagValueScope (2.05s)
    --- PASS: TestAccAWSConfig/Config (1037.38s)
        --- PASS: TestAccAWSConfig/Config/scopeTagKeyEmpty (106.82s)
        --- PASS: TestAccAWSConfig/Config/scopeTagValue (116.24s)
        --- PASS: TestAccAWSConfig/Config/tags (134.05s)
        --- PASS: TestAccAWSConfig/Config/ownerAws (105.88s)
        --- PASS: TestAccAWSConfig/Config/customlambda (119.05s)
        --- PASS: TestAccAWSConfig/Config/importLambda (123.19s)
        --- PASS: TestAccAWSConfig/Config/basic (106.91s)
        --- PASS: TestAccAWSConfig/Config/importAws (106.46s)
        --- PASS: TestAccAWSConfig/Config/scopeTagKey (118.78s)
--- SKIP: TestAccAWSConfigConfigurationAggregator_organization (2.79s)
--- SKIP: TestAccAWSConfigConfigurationAggregator_switch (2.82s)
--- PASS: TestAccAWSConfigAggregateAuthorization_basic (17.42s)
--- PASS: TestAccAWSConfigConfigurationAggregator_account (19.78s)
--- PASS: TestAccAWSConfigAggregateAuthorization_tags (40.49s)
--- PASS: TestAccAWSConfigConfigurationAggregator_tags (47.22s)```

@gdavison gdavison requested a review from a team April 8, 2020 19:17
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/M Managed by automation to categorize the size of a PR. service/configservice Issues and PRs that pertain to the configservice service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 8, 2020
@bflad bflad 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 Apr 9, 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 🚀

Output from acceptance testing:

--- PASS: TestAccAWSConfigAggregateAuthorization_basic (8.57s)
--- PASS: TestAccAWSConfigConfigurationAggregator_account (11.30s)
--- PASS: TestAccAWSConfigConfigurationAggregator_tags (24.00s)
--- PASS: TestAccAWSConfigAggregateAuthorization_tags (45.24s)

aws/resource_aws_config_config_rule_test.go Outdated Show resolved Hide resolved
aws/resource_aws_config_configuration_recorder.go Outdated Show resolved Hide resolved
@gdavison gdavison modified the milestones: v2.58.0, v2.59.0 Apr 16, 2020
@gdavison gdavison merged commit 6ee2c4b into master Apr 23, 2020
gdavison added a commit that referenced this pull request Apr 23, 2020
@bflad bflad deleted the t-clean-up-config-arn-tests branch April 23, 2020 21:29
@ghost
Copy link

ghost commented Apr 24, 2020

This has been released in version 2.59.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented May 24, 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 May 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/configservice Issues and PRs that pertain to the configservice service. size/M 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