Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
songy23 committed Nov 5, 2024
1 parent ed91e85 commit a7ceae0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/new-e2e/tests/otel/otel-agent/no_dd_exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ func (s *noDDExporterTestSuite) TestOTelAgentInstalled() {
utils.TestOTelAgentInstalled(s)
}

func (s *noDDExporterTestSuite) TestFlare() {
utils.TestOTelFlare(s, noDDExporterProvidedConfig, noDDExporterFullConfig, sources)
func (s *noDDExporterTestSuite) TestOTelFlareExtensionResponse() {
utils.TestOTelFlareExtensionResponse(s, minimalProvidedConfig, minimalFullConfig, sources)
}
5 changes: 4 additions & 1 deletion test/new-e2e/tests/otel/utils/config_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ func TestOTelFlareExtensionResponse(s OTelTestSuite, providedCfg string, fullCfg
require.NoError(s.T(), err)
agent := getAgentPod(s)

stdout, stderr, err := s.Env().KubernetesCluster.KubernetesClient.PodExec("datadog", agent.Name, "otel-agent", []string{"curl", "localhost:13133"})
s.T().Log("curl health check endpoint ", stdout, stderr, err)

s.T().Log("Starting flare")
stdout, stderr, err := s.Env().KubernetesCluster.KubernetesClient.PodExec("datadog", agent.Name, "agent", []string{"agent", "flare", "--email", "[email protected]", "--send"})
stdout, stderr, err = s.Env().KubernetesCluster.KubernetesClient.PodExec("datadog", agent.Name, "agent", []string{"agent", "flare", "--email", "[email protected]", "--send"})
require.NoError(s.T(), err, "Failed to execute flare")
require.Empty(s.T(), stderr)
require.NotNil(s.T(), stdout)
Expand Down

0 comments on commit a7ceae0

Please sign in to comment.