-
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
New Resource: aws_route53_key_signing_key #16840
Conversation
e8ea883
to
dfbf334
Compare
dfbf334
to
9bbfb1d
Compare
9bbfb1d
to
dcfd137
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.
In GovCloud, all these tests should skip but, when run parallel, 2 out of 3 consistently fail.
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run='TestAccAwsRoute53KeySigningKey_' -timeout 120m
route53_key_signing_key_test.go:45: Route 53 Key Signing Key not available in this AWS Partition
--- SKIP: TestAccAwsRoute53KeySigningKey_basic (1.12s)
=== CONT TestAccAwsRoute53KeySigningKey_Status
resource_aws_route53_key_signing_key_test.go:84: Step 1/4 error: Error running pre-apply refresh:
Error: Invalid AWS Region:
=== CONT TestAccAwsRoute53KeySigningKey_disappears
resource_aws_route53_key_signing_key_test.go:62: Step 1/1 error: Error running pre-apply refresh:
Error: Invalid AWS Region:
--- FAIL: TestAccAwsRoute53KeySigningKey_disappears (2.13s)
--- FAIL: TestAccAwsRoute53KeySigningKey_Status (2.14s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 3.201s
|
||
// testAccPreCheckRoute53KeySigningKey verifies AWS credentials and that Route 53 Key Signing Key is supported | ||
func testAccPreCheckRoute53KeySigningKey(t *testing.T) { | ||
testAccPartitionHasServicePreCheck(route53.EndpointsID, t) |
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.
I wonder if we shouldn't pull this over into the ParallelTest()
anonymous PreCheck
function. If later we add a testAccPartitionHasServicePreCheck
linter, this would fail even though it shouldn't.
…nc.Once Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAwsRoute53KeySigningKey_disappears (157.73s) --- PASS: TestAccAwsRoute53KeySigningKey_basic (180.64s) --- PASS: TestAccAwsRoute53KeySigningKey_Status (218.81s) ``` Output from acceptance testing in AWS GovCloud (US): ``` === CONT TestAccAwsRoute53KeySigningKey_basic route53_key_signing_key_test.go:40: Route 53 Key Signing Key not available in this AWS Partition --- SKIP: TestAccAwsRoute53KeySigningKey_basic (2.52s) === CONT TestAccAwsRoute53KeySigningKey_Status route53_key_signing_key_test.go:40: Route 53 Key Signing Key not available in this AWS Partition === CONT TestAccAwsRoute53KeySigningKey_disappears route53_key_signing_key_test.go:40: Route 53 Key Signing Key not available in this AWS Partition --- SKIP: TestAccAwsRoute53KeySigningKey_Status (2.52s) --- SKIP: TestAccAwsRoute53KeySigningKey_disappears (2.52s) ```
@YakDriver fixed in latest commit to perform region lookup skipping outside sync.Once -- will probably need to apply this same change in other similar "special provider" test files as well, but will do that separately. Output from acceptance testing in AWS Commercial:
Output from acceptance testing in AWS GovCloud (US):
|
…ving multiple tests Reference: #16840 (review) Output from acceptance testing in AWS Commercial: ``` --- FAIL: TestAccAWSAPIGatewayDomainName_CertificateArn (965.31s) # #17420 --- PASS: TestAccAWSAPIGatewayDomainName_disappears (152.03s) --- PASS: TestAccAWSAPIGatewayDomainName_RegionalCertificateArn (110.11s) --- PASS: TestAccAWSAPIGatewayDomainName_SecurityPolicy (115.66s) --- PASS: TestAccAWSAPIGatewayDomainName_Tags (126.40s) --- SKIP: TestAccAWSAPIGatewayDomainName_CertificateName (0.00s) --- SKIP: TestAccAWSAPIGatewayDomainName_RegionalCertificateName (0.00s) --- PASS: TestAccAWSCognitoUserPoolDomain_basic (29.57s) --- PASS: TestAccAWSCognitoUserPoolDomain_custom (770.94s) --- PASS: TestAccAWSCognitoUserPoolDomain_disappears (27.19s) --- PASS: TestAccAWSLightsailDomain_basic (23.82s) --- PASS: TestAccAWSLightsailDomain_disappears (20.95s) --- PASS: TestAccAWSRoute53QueryLog_basic (51.64s) --- PASS: TestAccAWSWafWebAcl_basic (20.01s) --- PASS: TestAccAWSWafWebAcl_changeNameForceNew (45.63s) --- PASS: TestAccAWSWafWebAcl_DefaultAction (36.54s) --- PASS: TestAccAWSWafWebAcl_disappears (21.46s) --- PASS: TestAccAWSWafWebAcl_LoggingConfiguration (110.88s) --- PASS: TestAccAWSWafWebAcl_Rules (60.21s) --- PASS: TestAccAWSWafWebAcl_Tags (50.74s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- PASS: TestAccAWSAPIGatewayDomainName_disappears (28.66s) --- PASS: TestAccAWSAPIGatewayDomainName_RegionalCertificateArn (79.60s) --- PASS: TestAccAWSAPIGatewayDomainName_SecurityPolicy (110.56s) --- PASS: TestAccAWSAPIGatewayDomainName_Tags (139.40s) --- SKIP: TestAccAWSAPIGatewayDomainName_CertificateArn (0.00s) --- SKIP: TestAccAWSAPIGatewayDomainName_CertificateName (0.00s) --- SKIP: TestAccAWSAPIGatewayDomainName_RegionalCertificateName (0.00s) --- PASS: TestAccAWSCognitoUserPoolDomain_basic (29.53s) --- PASS: TestAccAWSCognitoUserPoolDomain_disappears (25.98s) --- SKIP: TestAccAWSCognitoUserPoolDomain_custom (0.00s) --- SKIP: TestAccAWSLightsailDomain_basic (3.48s) --- SKIP: TestAccAWSLightsailDomain_disappears (3.48s) --- SKIP: TestAccAWSRoute53QueryLog_basic (3.48s) --- SKIP: TestAccAWSWafWebAcl_basic (27.40s) --- SKIP: TestAccAWSWafWebAcl_changeNameForceNew (27.75s) --- SKIP: TestAccAWSWafWebAcl_DefaultAction (21.04s) --- SKIP: TestAccAWSWafWebAcl_disappears (25.19s) --- SKIP: TestAccAWSWafWebAcl_LoggingConfiguration (28.85s) --- SKIP: TestAccAWSWafWebAcl_Rules (30.87s) --- SKIP: TestAccAWSWafWebAcl_Tags (29.67s) ```
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.
Looks good!
GovCloud:
--- SKIP: TestAccAwsRoute53KeySigningKey_basic (1.21s)
--- SKIP: TestAccAwsRoute53KeySigningKey_Status (1.21s)
--- SKIP: TestAccAwsRoute53KeySigningKey_disappears (1.21s)
us-west-2
:
--- PASS: TestAccAwsRoute53KeySigningKey_disappears (134.30s)
--- PASS: TestAccAwsRoute53KeySigningKey_basic (136.01s)
--- PASS: TestAccAwsRoute53KeySigningKey_Status (182.55s)
This has been released in version 3.27.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! |
…ving multiple tests (#17421) Reference: #16840 (review) Output from acceptance testing in AWS Commercial: ``` --- FAIL: TestAccAWSAPIGatewayDomainName_CertificateArn (965.31s) # #17420 --- PASS: TestAccAWSAPIGatewayDomainName_disappears (152.03s) --- PASS: TestAccAWSAPIGatewayDomainName_RegionalCertificateArn (110.11s) --- PASS: TestAccAWSAPIGatewayDomainName_SecurityPolicy (115.66s) --- PASS: TestAccAWSAPIGatewayDomainName_Tags (126.40s) --- SKIP: TestAccAWSAPIGatewayDomainName_CertificateName (0.00s) --- SKIP: TestAccAWSAPIGatewayDomainName_RegionalCertificateName (0.00s) --- PASS: TestAccAWSCognitoUserPoolDomain_basic (29.57s) --- PASS: TestAccAWSCognitoUserPoolDomain_custom (770.94s) --- PASS: TestAccAWSCognitoUserPoolDomain_disappears (27.19s) --- PASS: TestAccAWSLightsailDomain_basic (23.82s) --- PASS: TestAccAWSLightsailDomain_disappears (20.95s) --- PASS: TestAccAWSRoute53QueryLog_basic (51.64s) --- PASS: TestAccAWSWafWebAcl_basic (20.01s) --- PASS: TestAccAWSWafWebAcl_changeNameForceNew (45.63s) --- PASS: TestAccAWSWafWebAcl_DefaultAction (36.54s) --- PASS: TestAccAWSWafWebAcl_disappears (21.46s) --- PASS: TestAccAWSWafWebAcl_LoggingConfiguration (110.88s) --- PASS: TestAccAWSWafWebAcl_Rules (60.21s) --- PASS: TestAccAWSWafWebAcl_Tags (50.74s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- PASS: TestAccAWSAPIGatewayDomainName_disappears (28.66s) --- PASS: TestAccAWSAPIGatewayDomainName_RegionalCertificateArn (79.60s) --- PASS: TestAccAWSAPIGatewayDomainName_SecurityPolicy (110.56s) --- PASS: TestAccAWSAPIGatewayDomainName_Tags (139.40s) --- SKIP: TestAccAWSAPIGatewayDomainName_CertificateArn (0.00s) --- SKIP: TestAccAWSAPIGatewayDomainName_CertificateName (0.00s) --- SKIP: TestAccAWSAPIGatewayDomainName_RegionalCertificateName (0.00s) --- PASS: TestAccAWSCognitoUserPoolDomain_basic (29.53s) --- PASS: TestAccAWSCognitoUserPoolDomain_disappears (25.98s) --- SKIP: TestAccAWSCognitoUserPoolDomain_custom (0.00s) --- SKIP: TestAccAWSLightsailDomain_basic (3.48s) --- SKIP: TestAccAWSLightsailDomain_disappears (3.48s) --- SKIP: TestAccAWSRoute53QueryLog_basic (3.48s) --- SKIP: TestAccAWSWafWebAcl_basic (27.40s) --- SKIP: TestAccAWSWafWebAcl_changeNameForceNew (27.75s) --- SKIP: TestAccAWSWafWebAcl_DefaultAction (21.04s) --- SKIP: TestAccAWSWafWebAcl_disappears (25.19s) --- SKIP: TestAccAWSWafWebAcl_LoggingConfiguration (28.85s) --- SKIP: TestAccAWSWafWebAcl_Rules (30.87s) --- SKIP: TestAccAWSWafWebAcl_Tags (29.67s) ```
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! |
Community Note
Requires #16834
Reference: #16836
Release note for CHANGELOG:
Output from acceptance testing in AWS Commercial: