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

test/acctest: Tests failing with: The provider hashicorp/aws does not support data source "aws_arn". #26098

Closed
ewbankkit opened this issue Aug 2, 2022 · 1 comment · Fixed by #26099
Labels
tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Comments

@ewbankkit
Copy link
Contributor

ewbankkit commented Aug 2, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue 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 issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
% make testacc TESTARGS='-run=TestAccProvider_' PKG_NAME=internal/acctest ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/acctest/... -v -count 1 -parallel 3  -run=TestAccProvider_ -timeout 180m
=== 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_IgnoreTagsKeyPrefixes_multiple
=== CONT  TestAccProvider_AssumeRole_empty
=== CONT  TestAccProvider_IgnoreTagsKeyPrefixes_multiple
    provider_test.go:308: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
=== CONT  TestAccProvider_DefaultTags_emptyBlock
    provider_test.go:82: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_IgnoreTagsKeyPrefixes_multiple (2.81s)
=== CONT  TestAccProvider_Region_stsRegion
--- FAIL: TestAccProvider_DefaultTags_emptyBlock (2.96s)
=== CONT  TestAccProvider_Region_sc2s
=== CONT  TestAccProvider_Region_stsRegion
    provider_test.go:494: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
=== CONT  TestAccProvider_Region_sc2s
    provider_test.go:472: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_Region_stsRegion (1.49s)
=== CONT  TestAccProvider_Region_govCloud
--- FAIL: TestAccProvider_Region_sc2s (1.56s)
=== CONT  TestAccProvider_Region_commercial
=== CONT  TestAccProvider_Region_govCloud
    provider_test.go:450: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
=== CONT  TestAccProvider_Region_commercial
    provider_test.go:428: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_Region_govCloud (1.75s)
=== CONT  TestAccProvider_Region_china
--- FAIL: TestAccProvider_Region_commercial (1.67s)
=== CONT  TestAccProvider_Region_c2s
=== CONT  TestAccProvider_Region_china
    provider_test.go:406: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_alb"?
=== CONT  TestAccProvider_Region_c2s
    provider_test.go:384: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_Region_china (1.58s)
=== CONT  TestAccProvider_IgnoreTagsKeys_multiple
--- FAIL: TestAccProvider_Region_c2s (1.55s)
=== CONT  TestAccProvider_IgnoreTagsKeys_one
=== CONT  TestAccProvider_IgnoreTagsKeys_multiple
    provider_test.go:365: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_alb"?
=== CONT  TestAccProvider_IgnoreTagsKeys_one
    provider_test.go:346: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_IgnoreTagsKeys_multiple (1.66s)
=== CONT  TestAccProvider_IgnoreTagsKeys_none
--- FAIL: TestAccProvider_IgnoreTagsKeys_one (1.65s)
=== CONT  TestAccProvider_fipsEndpoint
=== CONT  TestAccProvider_IgnoreTagsKeys_none
    provider_test.go:327: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_alb"?
--- FAIL: TestAccProvider_IgnoreTagsKeys_none (1.60s)
=== CONT  TestAccProvider_IgnoreTagsKeyPrefixes_one
    provider_test.go:289: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_IgnoreTagsKeyPrefixes_one (1.41s)
=== CONT  TestAccProvider_IgnoreTagsKeyPrefixes_none
    provider_test.go:270: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_alb"?
--- FAIL: TestAccProvider_IgnoreTagsKeyPrefixes_none (1.69s)
=== CONT  TestAccProvider_IgnoreTags_emptyBlock
    provider_test.go:250: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_alb"?
--- FAIL: TestAccProvider_IgnoreTags_emptyBlock (1.45s)
=== CONT  TestAccProvider_unusualEndpoints
    provider_test.go:231: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_unusualEndpoints (1.75s)
=== CONT  TestAccProvider_DefaultTagsTags_multiple
    provider_test.go:139: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_alb"?
--- FAIL: TestAccProvider_DefaultTagsTags_multiple (1.43s)
=== CONT  TestAccProvider_endpoints
    provider_test.go:188: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_alb"?
--- FAIL: TestAccProvider_endpoints (1.69s)
=== CONT  TestAccProvider_DefaultAndIgnoreTags_emptyBlocks
--- PASS: TestAccProvider_AssumeRole_empty (20.09s)
=== CONT  TestAccProvider_DefaultTagsTags_one
=== CONT  TestAccProvider_DefaultAndIgnoreTags_emptyBlocks
    provider_test.go:161: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_DefaultAndIgnoreTags_emptyBlocks (1.55s)
=== CONT  TestAccProvider_DefaultTagsTags_none
=== CONT  TestAccProvider_DefaultTagsTags_one
    provider_test.go:120: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_DefaultTagsTags_one (1.67s)
=== CONT  TestAccProvider_DefaultTagsTags_none
    provider_test.go:101: Step 1/1 error: Error running pre-apply refresh: exit status 1
        
        Error: Invalid data source
        
          on terraform_plugin_test.tf line 5, in data "aws_arn" "test":
           5: data "aws_arn" "test" {
        
        The provider hashicorp/aws does not support data source "aws_arn". Did you
        mean "aws_ami"?
--- FAIL: TestAccProvider_DefaultTagsTags_none (1.42s)
--- PASS: TestAccProvider_fipsEndpoint (44.88s)
FAIL
FAIL	github.com/hashicorp/terraform-provider-aws/internal/acctest	61.382s
FAIL
make: *** [testacc] Error 1

Relates #26027.

@ewbankkit ewbankkit added the tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. label Aug 2, 2022
@github-actions
Copy link

github-actions bot commented Sep 2, 2022

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 have found a problem that seems similar to this, 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 Sep 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
1 participant