Skip to content

Commit

Permalink
[OTEL-2063] Extent OTel Agent flare validation in E2E tests (#30362)
Browse files Browse the repository at this point in the history
  • Loading branch information
songy23 authored Oct 23, 2024
1 parent c32be6a commit 0b8caf8
Show file tree
Hide file tree
Showing 7 changed files with 612 additions and 6 deletions.
17 changes: 17 additions & 0 deletions test/new-e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ replace (
github.com/DataDog/datadog-agent/comp/core/telemetry => ../../comp/core/telemetry
github.com/DataDog/datadog-agent/comp/def => ../../comp/def
github.com/DataDog/datadog-agent/comp/netflow/payload => ../../comp/netflow/payload
github.com/DataDog/datadog-agent/comp/otelcol/ddflareextension/def => ../../comp/otelcol/ddflareextension/def
github.com/DataDog/datadog-agent/pkg/collector/check/defaults => ../../pkg/collector/check/defaults
github.com/DataDog/datadog-agent/pkg/config/env => ../../pkg/config/env
github.com/DataDog/datadog-agent/pkg/config/model => ../../pkg/config/model
Expand All @@ -45,6 +46,7 @@ replace (

require (
github.com/DataDog/agent-payload/v5 v5.0.122
github.com/DataDog/datadog-agent/comp/otelcol/ddflareextension/def v0.56.2
github.com/DataDog/datadog-agent/pkg/util/optional v0.56.2
github.com/DataDog/datadog-agent/pkg/util/pointer v0.56.2
github.com/DataDog/datadog-agent/pkg/util/scrubber v0.56.2
Expand Down Expand Up @@ -297,11 +299,26 @@ require (

require (
github.com/DataDog/datadog-agent/comp/core/tagger/utils v0.56.2 // indirect
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/knadh/koanf/maps v0.1.1 // indirect
github.com/knadh/koanf/providers/confmap v0.1.0 // indirect
github.com/knadh/koanf/v2 v2.1.1 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/pulumi/pulumi-azure-native-sdk/authorization/v2 v2.67.0 // indirect
github.com/pulumi/pulumi-azure-native-sdk/compute/v2 v2.56.0 // indirect
github.com/pulumi/pulumi-azure-native-sdk/containerservice/v2 v2.67.0 // indirect
github.com/pulumi/pulumi-azure-native-sdk/network/v2 v2.67.0 // indirect
github.com/pulumi/pulumi-azure-native-sdk/v2 v2.67.0 // indirect
github.com/pulumi/pulumi-gcp/sdk/v6 v6.67.1 // indirect
github.com/pulumi/pulumi-gcp/sdk/v7 v7.38.0 // indirect
go.opentelemetry.io/collector/component v0.104.0 // indirect
go.opentelemetry.io/collector/config/configtelemetry v0.104.0 // indirect
go.opentelemetry.io/collector/confmap v0.104.0 // indirect
go.opentelemetry.io/collector/extension v0.104.0 // indirect
go.opentelemetry.io/collector/featuregate v1.11.0 // indirect
go.opentelemetry.io/collector/pdata v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
)
36 changes: 36 additions & 0 deletions test/new-e2e/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion test/new-e2e/tests/otel/otel-agent/minimal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ type minimalTestSuite struct {
//go:embed config/minimal.yml
var minimalConfig string

//go:embed testdata/minimal-provided-config.yml
var minimalProvidedConfig string

//go:embed testdata/minimal-full-config.yml
var minimalFullConfig string

//go:embed testdata/minimal-sources.json
var minimalSources string

func TestOTelAgentMinimal(t *testing.T) {
values := `
datadog:
Expand Down Expand Up @@ -73,5 +82,5 @@ func (s *minimalTestSuite) TestOTelAgentInstalled() {
}

func (s *minimalTestSuite) TestOTelFlare() {
utils.TestOTelFlare(s)
utils.TestOTelFlare(s, minimalProvidedConfig, minimalFullConfig, minimalSources)
}
Loading

0 comments on commit 0b8caf8

Please sign in to comment.