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

Tech-Debt: Migrate all acceptance tests to use the independent s3 resources #22997

Closed
40 tasks done
anGie44 opened this issue Feb 7, 2022 · 2 comments
Closed
40 tasks done
Labels
service/s3 Issues and PRs that pertain to the s3 service. technical-debt Addresses areas of the codebase that need refactoring or redesign. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone

Comments

@anGie44
Copy link
Contributor

anGie44 commented Feb 7, 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

Description

Now that arguments in the s3_bucket resource have been deprecated, tests across services should be updated to use the corresponding independent resources as errors will arise e.g.

Error: Value for unconfigurable attribute
        
          with aws_s3_bucket.hoge,
          on terraform_plugin_test.tf line 6, in resource "aws_s3_bucket" "hoge":
           6: resource "aws_s3_bucket" "hoge" {
        
        Can't configure a value for "server_side_encryption_configuration": its value
        will be decided automatically based on the result of applying this
        configuration.

Affected Tests

The following require migrating to aws_s3_bucket_policy:

  • TestAccCloudFormationStack_WithURLWithParams_withYAML
  • TestAccCloudFormationStack_WithURL_withParams
  • TestAccCloudFormationStack_WithURLWithParams_noUpdate
  • TestAccCloudTrail_serial/Trail
  • TestAccRedshiftCluster_loggingEnabled

The following require migrating to aws_s3_bucket_acl:

  • Uses acl (tests/wafv2: update to aws_s3_bucket_acl resource #23004)
    • acctest
    • apigateway
    • cloudformation
    • cloudfront
    • cloudwatch
    • cloudwatchlogs
    • codepipeline
    • configservice
    • costandusagereportservice
    • elasticloadbalancing
    • elastictranscoder
    • emr
    • firehose
    • fsx
    • globalaccelerator
    • guardduty
    • kafka
    • lakeformation
    • lambda
    • mwaa
    • networkfirewall
    • quicksight
    • route53
    • s3
    • sagemaker
    • servicecatalog
    • ses
    • sns
    • ssm
    • synthetics
    • transfer
    • waf
    • wafregional
    • wafv2 (WebACLLoggingConfiguration)
  • Uses grant
    • TestAccEC2SpotDatafeedSubscription_serial

References

@anGie44 anGie44 added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. technical-debt Addresses areas of the codebase that need refactoring or redesign. labels Feb 7, 2022
@anGie44 anGie44 changed the title Tech-Debt: Migrate acceptance tests to use the independent s3 resources Tech-Debt: Migrate all acceptance tests to use the independent s3 resources Feb 7, 2022
@github-actions github-actions bot added the service/s3 Issues and PRs that pertain to the s3 service. label Feb 7, 2022
This was referenced Feb 7, 2022
@github-actions
Copy link

This functionality has been released in v4.0.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 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 May 16, 2022
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. 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

No branches or pull requests

1 participant