Skip to content

Commit

Permalink
Update otelcoltest to validate num connectors (open-telemetry#7014)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaglowski authored Jan 24, 2023
1 parent fec9cd3 commit 228eb0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions otelcol/otelcoltest/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func TestLoadConfig(t *testing.T) {
assert.Contains(t, cfg.Processors, component.NewID("nop"))
assert.Contains(t, cfg.Processors, component.NewIDWithName("nop", "myprocessor"))

// Verify connectors
assert.Len(t, cfg.Connectors, 1)
assert.Contains(t, cfg.Connectors, component.NewIDWithName("nop", "myconnector"))

// Verify service.
require.Len(t, cfg.Service.Extensions, 1)
assert.Contains(t, cfg.Service.Extensions, component.NewID("nop"))
Expand Down

0 comments on commit 228eb0b

Please sign in to comment.