diff --git a/test/new-e2e/tests/otel/otel-agent/no_dd_exporter_test.go b/test/new-e2e/tests/otel/otel-agent/no_dd_exporter_test.go index 9e3b3b4b270cb..a13bae3da2bf1 100644 --- a/test/new-e2e/tests/otel/otel-agent/no_dd_exporter_test.go +++ b/test/new-e2e/tests/otel/otel-agent/no_dd_exporter_test.go @@ -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) } diff --git a/test/new-e2e/tests/otel/utils/config_utils.go b/test/new-e2e/tests/otel/utils/config_utils.go index c1178d5d7958d..069980415cf75 100644 --- a/test/new-e2e/tests/otel/utils/config_utils.go +++ b/test/new-e2e/tests/otel/utils/config_utils.go @@ -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", "e2e@test.com", "--send"}) + stdout, stderr, err = s.Env().KubernetesCluster.KubernetesClient.PodExec("datadog", agent.Name, "agent", []string{"agent", "flare", "--email", "e2e@test.com", "--send"}) require.NoError(s.T(), err, "Failed to execute flare") require.Empty(s.T(), stderr) require.NotNil(s.T(), stdout)