Skip to content

Commit ed2db96

Browse files
committed
Fix
Signed-off-by: Pavol Loffay <[email protected]>
1 parent 4e8d00b commit ed2db96

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/instrumentation/exporter_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestExporter(t *testing.T) {
3232
{
3333
name: "ca, crt and key from secret",
3434
exporter: v1alpha1.Exporter{
35-
Endpoint: "http://collector:4318",
35+
Endpoint: "https://collector:4318",
3636
TLS: &v1alpha1.TLS{
3737
SecretName: "my-certs",
3838
CA: "ca.crt",
@@ -64,7 +64,7 @@ func TestExporter(t *testing.T) {
6464
Env: []corev1.EnvVar{
6565
{
6666
Name: "OTEL_EXPORTER_OTLP_ENDPOINT",
67-
Value: "http://collector:4318",
67+
Value: "https://collector:4318",
6868
},
6969
{
7070
Name: "OTEL_EXPORTER_OTLP_CERTIFICATE",
@@ -87,7 +87,7 @@ func TestExporter(t *testing.T) {
8787
{
8888
name: "crt and key from secret and ca from configmap",
8989
exporter: v1alpha1.Exporter{
90-
Endpoint: "http://collector:4318",
90+
Endpoint: "https://collector:4318",
9191
TLS: &v1alpha1.TLS{
9292
SecretName: "my-certs",
9393
ConfigMapName: "ca-bundle",
@@ -135,7 +135,7 @@ func TestExporter(t *testing.T) {
135135
Env: []corev1.EnvVar{
136136
{
137137
Name: "OTEL_EXPORTER_OTLP_ENDPOINT",
138-
Value: "http://collector:4318",
138+
Value: "https://collector:4318",
139139
},
140140
{
141141
Name: "OTEL_EXPORTER_OTLP_CERTIFICATE",
@@ -158,7 +158,7 @@ func TestExporter(t *testing.T) {
158158
{
159159
name: "ca, crt key absolute paths",
160160
exporter: v1alpha1.Exporter{
161-
Endpoint: "http://collector:4318",
161+
Endpoint: "https://collector:4318",
162162
TLS: &v1alpha1.TLS{
163163
CA: "/ca.crt",
164164
Cert: "/cert.crt",
@@ -172,7 +172,7 @@ func TestExporter(t *testing.T) {
172172
Env: []corev1.EnvVar{
173173
{
174174
Name: "OTEL_EXPORTER_OTLP_ENDPOINT",
175-
Value: "http://collector:4318",
175+
Value: "https://collector:4318",
176176
},
177177
{
178178
Name: "OTEL_EXPORTER_OTLP_CERTIFICATE",

0 commit comments

Comments
 (0)