Skip to content

Commit

Permalink
tune test
Browse files Browse the repository at this point in the history
Signed-off-by: ChrsMark <[email protected]>
  • Loading branch information
ChrsMark committed Jan 7, 2025
1 parent 86ecb23 commit 8df43e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions otelcol/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,10 @@ func newDefaultConfigProviderSettings(tb testing.TB, uris []string) ConfigProvid
return ConfigProviderSettings{
ResolverSettings: confmap.ResolverSettings{
URIs: uris,
ProviderModules: map[string]string{
"envprovider": "go.opentelemetry.io/collector/confmap/provider/envprovider v1.2.3",
"fileprovider": "go.opentelemetry.io/collector/confmap/provider/fileprovider v1.2.3",
},
ProviderFactories: []confmap.ProviderFactory{
fileProvider,
newEnvProvider(),
Expand Down
5 changes: 5 additions & 0 deletions otelcol/testdata/components-output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ extensions:
module: go.opentelemetry.io/collector/extension/extensiontest v1.2.3
stability:
extension: Stable
providers:
- name: file
module: go.opentelemetry.io/collector/confmap/provider/fileprovider v1.2.3
- name: env
module: go.opentelemetry.io/collector/confmap/provider/envprovider v1.2.3

0 comments on commit 8df43e7

Please sign in to comment.