Skip to content

Commit

Permalink
[chore][exporter/signalfx] Update test certs (open-telemetry#29109)
Browse files Browse the repository at this point in the history
**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
This re-enables the failing tests and updates the expired certificates.

New cert expiration dates:
```
$ openssl x509 -enddate -noout -in testdata/certs/cert.pem 
notAfter=Mar 13 22:55:27 3023 GMT
$ openssl x509 -enddate -noout -in testdata/certs/ca.pem 
notAfter=Mar 13 22:47:43 3023 GMT
```
**Link to tracking Issue:** <Issue number if applicable>
Fixes open-telemetry#29099 

**Testing:** <Describe what testing was performed and which tests were
added.>
Tests are now passing.

**Documentation:** <Describe the documentation added.>
  • Loading branch information
crobert-1 authored and RoryCrispin committed Nov 24, 2023
1 parent faa7b92 commit 4907b3b
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 64 deletions.
2 changes: 0 additions & 2 deletions exporter/signalfxexporter/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,6 @@ func TestTLSExporterInit(t *testing.T) {
}

func TestTLSIngestConnection(t *testing.T) {
t.Skip("Flaky test see https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/29099")
metricsPayload := pmetric.NewMetrics()
rm := metricsPayload.ResourceMetrics().AppendEmpty()
ilm := rm.ScopeMetrics().AppendEmpty()
Expand Down Expand Up @@ -1319,7 +1318,6 @@ func TestDefaultSystemCPUTimeExcludedAndTranslated(t *testing.T) {
}

func TestTLSAPIConnection(t *testing.T) {
t.Skip("Flaky test see https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/29099")
cfg := createDefaultConfig().(*Config)
converter, err := translation.NewMetricsConverter(
zap.NewNop(),
Expand Down
36 changes: 19 additions & 17 deletions exporter/signalfxexporter/testdata/certs/ca.pem
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDJTCCAg2gAwIBAgIUbxyAWK9Jd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C7imCQmLcpPr0XWjXMR7v0bmdzksxp79RQUx
Eq46J3UX/zc8c3r3etSara2RjUBfNW2jvUT4Ic6yeyYgYWAb/Mqr6kK1GIBT99Fk
trN2MRYD4hmvAfAqdCbpzWbKJnrHRh9d9B0UXA==
-----END CERTIFICATE-----
55 changes: 28 additions & 27 deletions exporter/signalfxexporter/testdata/certs/cert-key.pem
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA7Wnpb2OiVNo6MMsYiGj6rAoDJkVzfFrlXiPHuDdPx3cF4rfv
Gtw4YYyb0w4rC7figIbXtUJvWXaVT2ta8vGes35w8XGYctikp7bIkRr2F0nHO2Uo
M7nJgJSmcoGBQD3Dae+Psph6s2hzKQg7okQBzF9Vw/dSPWLDkJeNOKtIGkZ/eQeW
R7hZaX2LllYLcaS4G8TwTPHltkzSANJMZnLUMyQQfvIF52pTMCZXiHo5USHGKkLU
bdXwoJonC6c2bRKPcE0eal9iQDQiFZP2OrlRH1Dy4uepxQlKEq5k2LqJ0yheDEis
VJS0XT407tFJQ+ASRNIvSvJS/gsUumhkE97iXwIDAQABAoIBAET6TaFYYFSo5tlA
WMthPNt5OTsIWKpbumJkoOVL5Lj+Qs6BRE4Yh6UH9koWxrjr3zoac1etiq6CfpUJ
iu4k90gNR4FO0M0lVomH2LQYEkHn5KPEGy8UHpBmIAoKyGPCziDcQnLQTG4Nvc/B
HZpiiec4F7INDG7bYBiFf7lkQlmnbKJRwtOFxbFsbhOl8vk3CredIEioacr5sJZ3
3TOBb25SI1D9IqrOeP//vGgdj9g1aHmhutlte2L0wnRukRmKtG4xKHutVLsrIf7z
9lUAL0lj15aVmKw290IdcSweZVxqJDgI0c8lCj3JIwWt6wwC/ZfQZse4/KCiSJnY
2+DPJ8kCgYEA+jT+pijb9Of12iMdNrMGEyiutHTboLL1C+oNHWbYUhB5ZRZgq3PS
9M200TtjlnH9E938BRhhrGt2K8FeNcFi9I4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H5CyPjmvGgBhVHaVbGwhCcknbiJRWu
MKpdtp6AV7lvbQJ8YFuTN+2MUE+e/+VsycRgqvROVKaqKHwE/2tULeJ2iseqNc/c
Fh2i4XtDrA5V8gEhELOEleChIrApVuNXOZ2UlXrRAoGAWGcyg5IOWjELFw5+aLRR
/LBgbDZUQ05UmYrdAaeUO8xB2Mnm5j3uA08PAWoUag5TcMcrufkWk6ikjNphMSE9
6jp3xn7hzHczig0xbNs6y23i5IerTxxSUaKT3myoLjSQeiab1js/kOuXie4Ss/7Z
91aAg6wAgiyKq/2TwUlThHQ=
-----END PRIVATE KEY-----
36 changes: 18 additions & 18 deletions exporter/signalfxexporter/testdata/certs/cert.pem
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDTDCCAjSgAwIBAgIUEKnoi6rZUHazo6+3uJJPRDS6AOkwDQYJKoZIhvcNAQEL
BQAwIjEgMB4GA1UEChMXT3BlblRlbGVtZXRyeSBDb2xsZWN0b3IwHhcNMjIxMTEw
MDEwMTAwWhcNMjMxMTEwMDEwMTAwWjAiMSAwHgYDVQQKExdPcGVuVGVsZW1ldHJ5
IENvbGxlY3RvcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO1p6W9j
olTaOjDLGIho+qwKAyZFc3xa5V4jx7g3T8d3BeK37xrcOGGMm9MOKwu34oCG17VC
b1l2lU9rWvLxnrN+cPFxmHLYpKe2yJEa9hdJxztlKDO5yYCUpnKBgUA9w2nvj7KY
erNocykIO6JEAcxfVcP3Uj1iw5CXjTirSBpGf3kHlke4WWl9i5ZWC3GkuBvE8Ezx
5bZM0gDSTGZy1DMkEH7yBedqUzAmV4h6OVEhxipC1G3V8KCaJwunNm0Sj3BNHmpf
YkA0IhWT9jq5UR9Q8uLnqcUJShKuZNi6idMoXgxIrFSUtF0+NO7RSUPgEkTSL0ry
Uv4LFLpoZBPe4l8CAwEAAaN6MHgwDgYDVR0PAQH/BAQDAgWgMB0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