@@ -23,8 +23,8 @@ func TestUnmarshalLogsConfigV020(t *testing.T) {
23
23
}
24
24
require .NoError (t , cm .Unmarshal (& cfg ))
25
25
require .Len (t , cfg .Processors , 3 )
26
- // check the endpoint is prefixed w/ http
27
- require .Equal (t , "http ://127.0.0.1:4317" , * cfg .Processors [0 ].Batch .Exporter .OTLP .Endpoint )
26
+ // check the endpoint is prefixed w/ https
27
+ require .Equal (t , "https ://127.0.0.1:4317" , * cfg .Processors [0 ].Batch .Exporter .OTLP .Endpoint )
28
28
// check the endpoint is prefixed w/ http
29
29
require .Equal (t , "http://127.0.0.1:4317" , * cfg .Processors [2 ].Simple .Exporter .OTLP .Endpoint )
30
30
// ensure defaults set in the original config object are not lost
@@ -40,8 +40,8 @@ func TestUnmarshalTracesConfigV020(t *testing.T) {
40
40
}
41
41
require .NoError (t , cm .Unmarshal (& cfg ))
42
42
require .Len (t , cfg .Processors , 3 )
43
- // check the endpoint is prefixed w/ http
44
- require .Equal (t , "http ://127.0.0.1:4317" , * cfg .Processors [0 ].Batch .Exporter .OTLP .Endpoint )
43
+ // check the endpoint is prefixed w/ https
44
+ require .Equal (t , "https ://127.0.0.1:4317" , * cfg .Processors [0 ].Batch .Exporter .OTLP .Endpoint )
45
45
// check the endpoint is prefixed w/ http
46
46
require .Equal (t , "http://127.0.0.1:4317" , * cfg .Processors [2 ].Simple .Exporter .OTLP .Endpoint )
47
47
// ensure defaults set in the original config object are not lost
@@ -57,8 +57,8 @@ func TestUnmarshalMetricsConfigV020(t *testing.T) {
57
57
}
58
58
require .NoError (t , cm .Unmarshal (& cfg ))
59
59
require .Len (t , cfg .Readers , 2 )
60
- // check the endpoint is prefixed w/ http
61
- require .Equal (t , "http ://127.0.0.1:4317" , * cfg .Readers [0 ].Periodic .Exporter .OTLP .Endpoint )
60
+ // check the endpoint is prefixed w/ https
61
+ require .Equal (t , "https ://127.0.0.1:4317" , * cfg .Readers [0 ].Periodic .Exporter .OTLP .Endpoint )
62
62
require .ElementsMatch (t , []config.NameStringValuePair {{Name : "key1" , Value : ptr ("value1" )}, {Name : "key2" , Value : ptr ("value2" )}}, cfg .Readers [0 ].Periodic .Exporter .OTLP .Headers )
63
63
// ensure defaults set in the original config object are not lost
64
64
require .Equal (t , configtelemetry .LevelBasic , cfg .Level )
0 commit comments