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

ACM: Acceptance test failures #29846

Open
ewbankkit opened this issue Mar 7, 2023 · 1 comment
Open

ACM: Acceptance test failures #29846

ewbankkit opened this issue Mar 7, 2023 · 1 comment
Labels
service/acm Issues and PRs that pertain to the acm service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Comments

@ewbankkit
Copy link
Contributor

ewbankkit commented Mar 7, 2023

Some ACM service acceptance tests are failing in CI:

=== RUN   TestAccACMCertificateValidation_validationRecordFQDNSWildcard
=== PAUSE TestAccACMCertificateValidation_validationRecordFQDNSWildcard
=== CONT  TestAccACMCertificateValidation_validationRecordFQDNSWildcard
certificate_validation_test.go:190: Step 1/1 error: After applying this test step and performing a `terraform refresh`, the plan was not empty.
stdout
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
-/+ destroy and then create replacement
Terraform will perform the following actions:
# aws_acm_certificate_validation.test must be replaced
-/+ resource "aws_acm_certificate_validation" "test" {
~ id                      = "2023-03-05 08:25:52.798 +0000 UTC" -> (known after apply)
~ validation_record_fqdns = [
- "_64ba8424c895d880768bc65906e901d8.terraform-provider-aws-acctest-acm.com",
] -> (known after apply) # forces replacement
# (1 unchanged attribute hidden)
}
# aws_route53_record.test will be created
+ resource "aws_route53_record" "test" {
+ allow_overwrite = true
+ fqdn            = (known after apply)
+ id              = (known after apply)
+ name            = "_64ba8424c895d880768bc65906e901d8.terraform-provider-aws-acctest-acm.com"
+ records         = [
+ "_d28f5553d34ab66e6bdb53baa1d6e106.duyqrilejt.acm-validations.aws.",
]
+ ttl             = 60
+ type            = "CNAME"
+ zone_id         = "Z091582589QQJMEZ8UU8"
}
Plan: 2 to add, 0 to change, 1 to destroy.
--- FAIL: TestAccACMCertificateValidation_validationRecordFQDNSWildcard (124.62s)
=== RUN   TestAccACMCertificateDataSource_singleIssued
=== PAUSE TestAccACMCertificateDataSource_singleIssued
=== CONT  TestAccACMCertificateDataSource_singleIssued
certificate_data_source_test.go:39: Step 1/6 error: Error running pre-apply refresh: exit status 1
Error: no certificate for domain "tf-acc-single-issued.terraform-provider-aws-acctest-acm.com" found in this Region
with data.aws_acm_certificate.test,
on terraform_plugin_test.tf line 2, in data "aws_acm_certificate" "test":
2: data "aws_acm_certificate" "test" {
--- FAIL: TestAccACMCertificateDataSource_singleIssued (26.09s)
=== RUN   TestAccACMCertificateDataSource_multipleIssued
=== PAUSE TestAccACMCertificateDataSource_multipleIssued
=== CONT  TestAccACMCertificateDataSource_multipleIssued
certificate_data_source_test.go:126: Step 1/6, expected an error with pattern, no match on: Error running pre-apply refresh: exit status 1
Error: no certificate for domain "tf-acc-multiple-issued.terraform-provider-aws-acctest-acm.com" found in this Region
with data.aws_acm_certificate.test,
on terraform_plugin_test.tf line 2, in data "aws_acm_certificate" "test":
2: data "aws_acm_certificate" "test" {
--- FAIL: TestAccACMCertificateDataSource_multipleIssued (28.17s)
=== RUN   TestAccACMCertificateDataSource_keyTypes
=== PAUSE TestAccACMCertificateDataSource_keyTypes
=== CONT  TestAccACMCertificateDataSource_keyTypes
certificate_data_source_test.go:215: Step 1/1 error: Error running apply: exit status 1
Error: no certificate for domain "z6pj0pc3.test" found in this Region
with data.aws_acm_certificate.test,
on terraform_plugin_test.tf line 11, in data "aws_acm_certificate" "test":
11: data "aws_acm_certificate" "test" {
--- FAIL: TestAccACMCertificateDataSource_keyTypes (99.86s)
=== RUN   TestAccACMCertificate_privateCertificate_pendingRenewalGoDuration
=== PAUSE TestAccACMCertificate_privateCertificate_pendingRenewalGoDuration
=== CONT  TestAccACMCertificate_privateCertificate_pendingRenewalGoDuration
certificate_test.go:446: Step 3/4 error: Check failed: 6 errors occurred:
  * Check 2/11 error: ACM Certificate not renewed: i.NotAfter="2024-04-05 08:20:32 +0000 UTC", j.NotAfter="2024-04-05 08:20:32 +0000 UTC"
  * Check 5/11 error: aws_acm_certificate.test: Attribute 'renewal_eligibility' expected "INELIGIBLE", got "ELIGIBLE"
  * Check 6/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.#' expected "1", got "0"
  * Check 7/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.0.renewal_status' not found
  * Check 8/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.0.renewal_status_reason' not found
  * Check 9/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.0.updated_at' didn't match "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?([Zz]|([+-]([01][0-9]|2[0-3]):[0-5][0-9]))$", got ""
--- FAIL: TestAccACMCertificate_privateCertificate_pendingRenewalGoDuration (261.25s)
=== RUN   TestAccACMCertificate_privateCertificate_pendingRenewalRFC3339Duration
=== PAUSE TestAccACMCertificate_privateCertificate_pendingRenewalRFC3339Duration
=== CONT  TestAccACMCertificate_privateCertificate_pendingRenewalRFC3339Duration
certificate_test.go:520: Step 3/4 error: Check failed: 6 errors occurred:
  * Check 2/11 error: ACM Certificate not renewed: i.NotAfter="2024-04-05 08:20:35 +0000 UTC", j.NotAfter="2024-04-05 08:20:35 +0000 UTC"
  * Check 5/11 error: aws_acm_certificate.test: Attribute 'renewal_eligibility' expected "INELIGIBLE", got "ELIGIBLE"
  * Check 6/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.#' expected "1", got "0"
  * Check 7/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.0.renewal_status' not found
  * Check 8/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.0.renewal_status_reason' not found
  * Check 9/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.0.updated_at' didn't match "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?([Zz]|([+-]([01][0-9]|2[0-3]):[0-5][0-9]))$", got ""
--- FAIL: TestAccACMCertificate_privateCertificate_pendingRenewalRFC3339Duration (261.22s)
=== RUN   TestAccACMCertificate_privateCertificate_addEarlyRenewalPast
=== PAUSE TestAccACMCertificate_privateCertificate_addEarlyRenewalPast
=== CONT  TestAccACMCertificate_privateCertificate_addEarlyRenewalPast
certificate_test.go:594: Step 5/5 error: Check failed: 6 errors occurred:
  * Check 2/11 error: ACM Certificate not renewed: i.NotAfter="2024-04-05 08:20:33 +0000 UTC", j.NotAfter="2024-04-05 08:20:33 +0000 UTC"
  * Check 5/11 error: aws_acm_certificate.test: Attribute 'renewal_eligibility' expected "INELIGIBLE", got "ELIGIBLE"
  * Check 6/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.#' expected "1", got "0"
  * Check 7/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.0.renewal_status' not found
  * Check 8/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.0.renewal_status_reason' not found
  * Check 9/11 error: aws_acm_certificate.test: Attribute 'renewal_summary.0.updated_at' didn't match "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?([Zz]|([+-]([01][0-9]|2[0-3]):[0-5][0-9]))$", got ""
--- FAIL: TestAccACMCertificate_privateCertificate_addEarlyRenewalPast (372.92s)
=== RUN   TestAccACMCertificate_privateCertificate_renewable
=== PAUSE TestAccACMCertificate_privateCertificate_renewable
=== CONT  TestAccACMCertificate_privateCertificate_renewable
certificate_test.go:202: Step 6/7 error: Check failed: 1 error occurred:
  * Check 2/10 error: ACM Certificate not renewed: i.NotAfter="2024-04-05 08:24:52 +0000 UTC", j.NotAfter="2024-04-05 08:24:52 +0000 UTC"
--- FAIL: TestAccACMCertificate_privateCertificate_renewable (396.88s)
=== RUN   TestAccACMCertificateValidation_validationRecordFQDNSWildcardAndRoot
=== PAUSE TestAccACMCertificateValidation_validationRecordFQDNSWildcardAndRoot
=== CONT  TestAccACMCertificateValidation_validationRecordFQDNSWildcardAndRoot
certificate_validation_test.go:215: Step 1/1 error: Error running apply: exit status 1
Error: reading Route 53 Record (Z091582589QQJMEZ8UU8__64ba8424c895d880768bc65906e901d8.terraform-provider-aws-acctest-acm.com._CNAME): couldn't find resource
with aws_route53_record.test,
on terraform_plugin_test.tf line 38, in resource "aws_route53_record" "test":
38: resource "aws_route53_record" "test" {
--- FAIL: TestAccACMCertificateValidation_validationRecordFQDNSWildcardAndRoot (93.37s)
@github-actions
Copy link

github-actions bot commented Mar 7, 2023

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@ewbankkit ewbankkit added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/acmpca Issues and PRs that pertain to the acmpca service. labels Mar 7, 2023
@ewbankkit ewbankkit changed the title ACMPCA: Acceptance test failures ACM: Acceptance test failures Mar 7, 2023
@ewbankkit ewbankkit added service/acm Issues and PRs that pertain to the acm service. and removed service/acmpca Issues and PRs that pertain to the acmpca service. labels Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/acm Issues and PRs that pertain to the acm service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

No branches or pull requests

1 participant