@@ -419,43 +419,42 @@ func TestIssue10787(t *testing.T) {
419
419
resolver := NewResolver (t , "issue-10787-main.yaml" )
420
420
conf , err := resolver .Resolve (context .Background ())
421
421
require .NoError (t , err )
422
- assert .Equal (t , conf .ToStringMap (),
423
- map [string ]any {
424
- "exporters" : map [string ]any {
425
- "debug" : map [string ]any {
426
- "verbosity" : "detailed" ,
427
- },
428
- },
429
- "processors" : map [string ]any {
430
- "batch" : nil ,
422
+ assert .Equal (t , map [string ]any {
423
+ "exporters" : map [string ]any {
424
+ "debug" : map [string ]any {
425
+ "verbosity" : "detailed" ,
431
426
},
432
- "receivers" : map [string ]any {
433
- "otlp" : map [string ]any {
434
- "protocols" : map [string ]any {
435
- "grpc" : map [string ]any {
436
- "endpoint" : "0.0.0.0:4317" ,
437
- },
438
- "http" : map [string ]any {
439
- "endpoint" : "0.0.0.0:4318" ,
440
- },
427
+ },
428
+ "processors" : map [string ]any {
429
+ "batch" : nil ,
430
+ },
431
+ "receivers" : map [string ]any {
432
+ "otlp" : map [string ]any {
433
+ "protocols" : map [string ]any {
434
+ "grpc" : map [string ]any {
435
+ "endpoint" : "0.0.0.0:4317" ,
436
+ },
437
+ "http" : map [string ]any {
438
+ "endpoint" : "0.0.0.0:4318" ,
441
439
},
442
440
},
443
441
},
444
- "service" : map [ string ] any {
445
- "pipelines " : map [string ]any {
446
- "traces " : map [string ]any {
447
- "exporters " : [ ]any {"debug" },
448
- "processors " : []any {"batch " },
449
- "receivers " : []any {"otlp " },
450
- },
442
+ },
443
+ "service " : map [string ]any {
444
+ "pipelines " : map [string ]any {
445
+ "traces " : map [ string ]any {
446
+ "exporters " : []any {"debug " },
447
+ "processors " : []any {"batch " },
448
+ "receivers" : [] any { "otlp" },
451
449
},
452
- "telemetry" : map [ string ] any {
453
- "metrics " : map [string ]any {
454
- "level " : "detailed" ,
455
- } ,
450
+ },
451
+ "telemetry " : map [string ]any {
452
+ "metrics " : map [ string ] any {
453
+ "level" : "detailed" ,
456
454
},
457
455
},
458
456
},
457
+ }, conf .ToStringMap (),
459
458
)
460
459
}
461
460
@@ -582,9 +581,9 @@ func TestIndirectSliceEnvVar(t *testing.T) {
582
581
var collectorConf CollectorConf
583
582
err = conf .Unmarshal (& collectorConf )
584
583
require .NoError (t , err )
585
- assert .Equal (t , collectorConf .Exporters .OTLP .Endpoint , "localhost:4317" )
586
- assert .Equal (t , collectorConf . Service . Pipelines . Logs . Receivers , []string {"nop" , "otlp" })
587
- assert .Equal (t , collectorConf . Service . Pipelines . Logs . Exporters , []string {"otlp" , "nop" })
584
+ assert .Equal (t , "localhost:4317" , collectorConf .Exporters .OTLP .Endpoint )
585
+ assert .Equal (t , []string {"nop" , "otlp" }, collectorConf . Service . Pipelines . Logs . Receivers )
586
+ assert .Equal (t , []string {"otlp" , "nop" }, collectorConf . Service . Pipelines . Logs . Exporters )
588
587
}
589
588
590
589
func TestIssue10937_MapType (t * testing.T ) {
0 commit comments