Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save caiofilipini/f0628fffd39abb631f2f374d62e4a057 to your computer and use it in GitHub Desktop.
Save caiofilipini/f0628fffd39abb631f2f374d62e4a057 to your computer and use it in GitHub Desktop.
Test failure on resource_digitalocean_certificate_test.go
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
TF_ACC=1 go test ./builtin/providers/digitalocean -v -run=TestAccDigitalOceanCertificate -timeout 120m
=== RUN TestAccDigitalOceanCertificate_Basic
--- FAIL: TestAccDigitalOceanCertificate_Basic (3.82s)
testing.go:280: Step 0 error: After applying this step, the plan was not empty:
DIFF:
DESTROY/CREATE: digitalocean_certificate.foobar
certificate_chain: "-----BEGIN CERTIFICATE-----\nMIIB1jCCAT+gAwIBAgIICeRedHSLULIwDQYJKoZIhvcNAQELBQAwEjEQMA4GA1UE\nChMHQWNtZSBHbzAeFw0xNzA1MjYxMzE4MjBaFw0xNzA1MjcxMzE4MjBaMBIxEDAO\nBgNVBAoTB0FjbWUgR28wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAK2tG8JK\nBaCJjZFZ52MAAKA8ozcWJkLT9YToa2jAxku48XYU/KD5+i2iexn65SVgJsZjcdID\nS+L34L0na1CjnDArg5HrpYYYBrVE81PDJwxkrca5zu3fSzrnJIwUsxIfeI5S5Aam\nen0MvZpAUw49OZsnluEbJsDI1Fc6mViBHRDxAgMBAAGjNTAzMA4GA1UdDwEB/wQE\nAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3\nDQEBCwUAA4GBAFit6FSLLFZSn7kiJ4gBxHyfFVsUnA9X50VnvzE9Bqf9me3wlRnF\no9uM4eik5tIjbEm/kY0FGLDYgpErgaMehlzpDjoCuz12TRJKHnOdt8hCmDiA6Y/Q\nxZvMKivzDbORLznEik+8onK+xywjhGN7i6WqLcODVp66OISknakg22vl\n-----END CERTIFICATE-----\n-----BE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AAGjNTAzMA4GA1UdDwEB/wQE\nAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3\nDQEBCwUAA4GBAFit6FSLLFZSn7kiJ4gBxHyfFVsUnA9X50VnvzE9Bqf9me3wlRnF\no9uM4eik5tIjbEm/kY0FGLDYgpErgaMehlzpDjoCuz12TRJKHnOdt8hCmDiA6Y/Q\nxZvMKivzDbORLznEik+8onK+xywjhGN7i6WqLcODVp66OISknakg22vl\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIB1jCCAT+gAwIBAgIIWinokAs29PYwDQYJKoZIhvcNAQELBQAwEjEQMA4GA1UE\nChMHQWNtZSBDbzAeFw0xNzA1MjYxMzE4MjBaFw0xNzA1MjcxMzE4MjBaMBIxEDAO\nBgNVBAoTB0FjbWUgQ28wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANNSELLp\nEusqXxYPAEs949LmYtIPNOubwMNcZZBihQy+QQ/xl85d2uwStISxQMKDD361cV5B\nSEMmPEtITE3TDpUisy8/dK9KN0gKcGh2hTzg1+BpuSDpjJDeAGaCHKc1LkRsql26\nFn8TDFmRX18dhnqAg3Jx53Bw/ytWU1UEuhl3AgMBAAGjNTAzMA4GA1UdDwEB/wQE\nAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3\nDQEBCwUAA4GBAEUSjDs1QBLQV4O8DqpzOJW4v6jE7o50rKSviaUHSnQgXcD9uKfh\ng8xqCDW3o9vzppYTnejTlPAukfOWUuOPxdirucIRXj5A+ZXouWRlpfQt5ufE983Z\n3hNfn7YNkcs0NaIY1PIY8/PO9NGZ+IMbHbrMsstyOTt59EHDRPVR8N3P\n-----END CERTIFICATE-----\n\n"
leaf_certificate: "-----BEGIN CERTIFICATE-----\nMIIB1jCCAT+gAwIBAgIIWinokAs29PYwDQYJKoZIhvcNAQELBQAwEjEQMA4GA1UE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MA0GCSqGSIb3\nDQEBCwUAA4GBAEUSjDs1QBLQV4O8DqpzOJW4v6jE7o50rKSviaUHSnQgXcD9uKfh\ng8xqCDW3o9vzppYTnejTlPAukfOWUuOPxdirucIRXj5A+ZXouWRlpfQt5ufE983Z\n3hNfn7YNkcs0NaIY1PIY8/PO9NGZ+IMbHbrMsstyOTt59EHDRPVR8N3P\n-----END CERTIFICATE-----\n\n"
name: "certificate-1517801663196050983" => "certificate-1517801663196050983"
not_after: "2017-05-27T13:18:20Z" => "" (forces new resource)
private_key: "-----BEGIN RSA PRIVATE KEY-----\nMIICWwIBAAKBgQDTUhCy6RLrKl8WDwBLPePS5mLSDzTrm8DDXGWQYoUMvkEP8ZfO\nXdrsErSEsUDCgw9+tXFeQUhDJjxLSExN0w6VIrMvP3SvSjdICnBodoU84Nfgabkg\n6YyQ3gBmghynNS5EbKpduhZ/EwxZkV9fHYZ6gINycedwcP8rVlNVBLoZdwIDAQAB\nAoGAXk4uU5l+LuKO4qo5KFrrVBAqo7HTnR26DbUrQh8lX0V8hZ/8bkUmUNocI2dz\nDhstDA/vEvAxTn4+xB30p3p787SZ86TQUTEQYTSEhriLPf06BjO0CSw3N4LdoZ9O\nEumqP8A5nH6iB8QQGFPBlJvSZtwvG8ClAmn0I9nHkGf56fkCQQDpyRWsUy6DXIVN\nKO/NbrB8L09sHrgQIZxYWdsW05A7T+WFKA05npOasZXChcY17yxbYUmBe0tPH6mg\noKhT7MeVAkEA52aDbV7hF4I9KQON8EJjP/T1h8bHn/xYb+7bn6qUQrFFfXi7erIS\nTDtSEEnaDMqVVA8I++ZWPvRd61d3YUKp2wJANk3OKfwcZsj78cNbiHV4qy/2G+A6\n0wxrm54rpO65pv1VDAwUnli2Yo1zgv693tNSk1tSzq/L+3IYXcZTs0LhzQJAOmy8\ntEmnZYshrBBUrxvj+Ur9D0oWLwPExIY3d4nXIzulAvgPxfvd+Ndlce1jm6UurOma\n6BcRIZYLfJc58hmlzwJAPJtL0UBVRQfqYQtWS1nW2H/dITOXX8A3INblUznfa3zf\neKiy4hZpnFg8dFKra94sfXGBLEIe+HdrRXCJh5OETQ==\n-----END RSA PRIVATE KEY-----\n\n" => "-----BEGIN RSA PRIVATE KEY-----\nMIICWwIBAAKBgQDTUhCy6RLrKl8WDwBLPePS5mLSDzTrm8DDXGWQYoUMvkEP8ZfO\nXdrsErSEsUDCgw9+tXFeQUhDJjxLSExN0w6VIrMvP3SvSjdICnBodoU84Nfgabkg\n6YyQ3gBmghynNS5EbKpduhZ/EwxZkV9fHYZ6gINycedwcP8rVlNVBLoZdwIDAQAB\nAoGAXk4uU5l+LuKO4qo5KFrrVBAqo7HTnR26DbUrQh8lX0V8hZ/8bkUmUNocI2dz\nDhstDA/vEvAxTn4+xB30p3p787SZ86TQUTEQYTSEhriLPf06BjO0CSw3N4LdoZ9O\nEumqP8A5nH6iB8QQGFPBlJvSZtwvG8ClAmn0I9nHkGf56fkCQQDpyRWsUy6DXIVN\nKO/NbrB8L09sHrgQIZxYWdsW05A7T+WFKA05npOasZXChcY17yxbYUmBe0tPH6mg\noKhT7MeVAkEA52aDbV7hF4I9KQON8EJjP/T1h8bHn/xYb+7bn6qUQrFFfXi7erIS\nTDtSEEnaDMqVVA8I++ZWPvRd61d3YUKp2wJANk3OKfwcZsj78cNbiHV4qy/2G+A6\n0wxrm54rpO65pv1VDAwUnli2Yo1zgv693tNSk1tSzq/L+3IYXcZTs0LhzQJAOmy8\ntEmnZYshrBBUrxvj+Ur9D0oWLwPExIY3d4nXIzulAvgPxfvd+Ndlce1jm6UurOma\n6BcRIZYLfJc58hmlzwJAPJtL0UBVRQfqYQtWS1nW2H/dITOXX8A3INblUznfa3zf\neKiy4hZpnFg8dFKra94sfXGBLEIe+HdrRXCJh5OETQ==\n-----END RSA PRIVATE KEY-----\n\n"
sha1_fingerprint: "0b3558c369256713e982b29fa424e97c136e50e9" => "" (forces new resource)
STATE:
digitalocean_certificate.foobar:
ID = 22558d2b-d6d3-44d4-aa1f-fdae60b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A4GA1UdDwEB/wQE
AwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3
DQEBCwUAA4GBAEUSjDs1QBLQV4O8DqpzOJW4v6jE7o50rKSviaUHSnQgXcD9uKfh
g8xqCDW3o9vzppYTnejTlPAukfOWUuOPxdirucIRXj5A+ZXouWRlpfQt5ufE983Z
3hNfn7YNkcs0NaIY1PIY8/PO9NGZ+IMbHbrMsstyOTt59EHDRPVR8N3P
-----END CERTIFICATE-----
leaf_certificate = -----BEGIN CERTIFICATE-----
MIIB1jCCAT+gAwIBAgIIWinokAs29PYwDQYJKoZIhvcNAQELBQAwEjEQMA4GA1UE
ChMHQWNtZSBDbzAeFw0xNzA1MjYxMzE4MjBaFw0xNzA1MjcxMzE4MjBaMBIxEDAO
BgNVBAoTB0FjbWUgQ28wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANNSELLp
EusqXxYPAEs949LmYtIPNOubwMNcZZBihQy+QQ/xl85d2uwStISxQMKDD361cV5B
SEMmPEtITE3TDpUisy8/dK9KN0gKcGh2hTzg1+BpuSDpjJDeAGaCHKc1LkRsql26
Fn8TDFmRX18dhnqAg3Jx53Bw/ytWU1UEuhl3AgMBAAGjNTAzMA4GA1UdDwEB/wQE
AwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3
DQEBCwUAA4GBAEUSjDs1QBLQV4O8DqpzOJW4v6jE7o50rKSviaUHSnQgXcD9uKfh
g8xqCDW3o9vzppYTnejTlPAukfOWUuOPxdirucIRXj5A+ZXouWRlpfQt5ufE983Z
3hNfn7YNkcs0NaIY1PIY8/PO9NGZ+IMbHbrMsstyOTt59EHDRPVR8N3P
-----END CERTIFICATE-----
name = certificate-1517801663196050983
not_after = 2017-05-27T13:18:20Z
private_key = -----BEGIN RSA PRIVATE KEY-----
MIICWwIBAAKBgQDTUhCy6RLrKl8WDwBLPePS5mLSDzTrm8DDXGWQYoUMvkEP8ZfO
XdrsErSEsUDCgw9+tXFeQUhDJjxLSExN0w6VIrMvP3SvSjdICnBodoU84Nfgabkg
6YyQ3gBmghynNS5EbKpduhZ/EwxZkV9fHYZ6gINycedwcP8rVlNVBLoZdwIDAQAB
AoGAXk4uU5l+LuKO4qo5KFrrVBAqo7HTnR26DbUrQh8lX0V8hZ/8bkUmUNocI2dz
DhstDA/vEvAxTn4+xB30p3p787SZ86TQUTEQYTSEhriLPf06BjO0CSw3N4LdoZ9O
EumqP8A5nH6iB8QQGFPBlJvSZtwvG8ClAmn0I9nHkGf56fkCQQDpyRWsUy6DXIVN
KO/NbrB8L09sHrgQIZxYWdsW05A7T+WFKA05npOasZXChcY17yxbYUmBe0tPH6mg
oKhT7MeVAkEA52aDbV7hF4I9KQON8EJjP/T1h8bHn/xYb+7bn6qUQrFFfXi7erIS
TDtSEEnaDMqVVA8I++ZWPvRd61d3YUKp2wJANk3OKfwcZsj78cNbiHV4qy/2G+A6
0wxrm54rpO65pv1VDAwUnli2Yo1zgv693tNSk1tSzq/L+3IYXcZTs0LhzQJAOmy8
tEmnZYshrBBUrxvj+Ur9D0oWLwPExIY3d4nXIzulAvgPxfvd+Ndlce1jm6UurOma
6BcRIZYLfJc58hmlzwJAPJtL0UBVRQfqYQtWS1nW2H/dITOXX8A3INblUznfa3zf
eKiy4hZpnFg8dFKra94sfXGBLEIe+HdrRXCJh5OETQ==
-----END RSA PRIVATE KEY-----
sha1_fingerprint = 0b3558c369256713e982b29fa424e97c136e50e9
FAIL
exit status 1
FAIL github.com/hashicorp/terraform/builtin/providers/digitalocean 3.862s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment