-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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/transfer_server - add security_policy_name
and refactor tests
#15375
r/transfer_server - add security_policy_name
and refactor tests
#15375
Conversation
add `security_policy_name`
refactor tests
06a00b8
to
3bac968
Compare
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 🚀.
Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSTransferServer_\|TestAccDataSourceAwsTransferServer_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSTransferServer_\|TestAccDataSourceAwsTransferServer_ -timeout 180m
=== RUN TestAccDataSourceAwsTransferServer_basic
=== PAUSE TestAccDataSourceAwsTransferServer_basic
=== RUN TestAccDataSourceAwsTransferServer_service_managed
=== PAUSE TestAccDataSourceAwsTransferServer_service_managed
=== RUN TestAccDataSourceAwsTransferServer_apigateway
=== PAUSE TestAccDataSourceAwsTransferServer_apigateway
=== RUN TestAccAWSTransferServer_basic
=== PAUSE TestAccAWSTransferServer_basic
=== RUN TestAccAWSTransferServer_securityPolicy
=== PAUSE TestAccAWSTransferServer_securityPolicy
=== RUN TestAccAWSTransferServer_Vpc
=== PAUSE TestAccAWSTransferServer_Vpc
=== RUN TestAccAWSTransferServer_apigateway
=== PAUSE TestAccAWSTransferServer_apigateway
=== RUN TestAccAWSTransferServer_disappears
=== PAUSE TestAccAWSTransferServer_disappears
=== RUN TestAccAWSTransferServer_forcedestroy
=== PAUSE TestAccAWSTransferServer_forcedestroy
=== RUN TestAccAWSTransferServer_vpcEndpointId
=== PAUSE TestAccAWSTransferServer_vpcEndpointId
=== RUN TestAccAWSTransferServer_hostKey
=== PAUSE TestAccAWSTransferServer_hostKey
=== CONT TestAccDataSourceAwsTransferServer_basic
=== CONT TestAccAWSTransferServer_apigateway
=== CONT TestAccAWSTransferServer_forcedestroy
=== CONT TestAccAWSTransferServer_vpcEndpointId
=== CONT TestAccAWSTransferServer_hostKey
=== CONT TestAccAWSTransferServer_disappears
=== CONT TestAccAWSTransferServer_basic
=== CONT TestAccAWSTransferServer_Vpc
=== CONT TestAccAWSTransferServer_securityPolicy
=== CONT TestAccDataSourceAwsTransferServer_service_managed
=== CONT TestAccDataSourceAwsTransferServer_apigateway
=== CONT TestAccAWSTransferServer_vpcEndpointId
resource_aws_transfer_server_test.go:275: Step 1/2 error: Error running apply: exit status 1
2021/05/05 17:36:36 [DEBUG] Using modified User-Agent: Terraform/0.12.30 HashiCorp-terraform-exec/0.13.3
Error: Error creating Transfer Server: InvalidRequestException: Account has the maximum allowed number of servers
on terraform_plugin_test.tf line 66, in resource "aws_transfer_server" "test":
66: resource "aws_transfer_server" "test" {
--- FAIL: TestAccAWSTransferServer_vpcEndpointId (53.88s)
--- PASS: TestAccAWSTransferServer_hostKey (186.34s)
--- PASS: TestAccDataSourceAwsTransferServer_basic (187.10s)
--- PASS: TestAccDataSourceAwsTransferServer_service_managed (187.74s)
--- PASS: TestAccAWSTransferServer_disappears (195.38s)
--- PASS: TestAccAWSTransferServer_forcedestroy (200.44s)
--- PASS: TestAccAWSTransferServer_securityPolicy (206.79s)
--- PASS: TestAccAWSTransferServer_basic (208.04s)
--- PASS: TestAccAWSTransferServer_Vpc (212.65s)
--- PASS: TestAccAWSTransferServer_apigateway (228.32s)
--- PASS: TestAccDataSourceAwsTransferServer_apigateway (320.99s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 323.987s
FAIL
make: *** [testacc] Error 1
=== CONT TestAccAWSTransferServer_vpcEndpointId
--- PASS: TestAccAWSTransferServer_vpcEndpointId (106.52s)
The failure is account-specific and unrelated to this change.
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSTransferServer_\|TestAccDataSourceAwsTransferServer_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSTransferServer_\|TestAccDataSourceAwsTransferServer_ -timeout 180m
=== RUN TestAccDataSourceAwsTransferServer_basic
=== PAUSE TestAccDataSourceAwsTransferServer_basic
=== RUN TestAccDataSourceAwsTransferServer_service_managed
=== PAUSE TestAccDataSourceAwsTransferServer_service_managed
=== RUN TestAccDataSourceAwsTransferServer_apigateway
=== PAUSE TestAccDataSourceAwsTransferServer_apigateway
=== RUN TestAccAWSTransferServer_basic
=== PAUSE TestAccAWSTransferServer_basic
=== RUN TestAccAWSTransferServer_securityPolicy
=== PAUSE TestAccAWSTransferServer_securityPolicy
=== RUN TestAccAWSTransferServer_Vpc
=== PAUSE TestAccAWSTransferServer_Vpc
=== RUN TestAccAWSTransferServer_apigateway
=== PAUSE TestAccAWSTransferServer_apigateway
=== RUN TestAccAWSTransferServer_disappears
=== PAUSE TestAccAWSTransferServer_disappears
=== RUN TestAccAWSTransferServer_forcedestroy
=== PAUSE TestAccAWSTransferServer_forcedestroy
=== RUN TestAccAWSTransferServer_vpcEndpointId
resource_aws_transfer_server_test.go:272: Transfer Server VPC_ENDPOINT endpoint type is not supported in GovCloud partition
--- SKIP: TestAccAWSTransferServer_vpcEndpointId (0.00s)
=== RUN TestAccAWSTransferServer_hostKey
=== PAUSE TestAccAWSTransferServer_hostKey
=== CONT TestAccDataSourceAwsTransferServer_basic
=== CONT TestAccAWSTransferServer_apigateway
=== CONT TestAccAWSTransferServer_hostKey
=== CONT TestAccAWSTransferServer_securityPolicy
=== CONT TestAccAWSTransferServer_disappears
=== CONT TestAccAWSTransferServer_forcedestroy
=== CONT TestAccAWSTransferServer_Vpc
=== CONT TestAccDataSourceAwsTransferServer_apigateway
=== CONT TestAccDataSourceAwsTransferServer_service_managed
=== CONT TestAccAWSTransferServer_basic
=== CONT TestAccAWSTransferServer_apigateway
resource_aws_api_gateway_rest_api_test.go:1326: skipping test; Endpoint Configuration type EDGE is not supported in this partition (aws-us-gov)
--- SKIP: TestAccAWSTransferServer_apigateway (1.36s)
=== CONT TestAccDataSourceAwsTransferServer_apigateway
resource_aws_api_gateway_rest_api_test.go:1326: skipping test; Endpoint Configuration type EDGE is not supported in this partition (aws-us-gov)
--- SKIP: TestAccDataSourceAwsTransferServer_apigateway (1.81s)
=== CONT TestAccAWSTransferServer_hostKey
provider_test.go:1072: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
2021/05/05 17:36:18 [DEBUG] Using modified User-Agent: Terraform/0.12.30 HashiCorp-terraform-exec/0.13.3
Error: Error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
2: resource "aws_transfer_server" "test" {
--- SKIP: TestAccAWSTransferServer_hostKey (7.65s)
=== CONT TestAccAWSTransferServer_disappears
provider_test.go:1072: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
2021/05/05 17:36:19 [DEBUG] Using modified User-Agent: Terraform/0.12.30 HashiCorp-terraform-exec/0.13.3
Error: Error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
2: resource "aws_transfer_server" "test" {}
=== CONT TestAccAWSTransferServer_basic
provider_test.go:1072: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
2021/05/05 17:36:19 [DEBUG] Using modified User-Agent: Terraform/0.12.30 HashiCorp-terraform-exec/0.13.3
Error: Error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
2: resource "aws_transfer_server" "test" {}
=== CONT TestAccAWSTransferServer_securityPolicy
provider_test.go:1072: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
2021/05/05 17:36:19 [DEBUG] Using modified User-Agent: Terraform/0.12.30 HashiCorp-terraform-exec/0.13.3
Error: Error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
2: resource "aws_transfer_server" "test" {
--- SKIP: TestAccAWSTransferServer_disappears (8.01s)
--- SKIP: TestAccAWSTransferServer_basic (8.05s)
--- SKIP: TestAccAWSTransferServer_securityPolicy (8.12s)
=== CONT TestAccDataSourceAwsTransferServer_basic
provider_test.go:1072: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
2021/05/05 17:36:20 [DEBUG] Using modified User-Agent: Terraform/0.12.30 HashiCorp-terraform-exec/0.13.3
Error: Error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
2: resource "aws_transfer_server" "test" {}
--- SKIP: TestAccDataSourceAwsTransferServer_basic (8.84s)
=== CONT TestAccAWSTransferServer_forcedestroy
provider_test.go:1072: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
2021/05/05 17:36:19 [DEBUG] Using modified User-Agent: Terraform/0.12.30 HashiCorp-terraform-exec/0.13.3
Error: Error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
2: resource "aws_transfer_server" "test" {
=== CONT TestAccDataSourceAwsTransferServer_service_managed
provider_test.go:1072: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
2021/05/05 17:36:20 [DEBUG] Using modified User-Agent: Terraform/0.12.30 HashiCorp-terraform-exec/0.13.3
Error: Error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
on terraform_plugin_test.tf line 42, in resource "aws_transfer_server" "test":
42: resource "aws_transfer_server" "test" {
--- SKIP: TestAccAWSTransferServer_forcedestroy (13.30s)
--- SKIP: TestAccDataSourceAwsTransferServer_service_managed (14.37s)
--- PASS: TestAccAWSTransferServer_Vpc (202.81s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 205.861s
This has been released in version 3.39.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! |
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. |
Community Note
Closes: #14694.
Closes: #15761.
Relates: #13527.
Release note for CHANGELOG:
Output from acceptance testing: