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

Fixes non-service acceptance tests #29192

Merged
merged 5 commits into from
Feb 1, 2023
Merged

Fixes non-service acceptance tests #29192

merged 5 commits into from
Feb 1, 2023

Conversation

gdavison
Copy link
Contributor

@gdavison gdavison commented Feb 1, 2023

The switch to accessor functions for service clients in #28499 means that checks for fields not longer work.

Output from Acceptance Testing

$ TF_ACC=1 go test ./internal/acctest/... ./internal/provider/... -run=TestAcc -v

--- PASS: TestAccProvider_Region_stsRegion (8.81s)
--- PASS: TestAccProvider_Region_c2s (9.30s)
--- PASS: TestAccProvider_IgnoreTagsKeyPrefixes_multiple (11.69s)
--- PASS: TestAccProvider_DefaultTagsTags_multiple (11.79s)
--- PASS: TestAccProvider_DefaultTagsTags_one (11.83s)
--- PASS: TestAccProvider_DefaultAndIgnoreTags_emptyBlocks (12.01s)
--- PASS: TestAccProvider_DefaultTags_emptyBlock (12.38s)
--- PASS: TestAccProvider_AssumeRole_empty (19.13s)
--- PASS: TestAccProvider_IgnoreTagsKeys_one (11.03s)
--- PASS: TestAccProvider_IgnoreTagsKeys_multiple (11.54s)
--- PASS: TestAccProvider_Region_govCloud (8.38s)
--- PASS: TestAccProvider_IgnoreTagsKeyPrefixes_none (11.04s)
--- PASS: TestAccProvider_IgnoreTagsKeys_none (11.25s)
--- PASS: TestAccProvider_DefaultTagsTags_none (11.41s)
--- PASS: TestAccProvider_IgnoreTagsKeyPrefixes_one (11.41s)
--- PASS: TestAccProvider_Region_sc2s (6.72s)
--- PASS: TestAccProvider_Region_commercial (6.49s)
--- PASS: TestAccProvider_Region_china (5.27s)
--- PASS: TestAccProvider_IgnoreTags_emptyBlock (8.12s)
--- PASS: TestAccProvider_endpoints (73.21s)
--- PASS: TestAccProvider_unusualEndpoints (55.72s)
--- PASS: TestAccProvider_fipsEndpoint (82.83s)

@github-actions
Copy link

github-actions bot commented Feb 1, 2023

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/M Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 1, 2023
Copy link
Member

@jar-b jar-b left a comment

Choose a reason for hiding this comment

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

LGTM 👍

$ TF_ACC=1 go test ./internal/acctest/... ./internal/provider/... -run=TestAcc -v
testing: warning: no tests to run
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/acctest    3.045s [no tests to run]
=== RUN   TestAccProvider_DefaultTags_emptyBlock
=== PAUSE TestAccProvider_DefaultTags_emptyBlock
=== RUN   TestAccProvider_DefaultTagsTags_none
=== PAUSE TestAccProvider_DefaultTagsTags_none
=== RUN   TestAccProvider_DefaultTagsTags_one
=== PAUSE TestAccProvider_DefaultTagsTags_one
=== RUN   TestAccProvider_DefaultTagsTags_multiple
=== PAUSE TestAccProvider_DefaultTagsTags_multiple
=== RUN   TestAccProvider_DefaultAndIgnoreTags_emptyBlocks
=== PAUSE TestAccProvider_DefaultAndIgnoreTags_emptyBlocks
=== RUN   TestAccProvider_endpoints
=== PAUSE TestAccProvider_endpoints
=== RUN   TestAccProvider_fipsEndpoint
=== PAUSE TestAccProvider_fipsEndpoint
=== RUN   TestAccProvider_unusualEndpoints
=== PAUSE TestAccProvider_unusualEndpoints
=== RUN   TestAccProvider_IgnoreTags_emptyBlock
=== PAUSE TestAccProvider_IgnoreTags_emptyBlock
=== RUN   TestAccProvider_IgnoreTagsKeyPrefixes_none
=== PAUSE TestAccProvider_IgnoreTagsKeyPrefixes_none
=== RUN   TestAccProvider_IgnoreTagsKeyPrefixes_one
=== PAUSE TestAccProvider_IgnoreTagsKeyPrefixes_one
=== RUN   TestAccProvider_IgnoreTagsKeyPrefixes_multiple
=== PAUSE TestAccProvider_IgnoreTagsKeyPrefixes_multiple
=== RUN   TestAccProvider_IgnoreTagsKeys_none
=== PAUSE TestAccProvider_IgnoreTagsKeys_none
=== RUN   TestAccProvider_IgnoreTagsKeys_one
=== PAUSE TestAccProvider_IgnoreTagsKeys_one
=== RUN   TestAccProvider_IgnoreTagsKeys_multiple
=== PAUSE TestAccProvider_IgnoreTagsKeys_multiple
=== RUN   TestAccProvider_Region_c2s
=== PAUSE TestAccProvider_Region_c2s
=== RUN   TestAccProvider_Region_china
=== PAUSE TestAccProvider_Region_china
=== RUN   TestAccProvider_Region_commercial
=== PAUSE TestAccProvider_Region_commercial
=== RUN   TestAccProvider_Region_govCloud
=== PAUSE TestAccProvider_Region_govCloud
=== RUN   TestAccProvider_Region_sc2s
=== PAUSE TestAccProvider_Region_sc2s
=== RUN   TestAccProvider_Region_stsRegion
=== PAUSE TestAccProvider_Region_stsRegion
=== RUN   TestAccProvider_AssumeRole_empty
=== PAUSE TestAccProvider_AssumeRole_empty
=== CONT  TestAccProvider_DefaultTags_emptyBlock
=== CONT  TestAccProvider_AssumeRole_empty
=== CONT  TestAccProvider_IgnoreTagsKeyPrefixes_multiple
=== CONT  TestAccProvider_fipsEndpoint
=== CONT  TestAccProvider_IgnoreTags_emptyBlock
=== CONT  TestAccProvider_unusualEndpoints
=== CONT  TestAccProvider_Region_china
=== CONT  TestAccProvider_Region_stsRegion
=== CONT  TestAccProvider_Region_sc2s
=== CONT  TestAccProvider_IgnoreTagsKeyPrefixes_none
--- PASS: TestAccProvider_Region_stsRegion (7.34s)
=== CONT  TestAccProvider_Region_govCloud
--- PASS: TestAccProvider_Region_sc2s (7.45s)
=== CONT  TestAccProvider_Region_commercial
--- PASS: TestAccProvider_Region_china (7.66s)
=== CONT  TestAccProvider_IgnoreTagsKeys_multiple
--- PASS: TestAccProvider_DefaultTags_emptyBlock (9.25s)
=== CONT  TestAccProvider_Region_c2s
--- PASS: TestAccProvider_IgnoreTagsKeyPrefixes_none (9.52s)
=== CONT  TestAccProvider_IgnoreTagsKeyPrefixes_one
--- PASS: TestAccProvider_IgnoreTagsKeyPrefixes_multiple (9.64s)
=== CONT  TestAccProvider_DefaultTagsTags_multiple
--- PASS: TestAccProvider_IgnoreTags_emptyBlock (9.64s)
=== CONT  TestAccProvider_DefaultTagsTags_one
=== CONT  TestAccProvider_DefaultAndIgnoreTags_emptyBlocks
--- PASS: TestAccProvider_Region_govCloud (6.62s)
--- PASS: TestAccProvider_Region_commercial (7.00s)
=== CONT  TestAccProvider_DefaultTagsTags_none
--- PASS: TestAccProvider_Region_c2s (6.73s)
=== CONT  TestAccProvider_endpoints
--- PASS: TestAccProvider_AssumeRole_empty (16.38s)
=== CONT  TestAccProvider_IgnoreTagsKeys_one
--- PASS: TestAccProvider_IgnoreTagsKeys_multiple (9.30s)
=== CONT  TestAccProvider_IgnoreTagsKeys_none
--- PASS: TestAccProvider_IgnoreTagsKeyPrefixes_one (8.76s)
--- PASS: TestAccProvider_DefaultTagsTags_one (8.97s)
--- PASS: TestAccProvider_DefaultTagsTags_multiple (9.01s)
--- PASS: TestAccProvider_DefaultAndIgnoreTags_emptyBlocks (7.81s)
--- PASS: TestAccProvider_DefaultTagsTags_none (7.38s)
--- PASS: TestAccProvider_IgnoreTagsKeys_one (6.62s)
--- PASS: TestAccProvider_IgnoreTagsKeys_none (6.44s)
--- PASS: TestAccProvider_unusualEndpoints (60.50s)
--- PASS: TestAccProvider_endpoints (54.00s)
--- PASS: TestAccProvider_fipsEndpoint (76.96s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/provider   81.556s
?       github.com/hashicorp/terraform-provider-aws/internal/provider/fwprovider        [no test files]

@gdavison gdavison merged commit f487867 into main Feb 1, 2023
@gdavison gdavison deleted the b-provider-acctests branch February 1, 2023 21:25
@github-actions github-actions bot added this to the v4.53.0 milestone Feb 1, 2023
@github-actions
Copy link

github-actions bot commented Feb 9, 2023

This functionality has been released in v4.53.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. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
provider Pertains to the provider itself, rather than any interaction with AWS. size/M Managed by automation to categorize the size of a PR. 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