Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 9f708be

Browse files
committed
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>
1 parent 952639d commit 9f708be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/_suites/fleet/features/stand_alone_agent.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Examples: Ubi8
5454
@run_fleet_server
5555
Scenario Outline: Deploying a <image> stand-alone agent with fleet server mode
5656
When a "<image>" stand-alone agent is deployed with fleet server mode
57-
Then the agent is listed in Fleet as "online"
57+
Then the stand-alone agent is listed in Fleet as "online"
5858

5959
@default
6060
Examples: default

e2e/_suites/fleet/stand-alone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (sats *StandAloneTestSuite) contributeSteps(s *godog.ScenarioContext) {
6868
s.Step(`^there is new data in the index from agent$`, sats.thereIsNewDataInTheIndexFromAgent)
6969
s.Step(`^the "([^"]*)" docker container is stopped$`, sats.theDockerContainerIsStopped)
7070
s.Step(`^there is no new data in the index after agent shuts down$`, sats.thereIsNoNewDataInTheIndexAfterAgentShutsDown)
71-
s.Step(`^the agent is listed in Fleet as "([^"]*)"$`, sats.theAgentIsListedInFleetWithStatus)
71+
s.Step(`^the stand-alone agent is listed in Fleet as "([^"]*)"$`, sats.theAgentIsListedInFleetWithStatus)
7272
}
7373

7474
func (sats *StandAloneTestSuite) theAgentIsListedInFleetWithStatus(desiredStatus string) error {

0 commit comments

Comments
 (0)