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

r/aws_storagegateway_smb_file_share: Add file_share_name argument #16008

Merged

Conversation

gazoakley
Copy link
Contributor

@gazoakley gazoakley commented Nov 3, 2020

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

Closes #15937

Release note for CHANGELOG:

* resource/aws_storagegateway_smb_file_share: Add `file_share_name` argument ([#16008](https://github.com/hashicorp/terraform-provider-aws/issues/16008))

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSStorageGatewaySmbFileShare_FileShareName'  
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSStorageGatewaySmbFileShare_FileShareName -timeout 120m
=== RUN   TestAccAWSStorageGatewaySmbFileShare_FileShareName
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_FileShareName
=== CONT  TestAccAWSStorageGatewaySmbFileShare_FileShareName
--- PASS: TestAccAWSStorageGatewaySmbFileShare_FileShareName (349.83s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	351.306s

$ make testacc TESTARGS='-run=TestAccAWSStorageGatewaySmbFileShare_Authentication_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSStorageGatewaySmbFileShare_Authentication_ -timeout 120m
=== RUN   TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory
=== RUN   TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess
=== CONT  TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory
=== CONT  TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess (308.84s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory (797.87s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	799.389s

@gazoakley gazoakley requested a review from a team as a code owner November 3, 2020 22:55
@ghost ghost added service/storagegateway Issues and PRs that pertain to the storagegateway service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. labels Nov 3, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 3, 2020
@gazoakley gazoakley force-pushed the f-storagegateway-smb-file-share-name branch from 05e4114 to 851ef6e Compare November 3, 2020 23:31
@DrFaust92 DrFaust92 added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 4, 2020
@gazoakley gazoakley force-pushed the f-storagegateway-smb-file-share-name branch from 851ef6e to 905d57a Compare November 4, 2020 09:08
@gazoakley gazoakley changed the title [WIP] r/aws_storagegateway_smb_file_share: Add file_share_name argument r/aws_storagegateway_smb_file_share: Add file_share_name argument Nov 4, 2020
@DrFaust92 DrFaust92 self-assigned this Nov 5, 2020
Copy link
Collaborator

@DrFaust92 DrFaust92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

--- PASS: TestAccAWSStorageGatewaySmbFileShare_ObjectACL (562.81s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_GuessMIMETypeEnabled (568.27s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_disappears (300.31s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory (904.45s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_caseSensitivity (522.30s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_AdminUserList (1177.97s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_KMSEncrypted (372.34s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_cacheAttributes (555.98s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_audit (404.08s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_KMSKeyArn (559.84s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_FileShareName (410.63s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Tags (459.65s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_RequesterPays (460.70s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_smb_acl (1105.53s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_ReadOnly (409.81s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess (319.46s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_ValidUserList (1113.33s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_DefaultStorageClass (467.41s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_InvalidUserList (1203.27s)

@breathingdust
Copy link
Member

LGTM 🚀 Thanks @gazoakley for the implementation!

Verified Acceptance Tests in Commercial (us-west-2)

make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSStorageGatewaySmbFileShare_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSStorageGatewaySmbFileShare_ -timeout 120m
=== RUN   TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory
=== RUN   TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess
=== RUN   TestAccAWSStorageGatewaySmbFileShare_DefaultStorageClass
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_DefaultStorageClass
=== RUN   TestAccAWSStorageGatewaySmbFileShare_FileShareName
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_FileShareName
=== RUN   TestAccAWSStorageGatewaySmbFileShare_Tags
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_Tags
=== RUN   TestAccAWSStorageGatewaySmbFileShare_GuessMIMETypeEnabled
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_GuessMIMETypeEnabled
=== RUN   TestAccAWSStorageGatewaySmbFileShare_InvalidUserList
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_InvalidUserList
=== RUN   TestAccAWSStorageGatewaySmbFileShare_KMSEncrypted
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_KMSEncrypted
=== RUN   TestAccAWSStorageGatewaySmbFileShare_KMSKeyArn
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_KMSKeyArn
=== RUN   TestAccAWSStorageGatewaySmbFileShare_ObjectACL
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_ObjectACL
=== RUN   TestAccAWSStorageGatewaySmbFileShare_ReadOnly
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_ReadOnly
=== RUN   TestAccAWSStorageGatewaySmbFileShare_RequesterPays
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_RequesterPays
=== RUN   TestAccAWSStorageGatewaySmbFileShare_ValidUserList
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_ValidUserList
=== RUN   TestAccAWSStorageGatewaySmbFileShare_smb_acl
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_smb_acl
=== RUN   TestAccAWSStorageGatewaySmbFileShare_audit
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_audit
=== RUN   TestAccAWSStorageGatewaySmbFileShare_cacheAttributes
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_cacheAttributes
=== RUN   TestAccAWSStorageGatewaySmbFileShare_caseSensitivity
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_caseSensitivity
=== RUN   TestAccAWSStorageGatewaySmbFileShare_disappears
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_disappears
=== RUN   TestAccAWSStorageGatewaySmbFileShare_AdminUserList
=== PAUSE TestAccAWSStorageGatewaySmbFileShare_AdminUserList
=== CONT  TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory
=== CONT  TestAccAWSStorageGatewaySmbFileShare_ReadOnly
=== CONT  TestAccAWSStorageGatewaySmbFileShare_AdminUserList
=== CONT  TestAccAWSStorageGatewaySmbFileShare_disappears
=== CONT  TestAccAWSStorageGatewaySmbFileShare_caseSensitivity
=== CONT  TestAccAWSStorageGatewaySmbFileShare_cacheAttributes
=== CONT  TestAccAWSStorageGatewaySmbFileShare_audit
=== CONT  TestAccAWSStorageGatewaySmbFileShare_smb_acl
=== CONT  TestAccAWSStorageGatewaySmbFileShare_GuessMIMETypeEnabled
=== CONT  TestAccAWSStorageGatewaySmbFileShare_InvalidUserList
=== CONT  TestAccAWSStorageGatewaySmbFileShare_RequesterPays
=== CONT  TestAccAWSStorageGatewaySmbFileShare_KMSKeyArn
=== CONT  TestAccAWSStorageGatewaySmbFileShare_ObjectACL
=== CONT  TestAccAWSStorageGatewaySmbFileShare_KMSEncrypted
=== CONT  TestAccAWSStorageGatewaySmbFileShare_FileShareName
=== CONT  TestAccAWSStorageGatewaySmbFileShare_Tags
=== CONT  TestAccAWSStorageGatewaySmbFileShare_DefaultStorageClass
=== CONT  TestAccAWSStorageGatewaySmbFileShare_ValidUserList
=== CONT  TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess
2020/11/12 16:27:56 [DEBUG] Reading SSM Parameter: {
  Name: "/aws/service/storagegateway/ami/FILE_S3/latest",
  WithDecryption: true
}
2020/11/12 16:27:59 [WARN] Truncating attribute path of 0 diagnostics for TypeSet
2020/11/12 16:27:59 [WARN] Truncating attribute path of 0 diagnostics for TypeSet
2020/11/12 16:28:01 [DEBUG] Trying to get account information via sts:GetCallerIdentity
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess (230.71s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_KMSEncrypted (239.79s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_disappears (246.47s)
2020/11/12 16:32:34 [TRACE] Waiting 10s before next try
--- PASS: TestAccAWSStorageGatewaySmbFileShare_GuessMIMETypeEnabled (290.10s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_ObjectACL (291.23s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Tags (296.35s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_FileShareName (296.41s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_ReadOnly (315.63s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_RequesterPays (335.63s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_KMSKeyArn (360.34s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_cacheAttributes (392.04s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_caseSensitivity (396.84s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_audit (399.81s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_DefaultStorageClass (419.99s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory (813.21s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_AdminUserList (970.23s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_InvalidUserList (977.18s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_ValidUserList (1042.87s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_smb_acl (1061.14s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1062.714s

@breathingdust
Copy link
Member

Note that I am seeing test failures in GovCloud for this resource due to Simple AD not being available in that region. This was not introduced by that PR. I have created an issue here to track #16172 and resolve.

@ghost
Copy link

ghost commented Nov 18, 2020

This has been released in version 3.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 for triage. Thanks!

@ghost
Copy link

ghost commented Dec 13, 2020

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 Dec 13, 2020
@DrFaust92 DrFaust92 removed their assignment Jun 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/storagegateway Issues and PRs that pertain to the storagegateway service. size/M 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.

Storage Gateway - SMB file share name
3 participants