Skip to content

Instantly share code, notes, and snippets.

@bzub
Created January 14, 2019 04:13
Show Gist options
  • Save bzub/0722481f00a07d872a2634413de760ad to your computer and use it in GitHub Desktop.
Save bzub/0722481f00a07d872a2634413de760ad to your computer and use it in GitHub Desktop.
terraform-provider-acme PR#14 test results
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -timeout 240m
=== RUN TestPluginVersion
--- PASS: TestPluginVersion (0.00s)
PASS
ok github.com/terraform-providers/terraform-provider-acme 0.013s
=== RUN TestResourceACMERegistrationMigrateState
2019/01/14 03:59:39 [DEBUG] Migrating acme_registration state: old v0 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"registration_body":"regbody", "registration_url":"https://acme-staging.api.letsencrypt.org/acme/reg/123456789", "registration_new_authz_url":"https://acme-staging.api.letsencrypt.org/acme/new-authz", "registration_tos_url":"https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf", "server_url":"https://acme-staging.api.letsencrypt.org/directory", "account_key_pem":"key", "email_address":"[email protected]"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{state:0, sema:0x0}}
2019/01/14 03:59:39 [DEBUG] Migrating acme_registration state: new v1 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"account_key_pem":"key", "email_address":"[email protected]", "registration_url":"https://acme-staging.api.letsencrypt.org/acme/reg/123456789"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{state:0, sema:0x0}}
2019/01/14 03:59:39 [DEBUG] Migrating acme_registration state: completed v1 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"account_key_pem":"key", "email_address":"[email protected]", "registration_url":"https://acme-staging.api.letsencrypt.org/acme/reg/123456789"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{state:0, sema:0x0}}
--- PASS: TestResourceACMERegistrationMigrateState (0.00s)
=== RUN TestMigrateACMERegistrationStateV1
--- PASS: TestMigrateACMERegistrationStateV1 (0.00s)
=== RUN TestResourceACMECertificateMigrateState
2019/01/14 03:59:39 [DEBUG] Migrating acme_certificate state: old v0 state: &terraform.InstanceState{ID:"certurl", Attributes:map[string]string{"subject_alternative_names.1":"bazbar", "key_type":"2048", "certificate_request_pem":"req", "http_challenge_port":"80", "certificate_url":"certurl", "account_ref":"regurl", "min_days_remaining":"7", "dns_challenge.1234.provider":"route53", "certificate_domain":"foobar", "certificate_pem":"certpem", "server_url":"https://acme-staging.api.letsencrypt.org/directory", "common_name":"foobar", "subject_alternative_names.0":"barbar", "tls_challenge_port":"443", "registration_url":"regurl", "account_key_pem":"key", "subject_alternative_names.#":"2", "dns_challenge.%":"1", "must_staple":"0", "private_key_pem":"certkey"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{state:0, sema:0x0}}
2019/01/14 03:59:39 [DEBUG] Migrating acme_certificate state: new v1 state: &terraform.InstanceState{ID:"certurl", Attributes:map[string]string{"common_name":"foobar", "subject_alternative_names.0":"barbar", "must_staple":"0", "private_key_pem":"certkey", "account_key_pem":"key", "subject_alternative_names.#":"2", "dns_challenge.%":"1", "certificate_url":"certurl", "account_ref":"regurl", "subject_alternative_names.1":"bazbar", "key_type":"2048", "certificate_request_pem":"req", "certificate_pem":"certpem", "min_days_remaining":"7", "dns_challenge.1234.provider":"route53", "certificate_domain":"foobar"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{state:0, sema:0x0}}
2019/01/14 03:59:39 [DEBUG] Migrating acme_certificate state: completed v1 state: &terraform.InstanceState{ID:"certurl", Attributes:map[string]string{"account_key_pem":"key", "subject_alternative_names.#":"2", "dns_challenge.%":"1", "must_staple":"0", "private_key_pem":"certkey", "subject_alternative_names.1":"bazbar", "key_type":"2048", "certificate_request_pem":"req", "certificate_url":"certurl", "account_ref":"regurl", "min_days_remaining":"7", "dns_challenge.1234.provider":"route53", "certificate_domain":"foobar", "certificate_pem":"certpem", "common_name":"foobar", "subject_alternative_names.0":"barbar"}, Ephemeral:terraform.EphemeralState{ConnInfo:map[string]string(nil), Type:""}, Meta:map[string]interface {}(nil), Tainted:false, mu:sync.Mutex{state:0, sema:0x0}}
--- PASS: TestResourceACMECertificateMigrateState (0.00s)
=== RUN TestMigrateACMECertificateStateV1
--- PASS: TestMigrateACMECertificateStateV1 (0.00s)
=== RUN TestACME_registrationSchemaFull
--- PASS: TestACME_registrationSchemaFull (0.00s)
=== RUN TestACME_certificateSchema
--- PASS: TestACME_certificateSchema (0.00s)
=== RUN TestACME_expandACMEUser
--- PASS: TestACME_expandACMEUser (0.00s)
=== RUN TestACME_expandACMEUser_badKey
--- PASS: TestACME_expandACMEUser_badKey (0.00s)
=== RUN TestACME_expandACMEClient_badKey
--- PASS: TestACME_expandACMEClient_badKey (0.00s)
=== RUN TestACME_expandACMEClient_noCertData
--- PASS: TestACME_expandACMEClient_noCertData (0.00s)
=== RUN TestACME_parsePEMBundle_noData
--- PASS: TestACME_parsePEMBundle_noData (0.00s)
=== RUN TestACME_setDNSChallenge_noProvider
--- PASS: TestACME_setDNSChallenge_noProvider (0.00s)
=== RUN TestACME_setDNSChallenge_unsuppotedProvider
--- PASS: TestACME_setDNSChallenge_unsuppotedProvider (0.00s)
=== RUN TestACME_saveCertificateResource_badCert
--- PASS: TestACME_saveCertificateResource_badCert (0.00s)
=== RUN TestACME_certDaysRemaining_CACert
--- PASS: TestACME_certDaysRemaining_CACert (0.00s)
=== RUN TestACME_splitPEMBundle_noData
--- PASS: TestACME_splitPEMBundle_noData (0.00s)
=== RUN TestACME_splitPEMBundle_CAFirst
--- PASS: TestACME_splitPEMBundle_CAFirst (0.00s)
=== RUN TestACME_splitPEMBundle_singleCert
--- PASS: TestACME_splitPEMBundle_singleCert (0.00s)
=== RUN TestACME_validateKeyType
--- PASS: TestACME_validateKeyType (0.00s)
=== RUN TestACME_validateKeyType_invalid
--- PASS: TestACME_validateKeyType_invalid (0.00s)
=== RUN TestACME_validateDNSChallengeConfig
--- PASS: TestACME_validateDNSChallengeConfig (0.00s)
=== RUN TestACME_validateDNSChallengeConfig_invalid
--- PASS: TestACME_validateDNSChallengeConfig_invalid (0.00s)
=== RUN TestACME_mapEnvironmentVariableValues
--- PASS: TestACME_mapEnvironmentVariableValues (0.00s)
=== RUN TestProvider
--- PASS: TestProvider (0.00s)
=== RUN TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN TestAccACMECertificate_basic
2019/01/14 03:59:39 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 03:59:39 [INFO] acme: Trying to resolve account by key
2019/01/14 03:59:40 [INFO] acme: Trying to resolve account by key
2019/01/14 03:59:40 [INFO][www.CENSORED_DOMAIN, www2.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 03:59:40 [INFO][www.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/zkJLXiLNaDvHM4arl1B_XK68lAtn4b6NbkKCizOd4ZU
2019/01/14 03:59:40 [INFO][www2.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/pE7PnVRt6ApbwFoJKAJv63iwpKS4U9GwjbZH-fMuTJM
2019/01/14 03:59:40 [INFO][www.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 04:00:17 [INFO][www.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 04:00:22 [INFO][www.CENSORED_DOMAIN] The server validated our request
2019/01/14 04:00:55 [INFO][www2.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 04:00:55 [INFO][www2.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 04:01:31 [INFO][www2.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 04:01:37 [INFO][www2.CENSORED_DOMAIN] The server validated our request
2019/01/14 04:02:13 [INFO][www.CENSORED_DOMAIN, www2.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 04:02:14 [INFO][www.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 04:02:14 [INFO] acme: Trying to resolve account by key
2019/01/14 04:02:15 [INFO] acme: Trying to resolve account by key
2019/01/14 04:02:15 [INFO] acme: Trying to resolve account by key
2019/01/14 04:02:15 [INFO] acme: Trying to resolve account by key
2019/01/14 04:02:15 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_basic (156.77s)
=== RUN TestAccACMECertificate_CSR
2019/01/14 04:02:16 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 04:02:16 [INFO] acme: Trying to resolve account by key
2019/01/14 04:02:17 [INFO] acme: Trying to resolve account by key
2019/01/14 04:02:17 [INFO][www3.CENSORED_DOMAIN, www4.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate given a CSR
2019/01/14 04:02:17 [INFO][www3.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/NlMQBq_JOChL1mbRPN43omOLW97xX1ZKCc7etmXmXfQ
2019/01/14 04:02:17 [INFO][www4.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/9OjOOyC17sScZZhEgFhDRzem1qwEq3v9yYYk2-Qfz4Y
2019/01/14 04:02:17 [INFO][www3.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 04:02:17 [INFO][www3.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 04:02:50 [INFO][www3.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 04:02:55 [INFO][www3.CENSORED_DOMAIN] The server validated our request
2019/01/14 04:03:27 [INFO][www4.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 04:03:27 [INFO][www4.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 04:04:04 [INFO][www4.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 04:04:09 [INFO][www4.CENSORED_DOMAIN] The server validated our request
2019/01/14 04:04:42 [INFO][www3.CENSORED_DOMAIN, www4.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 04:04:42 [INFO][www3.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 04:04:42 [INFO] acme: Trying to resolve account by key
2019/01/14 04:04:43 [INFO] acme: Trying to resolve account by key
2019/01/14 04:04:43 [INFO] acme: Trying to resolve account by key
2019/01/14 04:04:43 [INFO] acme: Trying to resolve account by key
2019/01/14 04:04:43 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_CSR (148.03s)
=== RUN TestAccACMECertificate_withDNSProviderConfig
2019/01/14 04:04:44 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 04:04:44 [INFO] acme: Trying to resolve account by key
2019/01/14 04:04:44 [INFO] acme: Trying to resolve account by key
2019/01/14 04:04:45 [INFO][www5.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 04:04:45 [INFO][www5.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/_7sOI_M13f9AA2As014Cq4aM2cOD6w4P-MUwvbvsMOQ
2019/01/14 04:04:45 [INFO][www5.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 04:05:17 [INFO][www5.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 04:05:23 [INFO][www5.CENSORED_DOMAIN] The server validated our request
2019/01/14 04:05:59 [INFO][www5.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 04:06:00 [INFO][www5.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 04:06:00 [INFO] acme: Trying to resolve account by key
2019/01/14 04:06:00 [INFO] acme: Trying to resolve account by key
2019/01/14 04:06:01 [INFO] acme: Trying to resolve account by key
2019/01/14 04:06:01 [INFO] acme: Trying to resolve account by key
2019/01/14 04:06:01 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_withDNSProviderConfig (77.58s)
=== RUN TestAccACMECertificate_forceRenewal
2019/01/14 04:06:01 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 04:06:03 [INFO] acme: Trying to resolve account by key
2019/01/14 04:06:04 [INFO] acme: Trying to resolve account by key
2019/01/14 04:06:05 [INFO][www6.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 04:06:05 [INFO][www6.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/gXBVkKcTnkuZfagppp5AGan5c3r6xusZ1IY5z72_T2k
2019/01/14 04:06:05 [INFO][www6.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 04:06:05 [INFO][www6.CENSORED_DOMAIN] acme: Could not find solver for: http-01
2019/01/14 04:06:05 [INFO][www6.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 04:06:38 [INFO][www6.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 04:06:43 [INFO][www6.CENSORED_DOMAIN] The server validated our request
2019/01/14 04:07:20 [INFO][www6.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 04:07:21 [INFO][www6.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 04:07:21 [INFO] acme: Trying to resolve account by key
2019/01/14 04:07:21 [INFO] acme: Trying to resolve account by key
2019/01/14 04:07:22 [INFO] acme: Trying to resolve account by key
2019/01/14 04:07:22 [INFO][www6.CENSORED_DOMAIN] acme: Trying renewal with 2158 hours remaining
2019/01/14 04:07:22 [INFO][www6.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 04:07:22 [INFO][www6.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/gXBVkKcTnkuZfagppp5AGan5c3r6xusZ1IY5z72_T2k
2019/01/14 04:07:22 [INFO][www6.CENSORED_DOMAIN] acme: Authorization already valid; skipping challenge
2019/01/14 04:07:22 [INFO][www6.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 04:07:23 [INFO][www6.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 04:07:23 [INFO] acme: Trying to resolve account by key
2019/01/14 04:07:23 [INFO] acme: Trying to resolve account by key
2019/01/14 04:07:23 [INFO] acme: Trying to resolve account by key
2019/01/14 04:07:24 [INFO] acme: Trying to resolve account by key
2019/01/14 04:07:24 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_forceRenewal (82.98s)
=== RUN TestAccACMECertificate_mustStaple
2019/01/14 04:07:25 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 04:07:25 [INFO] acme: Trying to resolve account by key
2019/01/14 04:07:25 [INFO] acme: Trying to resolve account by key
2019/01/14 04:07:25 [INFO][www8.CENSORED_DOMAIN, www9.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 04:07:26 [INFO][www8.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/GSOgTIBI68lk3k0R1Stus0WDTX5qHixOKeZAuEpO_3w
2019/01/14 04:07:26 [INFO][www9.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/qJkQP9crQSvkZczj5w22U3HqVKkAvxAgMTnVAqcc3do
2019/01/14 04:07:26 [INFO][www8.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 04:07:26 [INFO][www8.CENSORED_DOMAIN] acme: Could not find solver for: http-01
2019/01/14 04:07:26 [INFO][www8.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 04:07:58 [INFO][www8.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 04:08:03 [INFO][www8.CENSORED_DOMAIN] The server validated our request
2019/01/14 04:08:36 [INFO][www9.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 04:08:36 [INFO][www9.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 04:09:12 [INFO][www9.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 04:09:18 [INFO][www9.CENSORED_DOMAIN] The server validated our request
2019/01/14 04:09:54 [INFO][www8.CENSORED_DOMAIN, www9.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 04:09:55 [INFO][www8.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 04:09:55 [INFO] acme: Trying to resolve account by key
2019/01/14 04:09:55 [INFO] acme: Trying to resolve account by key
2019/01/14 04:09:56 [INFO] acme: Trying to resolve account by key
2019/01/14 04:09:56 [INFO] acme: Trying to resolve account by key
2019/01/14 04:09:56 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_mustStaple (152.17s)
=== RUN TestAccACMECertificate_wildcard
2019/01/14 04:09:57 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 04:09:57 [INFO] acme: Trying to resolve account by key
2019/01/14 04:09:57 [INFO] acme: Trying to resolve account by key
2019/01/14 04:09:57 [INFO][*.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 04:09:58 [INFO][*.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/7abfDY6nuz3fN8xNUG8FhoGb3UujCbtx_oceMigX5-I
2019/01/14 04:09:58 [INFO][CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 04:10:30 [INFO][CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 04:10:36 [INFO][CENSORED_DOMAIN] The server validated our request
2019/01/14 04:11:08 [INFO][*.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 04:11:09 [INFO][*.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 04:11:09 [INFO] acme: Trying to resolve account by key
2019/01/14 04:11:10 [INFO] acme: Trying to resolve account by key
2019/01/14 04:11:10 [INFO] acme: Trying to resolve account by key
2019/01/14 04:11:10 [INFO] acme: Trying to resolve account by key
2019/01/14 04:11:10 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_wildcard (74.29s)
=== RUN TestAccACMERegistration_basic
2019/01/14 04:11:11 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 04:11:11 [INFO] acme: Trying to resolve account by key
2019/01/14 04:11:11 [INFO] acme: Trying to resolve account by key
2019/01/14 04:11:12 [INFO] acme: Querying account for https://acme-staging-v02.api.letsencrypt.org/acme/acct/7851391
2019/01/14 04:11:12 [INFO] acme: Trying to resolve account by key
2019/01/14 04:11:12 [INFO] acme: Trying to resolve account by key
2019/01/14 04:11:12 [INFO] acme: Trying to resolve account by key
2019/01/14 04:11:12 [INFO] acme: Deleting account for CENSORED_EMAIL
2019/01/14 04:11:13 [INFO] acme: Trying to resolve account by key
--- PASS: TestAccACMERegistration_basic (2.24s)
PASS
ok github.com/terraform-providers/terraform-provider-acme/acme 694.086s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment