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

resource/aws_s3_bucket_object: Acc test failures #17152

Closed
shuheiktgw opened this issue Jan 17, 2021 · 2 comments
Closed

resource/aws_s3_bucket_object: Acc test failures #17152

shuheiktgw opened this issue Jan 17, 2021 · 2 comments
Labels
service/s3 Issues and PRs that pertain to the s3 service.

Comments

@shuheiktgw
Copy link
Collaborator

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

Terraform CLI and Terraform AWS Provider Version

Terraform:  v0.13.5
Terraform AWS Provider: master

Affected Resource(s)

  • aws_s3_bucket_object

Expected Behavior

The acc tests passed.

Actual Behavior

The acc tests failed.

make testacc TESTARGS='-run=TestAccAWSS3BucketObject_*'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSS3BucketObject_* -timeout 120m
=== RUN   TestAccAWSS3BucketObject_noNameNoKey
=== PAUSE TestAccAWSS3BucketObject_noNameNoKey
=== RUN   TestAccAWSS3BucketObject_empty
=== PAUSE TestAccAWSS3BucketObject_empty
=== RUN   TestAccAWSS3BucketObject_source
=== PAUSE TestAccAWSS3BucketObject_source
=== RUN   TestAccAWSS3BucketObject_content
=== PAUSE TestAccAWSS3BucketObject_content
=== RUN   TestAccAWSS3BucketObject_etagEncryption
=== PAUSE TestAccAWSS3BucketObject_etagEncryption
=== RUN   TestAccAWSS3BucketObject_contentBase64
=== PAUSE TestAccAWSS3BucketObject_contentBase64
=== RUN   TestAccAWSS3BucketObject_withContentCharacteristics
=== PAUSE TestAccAWSS3BucketObject_withContentCharacteristics
=== RUN   TestAccAWSS3BucketObject_NonVersioned
=== PAUSE TestAccAWSS3BucketObject_NonVersioned
=== RUN   TestAccAWSS3BucketObject_updates
=== PAUSE TestAccAWSS3BucketObject_updates
=== RUN   TestAccAWSS3BucketObject_updateSameFile
=== PAUSE TestAccAWSS3BucketObject_updateSameFile
=== RUN   TestAccAWSS3BucketObject_updatesWithVersioning
=== PAUSE TestAccAWSS3BucketObject_updatesWithVersioning
=== RUN   TestAccAWSS3BucketObject_updatesWithVersioningViaAccessPoint
=== PAUSE TestAccAWSS3BucketObject_updatesWithVersioningViaAccessPoint
=== RUN   TestAccAWSS3BucketObject_kms
=== PAUSE TestAccAWSS3BucketObject_kms
=== RUN   TestAccAWSS3BucketObject_sse
=== PAUSE TestAccAWSS3BucketObject_sse
=== RUN   TestAccAWSS3BucketObject_acl
=== PAUSE TestAccAWSS3BucketObject_acl
=== RUN   TestAccAWSS3BucketObject_metadata
=== PAUSE TestAccAWSS3BucketObject_metadata
=== RUN   TestAccAWSS3BucketObject_storageClass
=== PAUSE TestAccAWSS3BucketObject_storageClass
=== RUN   TestAccAWSS3BucketObject_tags
=== PAUSE TestAccAWSS3BucketObject_tags
=== RUN   TestAccAWSS3BucketObject_tagsLeadingSlash
=== PAUSE TestAccAWSS3BucketObject_tagsLeadingSlash
=== RUN   TestAccAWSS3BucketObject_ObjectLockLegalHoldStartWithNone
=== PAUSE TestAccAWSS3BucketObject_ObjectLockLegalHoldStartWithNone
=== RUN   TestAccAWSS3BucketObject_ObjectLockLegalHoldStartWithOn
=== PAUSE TestAccAWSS3BucketObject_ObjectLockLegalHoldStartWithOn
=== RUN   TestAccAWSS3BucketObject_ObjectLockRetentionStartWithNone
=== PAUSE TestAccAWSS3BucketObject_ObjectLockRetentionStartWithNone
=== RUN   TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet
=== PAUSE TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet
=== RUN   TestAccAWSS3BucketObject_defaultBucketSSE
=== PAUSE TestAccAWSS3BucketObject_defaultBucketSSE
=== RUN   TestAccAWSS3BucketObject_ignoreTags
=== PAUSE TestAccAWSS3BucketObject_ignoreTags
=== CONT  TestAccAWSS3BucketObject_noNameNoKey
=== CONT  TestAccAWSS3BucketObject_sse
=== CONT  TestAccAWSS3BucketObject_ObjectLockLegalHoldStartWithOn
=== CONT  TestAccAWSS3BucketObject_NonVersioned
=== CONT  TestAccAWSS3BucketObject_ObjectLockLegalHoldStartWithNone
=== CONT  TestAccAWSS3BucketObject_tagsLeadingSlash
=== CONT  TestAccAWSS3BucketObject_tags
=== CONT  TestAccAWSS3BucketObject_storageClass
=== CONT  TestAccAWSS3BucketObject_metadata
=== CONT  TestAccAWSS3BucketObject_acl
=== CONT  TestAccAWSS3BucketObject_updatesWithVersioning
=== CONT  TestAccAWSS3BucketObject_kms
=== CONT  TestAccAWSS3BucketObject_updatesWithVersioningViaAccessPoint
=== CONT  TestAccAWSS3BucketObject_etagEncryption
=== CONT  TestAccAWSS3BucketObject_withContentCharacteristics
=== CONT  TestAccAWSS3BucketObject_contentBase64
=== CONT  TestAccAWSS3BucketObject_defaultBucketSSE
=== CONT  TestAccAWSS3BucketObject_updates
=== CONT  TestAccAWSS3BucketObject_ignoreTags
=== CONT  TestAccAWSS3BucketObject_updateSameFile
=== CONT  TestAccAWSS3BucketObject_NonVersioned
    provider_test.go:1819: skipping tests; TF_ACC_ASSUME_ROLE_ARN must be set
--- SKIP: TestAccAWSS3BucketObject_NonVersioned (1.82s)
=== CONT  TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet
--- PASS: TestAccAWSS3BucketObject_noNameNoKey (46.49s)
=== CONT  TestAccAWSS3BucketObject_ObjectLockRetentionStartWithNone
=== CONT  TestAccAWSS3BucketObject_ignoreTags
    resource_aws_s3_bucket_object_test.go:986: Step 1/2 error: After applying this test step and performing a `terraform refresh`, the plan was not empty.
        stdout


        An execution plan has been generated and is shown below.
        Resource actions are indicated with the following symbols:
          ~ update in-place

        Terraform will perform the following actions:

          # aws_s3_bucket_object.object will be updated in-place
          ~ resource "aws_s3_bucket_object" "object" {
                acl           = "private"
                bucket        = "tf-object-test-bucket-9202063966027876346"
                content       = "stuff"
                content_type  = "binary/octet-stream"
                etag          = "c13d88cb4cb02003daedb8a84e5d272a"
                force_destroy = false
                id            = "test-key"
                key           = "test-key"
                metadata      = {}
                storage_class = "STANDARD"
              ~ tags          = {
                  - "ignorekey1" = "ignorevalue1" -> null
                }
                version_id    = "7dvScKlTjm9R2eQEGsWlklhS9.UxIyrX"
            }

        Plan: 0 to add, 1 to change, 0 to destroy.
--- PASS: TestAccAWSS3BucketObject_contentBase64 (129.77s)
=== CONT  TestAccAWSS3BucketObject_content
--- FAIL: TestAccAWSS3BucketObject_ignoreTags (130.34s)
--- PASS: TestAccAWSS3BucketObject_defaultBucketSSE (130.34s)
=== CONT  TestAccAWSS3BucketObject_source
=== CONT  TestAccAWSS3BucketObject_empty
--- PASS: TestAccAWSS3BucketObject_kms (130.62s)
--- PASS: TestAccAWSS3BucketObject_withContentCharacteristics (130.80s)
--- PASS: TestAccAWSS3BucketObject_etagEncryption (131.18s)
--- PASS: TestAccAWSS3BucketObject_sse (131.19s)
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioning (204.38s)
--- PASS: TestAccAWSS3BucketObject_ObjectLockLegalHoldStartWithOn (204.47s)
--- PASS: TestAccAWSS3BucketObject_updates (204.54s)
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioningViaAccessPoint (204.75s)
--- PASS: TestAccAWSS3BucketObject_updateSameFile (204.76s)
--- PASS: TestAccAWSS3BucketObject_content (77.48s)
--- PASS: TestAccAWSS3BucketObject_source (77.69s)
--- PASS: TestAccAWSS3BucketObject_empty (78.09s)
=== CONT  TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet
    resource_aws_s3_bucket_object_test.go:907: Step 3/4 error: Error running post-apply plan:
        Error: Failed to read module directory

        Module directory
        ../../../../../../../../var/folders/rg/rykw8zbd5b72fzmcbyn47p4c0000gn/T/plugintest481237441/work558845484/config291185439
        does not exist or cannot be read.

--- FAIL: TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet (228.08s)
--- PASS: TestAccAWSS3BucketObject_metadata (244.30s)
--- PASS: TestAccAWSS3BucketObject_ObjectLockLegalHoldStartWithNone (246.40s)
--- PASS: TestAccAWSS3BucketObject_acl (246.53s)
--- PASS: TestAccAWSS3BucketObject_ObjectLockRetentionStartWithNone (204.38s)
--- PASS: TestAccAWSS3BucketObject_tags (274.20s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingSlash (275.61s)
--- PASS: TestAccAWSS3BucketObject_storageClass (303.16s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	305.325s
FAIL
make: *** [testacc] Error 1

Steps to Reproduce

  1. make testacc TESTARGS='-run=TestAccAWSS3BucketObject_*'

References

This may relate to those issues/PRs:

@ghost ghost added the service/s3 Issues and PRs that pertain to the s3 service. label Jan 17, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 17, 2021
@bill-rich bill-rich removed the needs-triage Waiting for first response or review from a maintainer. label Jan 21, 2021
@bill-rich
Copy link
Contributor

I was unable to reproduce this issue.

TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet -timeout 120m
=== RUN   TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet
=== PAUSE TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet
=== CONT  TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet
--- PASS: TestAccAWSS3BucketObject_ObjectLockRetentionStartWithSet (56.34s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	56.378s
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSS3BucketObject_ignoreTags -timeout 120m
=== RUN   TestAccAWSS3BucketObject_ignoreTags
=== PAUSE TestAccAWSS3BucketObject_ignoreTags
=== CONT  TestAccAWSS3BucketObject_ignoreTags
--- PASS: TestAccAWSS3BucketObject_ignoreTags (30.43s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	30.472s

@ghost
Copy link

ghost commented Feb 21, 2021

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 as resolved and limited conversation to collaborators Feb 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
Development

No branches or pull requests

2 participants