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

tests/lambda: update to aws_s3_bucket_acl #23036

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Feb 8, 2022

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment 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 pull request followers and do not help prioritize the request

Relates #22997
Relates #22537
Relates #20433

Output from acceptance testing:

--- PASS: TestAccLambdaFunction_expectFilenameAndS3Attributes (21.25s)
--- PASS: TestAccLambdaFunction_disappears (52.81s)
--- PASS: TestAccLambdaFunction_basic (58.08s)
--- PASS: TestAccLambdaFunction_EnvironmentVariables_noValue (61.57s)
--- PASS: TestAccLambdaFunction_versioned (55.97s)
--- PASS: TestAccLambdaFunction_encryptedEnvVariables (94.63s)
--- PASS: TestAccLambdaFunction_concurrency (96.91s)
--- PASS: TestAccLambdaFunction_unpublishedCodeUpdate (104.61s)
--- PASS: TestAccLambdaFunction_concurrencyCycle (115.63s)
--- SKIP: TestAccLambdaFunction_image (0.22s)
--- PASS: TestAccLambdaFunction_codeSigning (117.33s)
--- PASS: TestAccLambdaFunction_nilDeadLetter (21.25s)
--- PASS: TestAccLambdaFunction_disablePublish (86.26s)
--- PASS: TestAccLambdaFunction_enablePublish (105.41s)
--- PASS: TestAccLambdaFunction_deadLetter (90.10s)
--- PASS: TestAccLambdaFunction_envVariables (168.06s)
--- PASS: TestAccLambdaFunction_versionedUpdate (118.98s)
--- PASS: TestAccLambdaFunction_deadLetterUpdated (87.89s)
--- PASS: TestAccLambdaFunction_architectures (72.74s)
--- PASS: TestAccLambdaFunction_architecturesUpdate (82.20s)
--- PASS: TestAccLambdaFunction_architecturesWithLayer (84.69s)
--- PASS: TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables (43.39s)
--- PASS: TestAccLambdaFunction_tracing (70.52s)
--- PASS: TestAccLambdaFunction_layers (52.38s)
--- PASS: TestAccLambdaFunction_layersUpdate (66.70s)
--- PASS: TestAccLambdaFunction_emptyVPC (28.38s)
--- PASS: TestAccLambdaFunction_s3 (28.71s)
--- PASS: TestAccLambdaFunction_localUpdate (52.18s)
--- PASS: TestAccLambdaFunction_LocalUpdate_nameOnly (43.22s)
--- PASS: TestAccLambdaFunction_S3Update_basic (46.94s)
--- PASS: TestAccLambdaFunction_S3Update_unversioned (45.98s)
--- PASS: TestAccLambdaFunction_tags (74.90s)
--- PASS: TestAccLambdaFunction_Zip_validation (6.87s)
--- PASS: TestAccLambdaFunction_vpcRemoval (263.89s)
--- PASS: TestAccLambdaFunction_VPC_properIAMDependencies (240.54s)
--- PASS: TestAccLambdaPermission_basic (31.94s)
--- PASS: TestAccLambdaPermission_withRawFunctionName (29.93s)
--- PASS: TestAccLambdaPermission_withStatementIdPrefix (28.77s)
--- PASS: TestAccLambdaPermission_withQualifier (37.31s)
--- PASS: TestAccLambdaPermission_StatementID_duplicate (89.87s)
--- PASS: TestAccLambdaPermission_withS3 (28.93s)
--- PASS: TestAccLambdaPermission_multiplePerms (51.48s)
--- PASS: TestAccLambdaPermission_disappears (88.50s)
--- PASS: TestAccLambdaFunction_vpc (415.00s)
--- PASS: TestAccLambdaPermission_withIAMRole (36.68s)
--- PASS: TestAccLambdaFunction_VPC_withInvocation (419.86s)
--- PASS: TestAccLambdaFunction_VPCPublishNo_changes (434.41s)
--- PASS: TestAccLambdaPermission_withSNS (82.94s)
--- PASS: TestAccLambdaFunction_VPCPublishHas_changes (470.27s)
--- PASS: TestAccLambdaFunction_runtimes (329.51s)
--- PASS: TestAccLambdaFunction_fileSystem (637.09s)
--- PASS: TestAccLambdaFunction_vpcUpdate (641.84s)

@github-actions github-actions bot added size/XS Managed by automation to categorize the size of a PR. service/lambda Issues and PRs that pertain to the lambda service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 8, 2022
@anGie44 anGie44 marked this pull request as ready for review February 8, 2022 23:47
Copy link
Contributor

@ewbankkit ewbankkit left a 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=TestAccLambdaFunction_\|TestAccLambdaPermission_' PKG=lambda ACCTEST_PARALLELISM=5
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lambda/... -v -count 1 -parallel 5  -run=TestAccLambdaFunction_\|TestAccLambdaPermission_ -timeout 180m
=== RUN   TestAccLambdaFunction_basic
=== PAUSE TestAccLambdaFunction_basic
=== RUN   TestAccLambdaFunction_unpublishedCodeUpdate
=== PAUSE TestAccLambdaFunction_unpublishedCodeUpdate
=== RUN   TestAccLambdaFunction_disappears
=== PAUSE TestAccLambdaFunction_disappears
=== RUN   TestAccLambdaFunction_codeSigning
=== PAUSE TestAccLambdaFunction_codeSigning
=== RUN   TestAccLambdaFunction_concurrency
=== PAUSE TestAccLambdaFunction_concurrency
=== RUN   TestAccLambdaFunction_concurrencyCycle
=== PAUSE TestAccLambdaFunction_concurrencyCycle
=== RUN   TestAccLambdaFunction_expectFilenameAndS3Attributes
=== PAUSE TestAccLambdaFunction_expectFilenameAndS3Attributes
=== RUN   TestAccLambdaFunction_envVariables
=== PAUSE TestAccLambdaFunction_envVariables
=== RUN   TestAccLambdaFunction_EnvironmentVariables_noValue
=== PAUSE TestAccLambdaFunction_EnvironmentVariables_noValue
=== RUN   TestAccLambdaFunction_encryptedEnvVariables
=== PAUSE TestAccLambdaFunction_encryptedEnvVariables
=== RUN   TestAccLambdaFunction_versioned
=== PAUSE TestAccLambdaFunction_versioned
=== RUN   TestAccLambdaFunction_versionedUpdate
=== PAUSE TestAccLambdaFunction_versionedUpdate
=== RUN   TestAccLambdaFunction_enablePublish
=== PAUSE TestAccLambdaFunction_enablePublish
=== RUN   TestAccLambdaFunction_disablePublish
=== PAUSE TestAccLambdaFunction_disablePublish
=== RUN   TestAccLambdaFunction_deadLetter
=== PAUSE TestAccLambdaFunction_deadLetter
=== RUN   TestAccLambdaFunction_deadLetterUpdated
=== PAUSE TestAccLambdaFunction_deadLetterUpdated
=== RUN   TestAccLambdaFunction_nilDeadLetter
=== PAUSE TestAccLambdaFunction_nilDeadLetter
=== RUN   TestAccLambdaFunction_fileSystem
=== PAUSE TestAccLambdaFunction_fileSystem
=== RUN   TestAccLambdaFunction_image
=== PAUSE TestAccLambdaFunction_image
=== RUN   TestAccLambdaFunction_architectures
=== PAUSE TestAccLambdaFunction_architectures
=== RUN   TestAccLambdaFunction_architecturesUpdate
=== PAUSE TestAccLambdaFunction_architecturesUpdate
=== RUN   TestAccLambdaFunction_architecturesWithLayer
=== PAUSE TestAccLambdaFunction_architecturesWithLayer
=== RUN   TestAccLambdaFunction_tracing
=== PAUSE TestAccLambdaFunction_tracing
=== RUN   TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables
=== PAUSE TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables
=== RUN   TestAccLambdaFunction_layers
=== PAUSE TestAccLambdaFunction_layers
=== RUN   TestAccLambdaFunction_layersUpdate
=== PAUSE TestAccLambdaFunction_layersUpdate
=== RUN   TestAccLambdaFunction_vpc
=== PAUSE TestAccLambdaFunction_vpc
=== RUN   TestAccLambdaFunction_vpcRemoval
=== PAUSE TestAccLambdaFunction_vpcRemoval
=== RUN   TestAccLambdaFunction_vpcUpdate
=== PAUSE TestAccLambdaFunction_vpcUpdate
=== RUN   TestAccLambdaFunction_VPC_withInvocation
=== PAUSE TestAccLambdaFunction_VPC_withInvocation
=== RUN   TestAccLambdaFunction_VPCPublishNo_changes
=== PAUSE TestAccLambdaFunction_VPCPublishNo_changes
=== RUN   TestAccLambdaFunction_VPCPublishHas_changes
=== PAUSE TestAccLambdaFunction_VPCPublishHas_changes
=== RUN   TestAccLambdaFunction_VPC_properIAMDependencies
=== PAUSE TestAccLambdaFunction_VPC_properIAMDependencies
=== RUN   TestAccLambdaFunction_emptyVPC
=== PAUSE TestAccLambdaFunction_emptyVPC
=== RUN   TestAccLambdaFunction_s3
=== PAUSE TestAccLambdaFunction_s3
=== RUN   TestAccLambdaFunction_localUpdate
=== PAUSE TestAccLambdaFunction_localUpdate
=== RUN   TestAccLambdaFunction_LocalUpdate_nameOnly
=== PAUSE TestAccLambdaFunction_LocalUpdate_nameOnly
=== RUN   TestAccLambdaFunction_S3Update_basic
=== PAUSE TestAccLambdaFunction_S3Update_basic
=== RUN   TestAccLambdaFunction_S3Update_unversioned
=== PAUSE TestAccLambdaFunction_S3Update_unversioned
=== RUN   TestAccLambdaFunction_tags
=== PAUSE TestAccLambdaFunction_tags
=== RUN   TestAccLambdaFunction_runtimes
=== PAUSE TestAccLambdaFunction_runtimes
=== RUN   TestAccLambdaFunction_Zip_validation
=== PAUSE TestAccLambdaFunction_Zip_validation
=== RUN   TestAccLambdaPermission_basic
=== PAUSE TestAccLambdaPermission_basic
=== RUN   TestAccLambdaPermission_StatementID_duplicate
=== PAUSE TestAccLambdaPermission_StatementID_duplicate
=== RUN   TestAccLambdaPermission_withRawFunctionName
=== PAUSE TestAccLambdaPermission_withRawFunctionName
=== RUN   TestAccLambdaPermission_withStatementIdPrefix
=== PAUSE TestAccLambdaPermission_withStatementIdPrefix
=== RUN   TestAccLambdaPermission_withQualifier
=== PAUSE TestAccLambdaPermission_withQualifier
=== RUN   TestAccLambdaPermission_disappears
=== PAUSE TestAccLambdaPermission_disappears
=== RUN   TestAccLambdaPermission_multiplePerms
=== PAUSE TestAccLambdaPermission_multiplePerms
=== RUN   TestAccLambdaPermission_withS3
=== PAUSE TestAccLambdaPermission_withS3
=== RUN   TestAccLambdaPermission_withSNS
=== PAUSE TestAccLambdaPermission_withSNS
=== RUN   TestAccLambdaPermission_withIAMRole
=== PAUSE TestAccLambdaPermission_withIAMRole
=== CONT  TestAccLambdaFunction_basic
=== CONT  TestAccLambdaFunction_vpc
=== CONT  TestAccLambdaFunction_tags
=== CONT  TestAccLambdaFunction_VPC_properIAMDependencies
=== CONT  TestAccLambdaFunction_emptyVPC
--- PASS: TestAccLambdaFunction_basic (50.50s)
=== CONT  TestAccLambdaFunction_VPCPublishHas_changes
--- PASS: TestAccLambdaFunction_emptyVPC (60.98s)
=== CONT  TestAccLambdaFunction_VPCPublishNo_changes
--- PASS: TestAccLambdaFunction_tags (122.39s)
=== CONT  TestAccLambdaFunction_VPC_withInvocation
--- PASS: TestAccLambdaFunction_VPC_properIAMDependencies (500.31s)
=== CONT  TestAccLambdaFunction_vpcUpdate
--- PASS: TestAccLambdaFunction_VPCPublishHas_changes (672.05s)
=== CONT  TestAccLambdaFunction_vpcRemoval
--- PASS: TestAccLambdaFunction_VPCPublishNo_changes (814.09s)
=== CONT  TestAccLambdaPermission_withQualifier
--- PASS: TestAccLambdaFunction_VPC_withInvocation (922.20s)
=== CONT  TestAccLambdaPermission_withIAMRole
--- PASS: TestAccLambdaPermission_withQualifier (529.01s)
=== CONT  TestAccLambdaPermission_withSNS
--- PASS: TestAccLambdaPermission_withIAMRole (364.89s)
=== CONT  TestAccLambdaPermission_withS3
--- PASS: TestAccLambdaFunction_vpcRemoval (729.65s)
=== CONT  TestAccLambdaPermission_multiplePerms
--- PASS: TestAccLambdaPermission_withS3 (59.77s)
=== CONT  TestAccLambdaPermission_disappears
--- PASS: TestAccLambdaPermission_withSNS (88.39s)
=== CONT  TestAccLambdaFunction_LocalUpdate_nameOnly
--- PASS: TestAccLambdaPermission_multiplePerms (70.57s)
=== CONT  TestAccLambdaFunction_S3Update_unversioned
--- PASS: TestAccLambdaFunction_LocalUpdate_nameOnly (69.22s)
=== CONT  TestAccLambdaFunction_S3Update_basic
--- PASS: TestAccLambdaPermission_disappears (98.06s)
=== CONT  TestAccLambdaFunction_disablePublish
--- PASS: TestAccLambdaFunction_vpc (1570.86s)
=== CONT  TestAccLambdaFunction_layersUpdate
--- PASS: TestAccLambdaFunction_S3Update_unversioned (89.80s)
=== CONT  TestAccLambdaFunction_layers
--- PASS: TestAccLambdaFunction_vpcUpdate (1146.30s)
=== CONT  TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables
--- PASS: TestAccLambdaFunction_disablePublish (91.74s)
=== CONT  TestAccLambdaFunction_tracing
--- PASS: TestAccLambdaFunction_layersUpdate (98.55s)
=== CONT  TestAccLambdaFunction_architecturesWithLayer
--- PASS: TestAccLambdaFunction_S3Update_basic (109.56s)
=== CONT  TestAccLambdaFunction_architecturesUpdate
--- PASS: TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables (42.98s)
=== CONT  TestAccLambdaFunction_s3
--- PASS: TestAccLambdaFunction_layers (80.23s)
=== CONT  TestAccLambdaFunction_architectures
--- PASS: TestAccLambdaFunction_s3 (46.39s)
=== CONT  TestAccLambdaFunction_deadLetterUpdated
--- PASS: TestAccLambdaFunction_tracing (92.15s)
=== CONT  TestAccLambdaFunction_nilDeadLetter
--- PASS: TestAccLambdaFunction_architecturesUpdate (80.23s)
=== CONT  TestAccLambdaFunction_deadLetter
--- PASS: TestAccLambdaFunction_architectures (65.91s)
=== CONT  TestAccLambdaFunction_fileSystem
--- PASS: TestAccLambdaFunction_nilDeadLetter (21.56s)
=== CONT  TestAccLambdaFunction_image
    function_test.go:955: AWS_LAMBDA_IMAGE_LATEST_ID, AWS_LAMBDA_IMAGE_V1_ID and AWS_LAMBDA_IMAGE_V2_ID env vars must be set for Lambda Container Image Support acceptance tests. 
--- SKIP: TestAccLambdaFunction_image (0.00s)
=== CONT  TestAccLambdaFunction_envVariables
--- PASS: TestAccLambdaFunction_deadLetterUpdated (78.76s)
=== CONT  TestAccLambdaFunction_encryptedEnvVariables
--- PASS: TestAccLambdaFunction_deadLetter (80.51s)
=== CONT  TestAccLambdaFunction_versioned
--- PASS: TestAccLambdaFunction_architecturesWithLayer (170.90s)
=== CONT  TestAccLambdaFunction_enablePublish
--- PASS: TestAccLambdaFunction_versioned (43.81s)
=== CONT  TestAccLambdaFunction_EnvironmentVariables_noValue
--- PASS: TestAccLambdaFunction_encryptedEnvVariables (75.60s)
=== CONT  TestAccLambdaFunction_versionedUpdate
--- PASS: TestAccLambdaFunction_envVariables (141.16s)
=== CONT  TestAccLambdaFunction_concurrency
--- PASS: TestAccLambdaFunction_enablePublish (87.41s)
=== CONT  TestAccLambdaFunction_disappears
--- PASS: TestAccLambdaFunction_EnvironmentVariables_noValue (215.63s)
=== CONT  TestAccLambdaFunction_expectFilenameAndS3Attributes
--- PASS: TestAccLambdaFunction_disappears (176.23s)
=== CONT  TestAccLambdaFunction_codeSigning
--- PASS: TestAccLambdaFunction_expectFilenameAndS3Attributes (20.55s)
=== CONT  TestAccLambdaFunction_concurrencyCycle
--- PASS: TestAccLambdaFunction_concurrency (205.17s)
=== CONT  TestAccLambdaPermission_withStatementIdPrefix
--- PASS: TestAccLambdaPermission_withStatementIdPrefix (45.43s)
=== CONT  TestAccLambdaPermission_withRawFunctionName
--- PASS: TestAccLambdaFunction_versionedUpdate (306.83s)
=== CONT  TestAccLambdaPermission_StatementID_duplicate
--- PASS: TestAccLambdaPermission_withRawFunctionName (45.89s)
=== CONT  TestAccLambdaFunction_runtimes
--- PASS: TestAccLambdaFunction_concurrencyCycle (108.67s)
=== CONT  TestAccLambdaFunction_unpublishedCodeUpdate
--- PASS: TestAccLambdaFunction_codeSigning (152.83s)
=== CONT  TestAccLambdaFunction_Zip_validation
--- PASS: TestAccLambdaFunction_Zip_validation (4.76s)
=== CONT  TestAccLambdaPermission_basic
--- PASS: TestAccLambdaPermission_StatementID_duplicate (89.41s)
=== CONT  TestAccLambdaFunction_localUpdate
--- PASS: TestAccLambdaFunction_unpublishedCodeUpdate (75.74s)
--- PASS: TestAccLambdaPermission_basic (55.42s)
--- PASS: TestAccLambdaFunction_localUpdate (64.06s)
--- PASS: TestAccLambdaFunction_fileSystem (733.60s)
--- PASS: TestAccLambdaFunction_runtimes (672.98s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/lambda	2889.419s

@anGie44 anGie44 added this to the v4.0.0 milestone Feb 9, 2022
@anGie44 anGie44 merged commit 5ef336c into main Feb 9, 2022
@anGie44 anGie44 deleted the td-lambda-s3-bucket-acl-tests branch February 9, 2022 13:51
@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 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 May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/lambda Issues and PRs that pertain to the lambda service. size/XS 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