Skip to content

Commit

Permalink
fix: use replace directive to apply component fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc committed Mar 29, 2024
1 parent 0a6761c commit 6cf0f65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ processors:
connectors:
- gomod: go.opentelemetry.io/collector/connector/forwardconnector v0.97.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.97.0

replaces:
- go.opentelemetry.io/collector/component => go.opentelemetry.io/collector/component v0.97.1-0.20240327230408-4b5d68ed282c
22 changes: 11 additions & 11 deletions testbed/smoke/smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,28 @@ func TestCollectorStarts(t *testing.T) {
require.NoError(t, err)

for _, c := range components.Receivers {
_, ok := testdataComponents.Receivers[c.Name.String()]
require.True(t, ok, "config-allcomponents.yaml is missing receiver "+c.Name.String())
_, ok := testdataComponents.Receivers[c.Name]
require.True(t, ok, "config-allcomponents.yaml is missing receiver "+c.Name)
}

for _, c := range components.Processors {
_, ok := testdataComponents.Processors[c.Name.String()]
require.True(t, ok, "config-allcomponents.yaml is missing processor "+c.Name.String())
_, ok := testdataComponents.Processors[c.Name]
require.True(t, ok, "config-allcomponents.yaml is missing processor "+c.Name)
}

for _, c := range components.Exporters {
_, ok := testdataComponents.Exporters[c.Name.String()]
require.True(t, ok, "config-allcomponents.yaml is missing exporter "+c.Name.String())
_, ok := testdataComponents.Exporters[c.Name]
require.True(t, ok, "config-allcomponents.yaml is missing exporter "+c.Name)
}

for _, c := range components.Connectors {
_, ok := testdataComponents.Connectors[c.Name.String()]
require.True(t, ok, "config-allcomponents.yaml is missing connector "+c.Name.String())
_, ok := testdataComponents.Connectors[c.Name]
require.True(t, ok, "config-allcomponents.yaml is missing connector "+c.Name)
}

for _, c := range components.Extensions {
_, ok := testdataComponents.Extensions[c.Name.String()]
require.True(t, ok, "config-allcomponents.yaml is missing extension "+c.Name.String())
_, ok := testdataComponents.Extensions[c.Name]
require.True(t, ok, "config-allcomponents.yaml is missing extension "+c.Name)
}
},
},
Expand Down Expand Up @@ -120,7 +120,7 @@ func TestCollectorIsBuiltFromManifest(t *testing.T) {
}

type componentMetadata struct {
Name component.Type
Name string
Stability map[string]string
}

Expand Down

0 comments on commit 6cf0f65

Please sign in to comment.