-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_s3_object_copy: Migrate to AWS SDK for Go v2 #33330
Conversation
…02411dfb0f646000bdb6ab8 && go mod tidy'.
…ceObjectCopyDoCopy'.
% make testacc TESTARGS='-run=TestAccS3ObjectCopy_basic' PKG=s3 ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 2 -run=TestAccS3ObjectCopy_basic -timeout 180m === RUN TestAccS3ObjectCopy_basic === PAUSE TestAccS3ObjectCopy_basic === CONT TestAccS3ObjectCopy_basic --- PASS: TestAccS3ObjectCopy_basic (42.01s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 48.447s
% make testacc TESTARGS='-run=TestAccS3ObjectCopy_disappears' PKG=s3 ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 2 -run=TestAccS3ObjectCopy_disappears -timeout 180m === RUN TestAccS3ObjectCopy_disappears === PAUSE TestAccS3ObjectCopy_disappears === CONT TestAccS3ObjectCopy_disappears --- PASS: TestAccS3ObjectCopy_disappears (43.24s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 48.855s
% make testacc TESTARGS='-run=TestAccS3ObjectCopy_tags' PKG=s3 ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 2 -run=TestAccS3ObjectCopy_tags -timeout 180m === RUN TestAccS3ObjectCopy_tags === PAUSE TestAccS3ObjectCopy_tags === CONT TestAccS3ObjectCopy_tags --- PASS: TestAccS3ObjectCopy_tags (68.37s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 73.887s
% make testacc TESTARGS='-run=TestAccS3ObjectCopy_metadata' PKG=s3 ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 2 -run=TestAccS3ObjectCopy_metadata -timeout 180m === RUN TestAccS3ObjectCopy_metadata === PAUSE TestAccS3ObjectCopy_metadata === CONT TestAccS3ObjectCopy_metadata --- PASS: TestAccS3ObjectCopy_metadata (74.15s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 95.276s
% make testacc TESTARGS='-run=TestAccS3ObjectCopy_grant' PKG=s3 ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 2 -run=TestAccS3ObjectCopy_grant -timeout 180m === RUN TestAccS3ObjectCopy_grant === PAUSE TestAccS3ObjectCopy_grant === CONT TestAccS3ObjectCopy_grant --- PASS: TestAccS3ObjectCopy_grant (26.52s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 31.858s
% make testacc TESTARGS='-run=TestAccS3ObjectCopy_BucketKeyEnabled_' PKG=s3 ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 2 -run=TestAccS3ObjectCopy_BucketKeyEnabled_ -timeout 180m === RUN TestAccS3ObjectCopy_BucketKeyEnabled_bucket === PAUSE TestAccS3ObjectCopy_BucketKeyEnabled_bucket === RUN TestAccS3ObjectCopy_BucketKeyEnabled_object === PAUSE TestAccS3ObjectCopy_BucketKeyEnabled_object === CONT TestAccS3ObjectCopy_BucketKeyEnabled_bucket === CONT TestAccS3ObjectCopy_BucketKeyEnabled_object --- PASS: TestAccS3ObjectCopy_BucketKeyEnabled_object (27.50s) --- PASS: TestAccS3ObjectCopy_BucketKeyEnabled_bucket (27.67s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 33.161s
% make testacc TESTARGS='-run=TestAccS3ObjectCopy_sourceAndTargetWithSlashes' PKG=s3 ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 2 -run=TestAccS3ObjectCopy_sourceAndTargetWithSlashes -timeout 180m === RUN TestAccS3ObjectCopy_sourceAndTargetWithSlashes === PAUSE TestAccS3ObjectCopy_sourceAndTargetWithSlashes === CONT TestAccS3ObjectCopy_sourceAndTargetWithSlashes --- PASS: TestAccS3ObjectCopy_sourceAndTargetWithSlashes (25.79s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 31.058s
% make testacc TESTARGS='-run=TestAccS3ObjectCopy_sourceWithSlashes' PKG=s3 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run=TestAccS3ObjectCopy_sourceWithSlashes -timeout 180m === RUN TestAccS3ObjectCopy_sourceWithSlashes === PAUSE TestAccS3ObjectCopy_sourceWithSlashes === CONT TestAccS3ObjectCopy_sourceWithSlashes --- PASS: TestAccS3ObjectCopy_sourceWithSlashes (44.62s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 50.263s
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% make testacc TESTARGS='-run=TestAccS3ObjectCopy_' PKG=s3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run=TestAccS3ObjectCopy_ -timeout 180m
=== RUN TestAccS3ObjectCopy_basic
=== PAUSE TestAccS3ObjectCopy_basic
=== RUN TestAccS3ObjectCopy_disappears
=== PAUSE TestAccS3ObjectCopy_disappears
=== RUN TestAccS3ObjectCopy_tags
=== PAUSE TestAccS3ObjectCopy_tags
=== RUN TestAccS3ObjectCopy_metadata
=== PAUSE TestAccS3ObjectCopy_metadata
=== RUN TestAccS3ObjectCopy_grant
=== PAUSE TestAccS3ObjectCopy_grant
=== RUN TestAccS3ObjectCopy_BucketKeyEnabled_bucket
=== PAUSE TestAccS3ObjectCopy_BucketKeyEnabled_bucket
=== RUN TestAccS3ObjectCopy_BucketKeyEnabled_object
=== PAUSE TestAccS3ObjectCopy_BucketKeyEnabled_object
=== RUN TestAccS3ObjectCopy_sourceWithSlashes
=== PAUSE TestAccS3ObjectCopy_sourceWithSlashes
=== CONT TestAccS3ObjectCopy_basic
=== CONT TestAccS3ObjectCopy_grant
=== CONT TestAccS3ObjectCopy_tags
=== CONT TestAccS3ObjectCopy_disappears
=== CONT TestAccS3ObjectCopy_metadata
=== CONT TestAccS3ObjectCopy_BucketKeyEnabled_object
=== CONT TestAccS3ObjectCopy_sourceWithSlashes
=== CONT TestAccS3ObjectCopy_BucketKeyEnabled_bucket
--- PASS: TestAccS3ObjectCopy_basic (180.07s)
--- PASS: TestAccS3ObjectCopy_metadata (180.25s)
--- PASS: TestAccS3ObjectCopy_disappears (186.06s)
--- PASS: TestAccS3ObjectCopy_sourceWithSlashes (186.69s)
--- PASS: TestAccS3ObjectCopy_BucketKeyEnabled_object (204.12s)
--- PASS: TestAccS3ObjectCopy_grant (216.52s)
--- PASS: TestAccS3ObjectCopy_BucketKeyEnabled_bucket (217.88s)
--- PASS: TestAccS3ObjectCopy_tags (331.03s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 334.299s
This functionality has been released in v5.16.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! |
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. |
Description
Migrates the
aws_s3_object_copy
resource to AWS SDK for Go v2.The resource Delete functionality has not yet been migrated as it's shared with others.
Relations
Relates #33304.
Output from Acceptance Testing