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

New Resource: aws_route53_key_signing_key #16840

Merged
merged 3 commits into from
Feb 4, 2021
Merged

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Dec 18, 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

Requires #16834
Reference: #16836

Release note for CHANGELOG:

* **New Resource:** `aws_route53_key_signing_key`

Output from acceptance testing in AWS Commercial:

--- PASS: TestAccAwsRoute53KeySigningKey_disappears (209.62s)
--- PASS: TestAccAwsRoute53KeySigningKey_basic (233.38s)
--- PASS: TestAccAwsRoute53KeySigningKey_Status (295.66s)

@bflad bflad added new-resource Introduces a new resource. service/route53 Issues and PRs that pertain to the route53 service. labels Dec 18, 2020
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Dec 18, 2020
@bflad bflad force-pushed the f-aws_route53_key_signing_key branch 2 times, most recently from e8ea883 to dfbf334 Compare December 18, 2020 19:07
@bflad bflad force-pushed the f-aws_route53_key_signing_key branch from dfbf334 to 9bbfb1d Compare January 6, 2021 16:23
Reference: #16834
Reference: #16836

Output from acceptance testing in AWS Commercial:

```
--- PASS: TestAccAwsRoute53KeySigningKey_disappears (134.60s)
--- PASS: TestAccAwsRoute53KeySigningKey_basic (135.34s)
--- PASS: TestAccAwsRoute53KeySigningKey_Status (180.85s)
```
@bflad bflad force-pushed the f-aws_route53_key_signing_key branch from 9bbfb1d to dcfd137 Compare January 11, 2021 23:34
@bflad bflad marked this pull request as ready for review January 11, 2021 23:35
@bflad bflad requested a review from a team as a code owner January 11, 2021 23:35
Base automatically changed from master to main January 23, 2021 01:00
Copy link
Member

@YakDriver YakDriver left a 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)
Copy link
Member

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)
```
@bflad
Copy link
Contributor Author

bflad commented Feb 2, 2021

@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:

--- 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)

bflad added a commit that referenced this pull request Feb 3, 2021
…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)
```
Copy link
Member

@YakDriver YakDriver left a 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)

@bflad bflad merged commit 54d75b4 into main Feb 4, 2021
@bflad bflad deleted the f-aws_route53_key_signing_key branch February 4, 2021 16:10
@github-actions github-actions bot added this to the v3.27.0 milestone Feb 4, 2021
github-actions bot pushed a commit that referenced this pull request Feb 4, 2021
@ghost
Copy link

ghost commented Feb 5, 2021

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!

bflad added a commit that referenced this pull request Feb 18, 2021
…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)
```
@ghost
Copy link

ghost commented Mar 6, 2021

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 Mar 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/route53 Issues and PRs that pertain to the route53 service. size/XL 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