From 9f708be73314ab951545a526bf4c9f5d12831d25 Mon Sep 17 00:00:00 2001 From: Adam Stokes <51892+adam-stokes@users.noreply.github.com> Date: Tue, 6 Apr 2021 11:12:26 -0400 Subject: [PATCH] Uniquify the stand-alone step for checking agent status There were 2 steps identical in both the stand-alone and fleet test suites. Running the stand-alone test suite was picking up the step from the fleet test suite and trying to reference the FleetTestSuite structure which did not hold any of the agent information (like the hostname) for the stand alone tests. This fixes it so that the standalone test step is being referenced in the correct test suite. Signed-off-by: Adam Stokes <51892+adam-stokes@users.noreply.github.com> --- e2e/_suites/fleet/features/stand_alone_agent.feature | 2 +- e2e/_suites/fleet/stand-alone.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/_suites/fleet/features/stand_alone_agent.feature b/e2e/_suites/fleet/features/stand_alone_agent.feature index af05676a92..78af314844 100644 --- a/e2e/_suites/fleet/features/stand_alone_agent.feature +++ b/e2e/_suites/fleet/features/stand_alone_agent.feature @@ -54,7 +54,7 @@ Examples: Ubi8 @run_fleet_server Scenario Outline: Deploying a stand-alone agent with fleet server mode When a "" stand-alone agent is deployed with fleet server mode - Then the agent is listed in Fleet as "online" + Then the stand-alone agent is listed in Fleet as "online" @default Examples: default diff --git a/e2e/_suites/fleet/stand-alone.go b/e2e/_suites/fleet/stand-alone.go index 9f219ee323..4f6ea68f89 100644 --- a/e2e/_suites/fleet/stand-alone.go +++ b/e2e/_suites/fleet/stand-alone.go @@ -68,7 +68,7 @@ func (sats *StandAloneTestSuite) contributeSteps(s *godog.ScenarioContext) { s.Step(`^there is new data in the index from agent$`, sats.thereIsNewDataInTheIndexFromAgent) s.Step(`^the "([^"]*)" docker container is stopped$`, sats.theDockerContainerIsStopped) s.Step(`^there is no new data in the index after agent shuts down$`, sats.thereIsNoNewDataInTheIndexAfterAgentShutsDown) - s.Step(`^the agent is listed in Fleet as "([^"]*)"$`, sats.theAgentIsListedInFleetWithStatus) + s.Step(`^the stand-alone agent is listed in Fleet as "([^"]*)"$`, sats.theAgentIsListedInFleetWithStatus) } func (sats *StandAloneTestSuite) theAgentIsListedInFleetWithStatus(desiredStatus string) error {