Skip to content

Instantly share code, notes, and snippets.

@bzub
Created January 14, 2019 02:09
Show Gist options
  • Save bzub/4edae7498d95f1d0c6d32948939f689d to your computer and use it in GitHub Desktop.
Save bzub/4edae7498d95f1d0c6d32948939f689d to your computer and use it in GitHub Desktop.
terraform-provider-acme PR#17 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 01:48:06 [DEBUG] Migrating acme_registration state: old v0 state: &terraform.InstanceState{ID:"regurl", Attributes:map[string]string{"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]", "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"}, 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 01:48:06 [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 01:48:06 [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 01:48:06 [DEBUG] Migrating acme_certificate state: old v0 state: &terraform.InstanceState{ID:"certurl", Attributes:map[string]string{"account_key_pem":"key", "subject_alternative_names.0":"barbar", "registration_url":"regurl", "must_staple":"0", "account_ref":"regurl", "certificate_pem":"certpem", "common_name":"foobar", "dns_challenge.%":"1", "dns_challenge.1234.provider":"route53", "tls_challenge_port":"443", "certificate_domain":"foobar", "subject_alternative_names.#":"2", "key_type":"2048", "certificate_request_pem":"req", "server_url":"https://acme-staging.api.letsencrypt.org/directory", "subject_alternative_names.1":"bazbar", "min_days_remaining":"7", "http_challenge_port":"80", "certificate_url":"certurl", "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 01:48:06 [DEBUG] Migrating acme_certificate state: new v1 state: &terraform.InstanceState{ID:"certurl", Attributes:map[string]string{"key_type":"2048", "certificate_request_pem":"req", "subject_alternative_names.#":"2", "subject_alternative_names.1":"bazbar", "min_days_remaining":"7", "certificate_url":"certurl", "private_key_pem":"certkey", "subject_alternative_names.0":"barbar", "must_staple":"0", "account_ref":"regurl", "certificate_pem":"certpem", "account_key_pem":"key", "dns_challenge.%":"1", "dns_challenge.1234.provider":"route53", "certificate_domain":"foobar", "common_name":"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 01:48:06 [DEBUG] Migrating acme_certificate state: completed v1 state: &terraform.InstanceState{ID:"certurl", Attributes:map[string]string{"subject_alternative_names.#":"2", "key_type":"2048", "certificate_request_pem":"req", "certificate_url":"certurl", "private_key_pem":"certkey", "subject_alternative_names.1":"bazbar", "min_days_remaining":"7", "account_ref":"regurl", "certificate_pem":"certpem", "account_key_pem":"key", "subject_alternative_names.0":"barbar", "must_staple":"0", "certificate_domain":"foobar", "common_name":"foobar", "dns_challenge.%":"1", "dns_challenge.1234.provider":"route53"}, 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 01:48:07 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 01:48:07 [INFO] acme: Trying to resolve account by key
2019/01/14 01:48:08 [INFO] acme: Trying to resolve account by key
2019/01/14 01:48:08 [INFO][www.CENSORED_DOMAIN, www2.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 01:48:08 [INFO][www.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/nwANK1RGW3SjNiRKeUlHcYkMPHD5TCU42p83PCWtopI
2019/01/14 01:48:08 [INFO][www2.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/oe_mkk_WMICOZQaw6kFeNdW2poqPz8yH8epWgU23YYg
2019/01/14 01:48:08 [INFO][www.CENSORED_DOMAIN] acme: Could not find solver for: http-01
2019/01/14 01:48:08 [INFO][www.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 01:48:08 [INFO][www.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 01:48:41 [INFO][www.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 01:48:47 [INFO][www.CENSORED_DOMAIN] The server validated our request
2019/01/14 01:49:19 [INFO][www2.CENSORED_DOMAIN] acme: Could not find solver for: http-01
2019/01/14 01:49:19 [INFO][www2.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 01:49:52 [INFO][www2.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 01:49:57 [INFO][www2.CENSORED_DOMAIN] The server validated our request
2019/01/14 01:50:29 [INFO][www.CENSORED_DOMAIN, www2.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 01:50:31 [INFO][www.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 01:50:31 [INFO] acme: Trying to resolve account by key
2019/01/14 01:50:31 [INFO] acme: Trying to resolve account by key
2019/01/14 01:50:31 [INFO] acme: Trying to resolve account by key
2019/01/14 01:50:32 [INFO] acme: Trying to resolve account by key
2019/01/14 01:50:32 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_basic (145.60s)
=== RUN TestAccACMECertificate_CSR
2019/01/14 01:50:33 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 01:50:33 [INFO] acme: Trying to resolve account by key
2019/01/14 01:50:33 [INFO] acme: Trying to resolve account by key
2019/01/14 01:50:33 [INFO][www3.CENSORED_DOMAIN, www4.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate given a CSR
2019/01/14 01:50:34 [INFO][www3.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/nsgl19rZZc8JXdXhSo5pztoBct62Iu-o7V3bh8o1sBc
2019/01/14 01:50:34 [INFO][www4.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/icpHfgoc4GjRNknmDBjVqwhWppgxjq_h1m5KbZ10SHw
2019/01/14 01:50:34 [INFO][www3.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 01:51:10 [INFO][www3.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 01:51:15 [INFO][www3.CENSORED_DOMAIN] The server validated our request
2019/01/14 01:51:52 [INFO][www4.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 01:51:52 [INFO][www4.CENSORED_DOMAIN] acme: Could not find solver for: http-01
2019/01/14 01:51:52 [INFO][www4.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 01:52:25 [INFO][www4.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 01:52:30 [INFO][www4.CENSORED_DOMAIN] The server validated our request
2019/01/14 01:53:06 [INFO][www3.CENSORED_DOMAIN, www4.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 01:53:07 [INFO][www3.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 01:53:07 [INFO] acme: Trying to resolve account by key
2019/01/14 01:53:07 [INFO] acme: Trying to resolve account by key
2019/01/14 01:53:07 [INFO] acme: Trying to resolve account by key
2019/01/14 01:53:08 [INFO] acme: Trying to resolve account by key
2019/01/14 01:53:08 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_CSR (155.91s)
=== RUN TestAccACMECertificate_withDNSProviderConfig
2019/01/14 01:53:08 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 01:53:09 [INFO] acme: Trying to resolve account by key
2019/01/14 01:53:09 [INFO] acme: Trying to resolve account by key
2019/01/14 01:53:09 [INFO][www5.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 01:53:09 [INFO][www5.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/LwrcP-MvtPSq1mOgh6nlZD1J5WkJ0u16N9r8YmZw7cI
2019/01/14 01:53:09 [INFO][www5.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 01:53:42 [INFO][www5.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 01:53:47 [INFO][www5.CENSORED_DOMAIN] The server validated our request
2019/01/14 01:54:20 [INFO][www5.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 01:54:26 [INFO][www5.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 01:54:26 [INFO] acme: Trying to resolve account by key
2019/01/14 01:54:26 [INFO] acme: Trying to resolve account by key
2019/01/14 01:54:26 [INFO] acme: Trying to resolve account by key
2019/01/14 01:54:27 [INFO] acme: Trying to resolve account by key
2019/01/14 01:54:27 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_withDNSProviderConfig (79.32s)
=== RUN TestAccACMECertificate_forceRenewal
2019/01/14 01:54:28 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 01:54:28 [INFO] acme: Trying to resolve account by key
2019/01/14 01:54:28 [INFO] acme: Trying to resolve account by key
2019/01/14 01:54:28 [INFO][www6.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 01:54:29 [INFO][www6.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/CEXFxGdF0NKntKo2ha2WezvRLIiTJF4t6aqDM1H726w
2019/01/14 01:54:29 [INFO][www6.CENSORED_DOMAIN] acme: Could not find solver for: http-01
2019/01/14 01:54:29 [INFO][www6.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 01:54:57 [INFO][www6.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 01:55:02 [INFO][www6.CENSORED_DOMAIN] The server validated our request
2019/01/14 01:55:35 [INFO][www6.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 01:55:36 [INFO][www6.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 01:55:36 [INFO] acme: Trying to resolve account by key
2019/01/14 01:55:36 [INFO] acme: Trying to resolve account by key
2019/01/14 01:55:36 [INFO] acme: Trying to resolve account by key
2019/01/14 01:55:37 [INFO][www6.CENSORED_DOMAIN] acme: Trying renewal with 2158 hours remaining
2019/01/14 01:55:37 [INFO][www6.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 01:55:37 [INFO][www6.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/CEXFxGdF0NKntKo2ha2WezvRLIiTJF4t6aqDM1H726w
2019/01/14 01:55:37 [INFO][www6.CENSORED_DOMAIN] acme: Authorization already valid; skipping challenge
2019/01/14 01:55:37 [INFO][www6.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 01:55:40 [INFO][www6.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 01:55:40 [INFO] acme: Trying to resolve account by key
2019/01/14 01:55:40 [INFO] acme: Trying to resolve account by key
2019/01/14 01:55:40 [INFO] acme: Trying to resolve account by key
2019/01/14 01:55:41 [INFO] acme: Trying to resolve account by key
2019/01/14 01:55:41 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_forceRenewal (74.10s)
=== RUN TestAccACMECertificate_mustStaple
2019/01/14 01:55:42 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 01:55:42 [INFO] acme: Trying to resolve account by key
2019/01/14 01:55:42 [INFO] acme: Trying to resolve account by key
2019/01/14 01:55:42 [INFO][www8.CENSORED_DOMAIN, www9.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 01:55:43 [INFO][www8.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/Gi-IZJlYP50nuTnW6Qr6uxEbXylEsbzm1ZeE6D3uMIE
2019/01/14 01:55:43 [INFO][www9.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/60FjpbIJPCCWq6ppT64ARj0Y_0DBJT1OTVVnG_8YlTg
2019/01/14 01:55:43 [INFO][www8.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 01:55:43 [INFO][www8.CENSORED_DOMAIN] acme: Could not find solver for: http-01
2019/01/14 01:55:43 [INFO][www8.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 01:56:19 [INFO][www8.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 01:56:25 [INFO][www8.CENSORED_DOMAIN] The server validated our request
2019/01/14 01:57:01 [INFO][www9.CENSORED_DOMAIN] acme: Could not find solver for: tls-alpn-01
2019/01/14 01:57:01 [INFO][www9.CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 01:57:38 [INFO][www9.CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 01:57:43 [INFO][www9.CENSORED_DOMAIN] The server validated our request
2019/01/14 01:58:19 [INFO][www8.CENSORED_DOMAIN, www9.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 01:58:20 [INFO][www8.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 01:58:20 [INFO] acme: Trying to resolve account by key
2019/01/14 01:58:21 [INFO] acme: Trying to resolve account by key
2019/01/14 01:58:21 [INFO] acme: Trying to resolve account by key
2019/01/14 01:58:21 [INFO] acme: Trying to resolve account by key
2019/01/14 01:58:21 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_mustStaple (160.09s)
=== RUN TestAccACMECertificate_wildcard
2019/01/14 01:58:22 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 01:58:22 [INFO] acme: Trying to resolve account by key
2019/01/14 01:58:23 [INFO] acme: Trying to resolve account by key
2019/01/14 01:58:23 [INFO][*.CENSORED_DOMAIN] acme: Obtaining bundled SAN certificate
2019/01/14 01:58:23 [INFO][*.CENSORED_DOMAIN] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/PLTzyE2nRuqAj27QE0gzLaeC9WR4k9P0iRFyv50GpJo
2019/01/14 01:58:23 [INFO][CENSORED_DOMAIN] acme: Trying to solve DNS-01
2019/01/14 01:58:56 [INFO][CENSORED_DOMAIN] Checking DNS record propagation using [169.254.169.254:53]
2019/01/14 01:59:01 [INFO][CENSORED_DOMAIN] The server validated our request
2019/01/14 01:59:33 [INFO][*.CENSORED_DOMAIN] acme: Validations succeeded; requesting certificates
2019/01/14 01:59:34 [INFO][*.CENSORED_DOMAIN] Server responded with a certificate.
2019/01/14 01:59:35 [INFO] acme: Trying to resolve account by key
2019/01/14 01:59:35 [INFO] acme: Trying to resolve account by key
2019/01/14 01:59:35 [INFO] acme: Trying to resolve account by key
2019/01/14 01:59:36 [INFO] acme: Trying to resolve account by key
2019/01/14 01:59:36 [INFO] acme: Deleting account for CENSORED_EMAIL
--- PASS: TestAccACMECertificate_wildcard (74.51s)
=== RUN TestAccACMERegistration_basic
2019/01/14 01:59:36 [INFO] acme: Registering account for CENSORED_EMAIL
2019/01/14 01:59:36 [INFO] acme: Trying to resolve account by key
2019/01/14 01:59:37 [INFO] acme: Trying to resolve account by key
2019/01/14 01:59:37 [INFO] acme: Querying account for https://acme-staging-v02.api.letsencrypt.org/acme/acct/7850655
2019/01/14 01:59:37 [INFO] acme: Trying to resolve account by key
2019/01/14 01:59:37 [INFO] acme: Trying to resolve account by key
2019/01/14 01:59:38 [INFO] acme: Trying to resolve account by key
2019/01/14 01:59:38 [INFO] acme: Deleting account for CENSORED_EMAIL
2019/01/14 01:59:38 [INFO] acme: Trying to resolve account by key
--- PASS: TestAccACMERegistration_basic (2.37s)
PASS
ok github.com/terraform-providers/terraform-provider-acme/acme 691.915s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment