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

service/storagegateway: Update acceptance tests to use ARN testing check functions #13113

Merged
merged 1 commit into from
May 4, 2020

Conversation

gdavison
Copy link
Contributor

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 #11888

Release note for CHANGELOG:

NONE

Previously:

aws/resource_aws_storagegateway_nfs_file_share_test.go:34:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_nfs_file_share_test.go:38:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_nfs_file_share_test.go:44:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_nfs_file_share_test.go:255:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_nfs_file_share_test.go:263:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_smb_file_share_test.go:33:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_smb_file_share_test.go:38:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_smb_file_share_test.go:43:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_smb_file_share_test.go:74:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_smb_file_share_test.go:79:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_smb_file_share_test.go:83:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_smb_file_share_test.go:291:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)
aws/resource_aws_storagegateway_smb_file_share_test.go:299:6: AWSAT001: prefer resource.TestCheckResourceAttrPair() or ARN check functions (e.g. testAccMatchResourceAttrRegionalARN)

Output from acceptance testing:

--- PASS: TestAccAWSStorageGatewayNfsFileShare_basic (257.46s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Authentication_GuestAccess (260.53s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_KMSEncrypted (287.97s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_NFSFileShareDefaults (297.24s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_KMSEncrypted (308.29s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_Squash (318.23s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_RequesterPays (323.25s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_ReadOnly (328.41s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_ReadOnly (332.94s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_DefaultStorageClass (333.22s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_KMSKeyArn (373.73s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_GuessMIMETypeEnabled (378.42s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_ClientList (384.88s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_DefaultStorageClass (387.91s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_KMSKeyArn (403.56s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_ObjectACL (412.35s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_tags (420.12s)
--- PASS: TestAccAWSStorageGatewayWorkingStorage_Basic (421.44s)
--- PASS: TestAccAWSStorageGatewayUploadBuffer_Basic (454.96s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_RequesterPays (319.46s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_GuessMIMETypeEnabled (299.71s)
--- PASS: TestAccAWSStorageGatewayNfsFileShare_ObjectACL (320.17s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Tags (356.30s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory (768.55s)
--- FAIL: TestAccAWSStorageGatewaySmbFileShare_ValidUserList (525.58s)
--- PASS: TestAccAWSStorageGatewaySmbFileShare_InvalidUserList (1934.64s)

TestAccAWSStorageGatewaySmbFileShare_ValidUserList is an existing intermittent failure

@gdavison gdavison requested a review from a team April 30, 2020 19:47
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/S Managed by automation to categorize the size of a PR. service/storagegateway Issues and PRs that pertain to the storagegateway service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 30, 2020
@gdavison gdavison added technical-debt Addresses areas of the codebase that need refactoring or redesign. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 30, 2020
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Confirmed acceptance test output:

PASS: TestAccAWSStorageGatewayNfsFileShare_*
PASS: TestAccAWSStorageGatewaySmbFileShare_*
PASS: TestDecodeStorageGatewayUploadBufferID_*
PASS: TestAccAWSStorageGatewayUploadBuffer_*
PASS: TestDecodeStorageGatewayWorkingStorageID_*
PASS: TestAccAWSStorageGatewayWorkingStorage_*

With exception of:

--- FAIL: TestAccAWSStorageGatewayNfsFileShare_GuessMIMETypeEnabled (681.63s) -- timed out but when run in isolation, passed as expected

@gdavison gdavison merged commit 4526a5e into master May 4, 2020
@gdavison gdavison deleted the t-clean-up-storagegateway-arn-tests branch May 4, 2020 19:37
@gdavison gdavison added this to the v2.61.0 milestone May 5, 2020
@ghost
Copy link

ghost commented May 8, 2020

This has been released in version 2.61.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 Jun 4, 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 and limited conversation to collaborators Jun 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/storagegateway Issues and PRs that pertain to the storagegateway service. size/S Managed by automation to categorize the size of a PR. 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

Successfully merging this pull request may close these issues.

2 participants