hashicorp / terraform-provider-tls

Utility provider that works with Transport Layer Security keys and certificates. It provides resources that allow private keys, certificates and certficate requests to be created as part of a Terraform deployment.
https://registry.terraform.io/providers/hashicorp/tls/latest
Mozilla Public License 2.0
184 stars 102 forks source link

datasource/tls_certificate: TestAccDataSourceCertificate_BadSSL test failures #516

Closed bflad closed 4 months ago

bflad commented 4 months ago

Terraform CLI and Provider Versions

N/A and main

Terraform Configuration

data "tls_certificate" "test" {
  url          = "https://untrusted-root.badssl.com/"
  verify_chain = false
}

Expected Behavior

Acceptance test passes without modification over time.

Actual Behavior

=== RUN   TestAccDataSourceCertificate_BadSSL
    data_source_certificate_test.go:166: Step 2/2 error: Check failed: Check 14/14 error: data.tls_certificate.test: Attribute 'certificates.1.sha1_fingerprint' expected "6922cd864f3c6299f6e751a019e5ddcdbc415a71", got "eede8b066561000952c3e599d4873eed75512a3b"
--- FAIL: TestAccDataSourceCertificate_BadSSL (0.64s)

Steps to Reproduce

  1. terraform apply

How much impact is this issue causing?

Low

Logs

No response

Additional Information

The acceptance test already notes that this value is expected to change over time (presumably when the external SSL certificate is rotated).

Code of Conduct