Skip to content

Commit

Permalink
Updates current tests with fakeintake loadbalancer's new default state (
Browse files Browse the repository at this point in the history
#21535)

Updates current tests with fakeintake loadbalancer's new default state
  • Loading branch information
Pythyu authored Dec 18, 2023
1 parent bff8530 commit a87ec42
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ variables:
# To use images from test-infra-definitions dev branches, set the SUFFIX variable to -dev
# and check the job creating the image to make sure you have the right SHA prefix
TEST_INFRA_DEFINITIONS_BUILDIMAGES_SUFFIX: ""
TEST_INFRA_DEFINITIONS_BUILDIMAGES: 281b2a324002
TEST_INFRA_DEFINITIONS_BUILDIMAGES: 67d2009bcd81
DATADOG_AGENT_BUILDERS: v22276738-b36b132

DATADOG_AGENT_EMBEDDED_PATH: /opt/datadog-agent/embedded
Expand Down
2 changes: 0 additions & 2 deletions test/new-e2e/examples/agentenv_metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

"github.com/DataDog/datadog-agent/test/fakeintake/client"
"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e"
"github.com/DataDog/test-infra-definitions/scenarios/aws/fakeintake/fakeintakeparams"
"github.com/DataDog/test-infra-definitions/scenarios/aws/vm/ec2os"
"github.com/DataDog/test-infra-definitions/scenarios/aws/vm/ec2params"
"github.com/stretchr/testify/assert"
Expand All @@ -24,7 +23,6 @@ type fakeintakeSuiteMetrics struct {

func TestVMSuiteEx5(t *testing.T) {
e2e.Run(t, &fakeintakeSuiteMetrics{}, e2e.FakeIntakeStackDef(
e2e.WithFakeIntakeParams(fakeintakeparams.WithoutLoadBalancer()),
e2e.WithVMParams(ec2params.WithOS(ec2os.CentOS)),
))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ func multiFakeintakeStackDef(agentOptions ...agentparams.Option) *e2e.StackDefin
return nil, err
}

fiExporter1, err := aws.NewEcsFakeintake(awsEnv, fakeintakeparams.WithName(fakeintake1Name), fakeintakeparams.WithoutLoadBalancer())
fiExporter1, err := aws.NewEcsFakeintake(awsEnv, fakeintakeparams.WithName(fakeintake1Name))
if err != nil {
return nil, err
}

fiExporter2, err := aws.NewEcsFakeintake(awsEnv, fakeintakeparams.WithName(fakeintake2Name), fakeintakeparams.WithoutLoadBalancer())
fiExporter2, err := aws.NewEcsFakeintake(awsEnv, fakeintakeparams.WithName(fakeintake2Name))
if err != nil {
return nil, err
}
Expand Down
3 changes: 1 addition & 2 deletions test/new-e2e/tests/agent-subcommands/diagnose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e/client"
svcmanager "github.com/DataDog/datadog-agent/test/new-e2e/tests/agent-platform/common/svc-manager"
"github.com/DataDog/test-infra-definitions/components/datadog/agentparams"
"github.com/DataDog/test-infra-definitions/scenarios/aws/fakeintake/fakeintakeparams"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand All @@ -34,7 +33,7 @@ var allSuites = []string{
}

func TestAgentDiagnoseEC2Suite(t *testing.T) {
e2e.Run(t, &agentDiagnoseSuite{}, e2e.FakeIntakeStackDef(e2e.WithFakeIntakeParams(fakeintakeparams.WithoutLoadBalancer())))
e2e.Run(t, &agentDiagnoseSuite{}, e2e.FakeIntakeStackDef())
}

// type summary represents the number of success, fail, warnings and errors of a diagnose command
Expand Down
3 changes: 1 addition & 2 deletions test/new-e2e/tests/agent-subcommands/flare/flare_nix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e"
"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e/client"
"github.com/DataDog/test-infra-definitions/components/datadog/agentparams"
"github.com/DataDog/test-infra-definitions/scenarios/aws/fakeintake/fakeintakeparams"
"github.com/DataDog/test-infra-definitions/scenarios/aws/vm/ec2os"
"github.com/DataDog/test-infra-definitions/scenarios/aws/vm/ec2params"
)
Expand All @@ -34,7 +33,7 @@ type linuxFlareSuite struct {

func TestLinuxFlareSuite(t *testing.T) {
t.Parallel()
e2e.Run(t, &linuxFlareSuite{}, e2e.FakeIntakeStackDef(e2e.WithVMParams(ec2params.WithOS(ec2os.UbuntuOS)), e2e.WithFakeIntakeParams(fakeintakeparams.WithoutLoadBalancer())))
e2e.Run(t, &linuxFlareSuite{}, e2e.FakeIntakeStackDef(e2e.WithVMParams(ec2params.WithOS(ec2os.UbuntuOS))))
}

func (v *linuxFlareSuite) TestFlareWithAllConfiguration() {
Expand Down
3 changes: 1 addition & 2 deletions test/new-e2e/tests/agent-subcommands/flare/flare_win_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e"
"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e/client"
"github.com/DataDog/test-infra-definitions/scenarios/aws/fakeintake/fakeintakeparams"
"github.com/DataDog/test-infra-definitions/scenarios/aws/vm/ec2os"
"github.com/DataDog/test-infra-definitions/scenarios/aws/vm/ec2params"
"github.com/stretchr/testify/assert"
Expand All @@ -23,7 +22,7 @@ type windowsFlareSuite struct {

func TestWindowsFlareSuite(t *testing.T) {
t.Parallel()
e2e.Run(t, &windowsFlareSuite{}, e2e.FakeIntakeStackDef(e2e.WithVMParams(ec2params.WithOS(ec2os.WindowsOS)), e2e.WithFakeIntakeParams(fakeintakeparams.WithoutLoadBalancer())))
e2e.Run(t, &windowsFlareSuite{}, e2e.FakeIntakeStackDef(e2e.WithVMParams(ec2params.WithOS(ec2os.WindowsOS))))
}

func (v *windowsFlareSuite) TestFlareWindows() {
Expand Down
4 changes: 1 addition & 3 deletions test/new-e2e/tests/agent-subcommands/subcommands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import (
"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e"
"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e/client"
"github.com/DataDog/test-infra-definitions/components/datadog/agentparams"
"github.com/DataDog/test-infra-definitions/scenarios/aws/fakeintake/fakeintakeparams"

"github.com/cenkalti/backoff"
"github.com/stretchr/testify/assert"
)
Expand All @@ -30,7 +28,7 @@ type subcommandWithFakeIntakeSuite struct {

func TestSubcommandSuite(t *testing.T) {
e2e.Run(t, &subcommandSuite{}, e2e.AgentStackDef())
e2e.Run(t, &subcommandWithFakeIntakeSuite{}, e2e.FakeIntakeStackDef(e2e.WithFakeIntakeParams(fakeintakeparams.WithoutLoadBalancer())))
e2e.Run(t, &subcommandWithFakeIntakeSuite{}, e2e.FakeIntakeStackDef())
}

// section contains the content status of a specific section (e.g. Forwarder)
Expand Down
3 changes: 1 addition & 2 deletions test/new-e2e/tests/ndm/snmp/snmpTestEnv.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/DataDog/test-infra-definitions/components/datadog/agent"
"github.com/DataDog/test-infra-definitions/components/datadog/dockeragentparams"
"github.com/DataDog/test-infra-definitions/scenarios/aws"
"github.com/DataDog/test-infra-definitions/scenarios/aws/fakeintake/fakeintakeparams"
"github.com/DataDog/test-infra-definitions/scenarios/aws/vm/ec2vm"

"github.com/pulumi/pulumi/sdk/v3/go/auto"
Expand Down Expand Up @@ -58,7 +57,7 @@ func NewTestEnv() (*TestEnv, error) {
return err
}

fakeintakeExporter, err := aws.NewEcsFakeintake(vm.GetAwsEnvironment(), fakeintakeparams.WithoutLoadBalancer())
fakeintakeExporter, err := aws.NewEcsFakeintake(vm.GetAwsEnvironment())
if err != nil {
return err
}
Expand Down
2 changes: 0 additions & 2 deletions test/new-e2e/tests/process/linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"time"

"github.com/DataDog/test-infra-definitions/components/datadog/agentparams"
"github.com/DataDog/test-infra-definitions/scenarios/aws/fakeintake/fakeintakeparams"
"github.com/stretchr/testify/assert"

"github.com/DataDog/datadog-agent/test/fakeintake/aggregator"
Expand All @@ -24,7 +23,6 @@ type linuxTestSuite struct {
func TestLinuxTestSuite(t *testing.T) {
e2e.Run(t, &linuxTestSuite{},
e2e.FakeIntakeStackDef(
e2e.WithFakeIntakeParams(fakeintakeparams.WithoutLoadBalancer()),
e2e.WithAgentParams(agentparams.WithAgentConfig(processCheckConfigStr)),
))
}
Expand Down

0 comments on commit a87ec42

Please sign in to comment.