Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] make update-otel #24633

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
jpkrohling committed Jul 27, 2023
commit d24fc4adf57bb062a8ef56251cd525076541c509
7 changes: 7 additions & 0 deletions receiver/mongodbreceiver/config_test.go
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ import (
"go.opentelemetry.io/collector/config/configopaque"
"go.opentelemetry.io/collector/config/configtls"
"go.opentelemetry.io/collector/confmap/confmaptest"
"go.opentelemetry.io/collector/receiver/scraperhelper"

"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbreceiver/internal/metadata"
)
@@ -87,6 +88,9 @@ func TestValidate(t *testing.T) {
Username: tc.username,
Password: configopaque.String(tc.password),
Hosts: hosts,
ScraperControllerSettings: scraperhelper.ScraperControllerSettings{
CollectionInterval: 1,
},
}
err := component.ValidateConfig(cfg)
if tc.expected == nil {
@@ -138,6 +142,9 @@ func TestBadTLSConfigs(t *testing.T) {
},
},
TLSClientSetting: tc.tlsConfig,
ScraperControllerSettings: scraperhelper.ScraperControllerSettings{
CollectionInterval: 1,
},
}
err := component.ValidateConfig(cfg)
if tc.expectError {