Skip to content

Commit

Permalink
Split ECS Fargate Test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-taf committed Dec 10, 2024
1 parent 8a450cc commit 1c3f6e2
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions test/new-e2e/tests/process/fargate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,27 @@ func (s *ECSFargateSuite) TestProcessCheck() {
assertContainersCollected(t, payloads, []string{"stress-ng"})
}

func (s *ECSFargateSuite) TestProcessCheckInCoreAgent() {
t := s.T()
type ECSFargateCoreAgentSuite struct {
e2e.BaseSuite[environments.ECS]
}

func TestECSFargateCoreAgentTestSuite(t *testing.T) {
t.Parallel()
s := ECSFargateSuite{}

extraConfig := runner.ConfigMap{
"ddagent:extraEnvVars": auto.ConfigValue{Value: "DD_PROCESS_CONFIG_RUN_IN_CORE_AGENT_ENABLED=true"},
}
e2eParams := []e2e.SuiteOption{e2e.WithProvisioner(
getFargateProvisioner(extraConfig),
),
}

e2e.Run(t, &s, e2eParams...)
}

s.UpdateEnv(getFargateProvisioner(extraConfig))
func (s *ECSFargateCoreAgentSuite) TestProcessCheckInCoreAgent() {
t := s.T()

// Flush fake intake to remove any payloads which may have
s.Env().FakeIntake.Client().FlushServerAndResetAggregators()
Expand Down

0 comments on commit 1c3f6e2

Please sign in to comment.