@@ -118,7 +118,7 @@ func (fts *FleetTestSuite) beforeScenario() {
118118 fts .StandAlone = false
119119 fts .ElasticAgentStopped = false
120120
121- fts .Version = common .AgentVersion
121+ fts .Version = common .BeatVersion
122122
123123 policy , err := fts .kibanaClient .GetDefaultPolicy (false )
124124 if err != nil {
@@ -183,8 +183,8 @@ func (fts *FleetTestSuite) theStandaloneAgentIsListedInFleetWithStatus(desiredSt
183183
184184 return theAgentIsListedInFleetWithStatus (desiredStatus , hostname )
185185 }
186- maxTimeout := time .Duration (common .TimeoutFactor ) * time .Minute * 2
187- exp := common .GetExponentialBackOff (maxTimeout )
186+ maxTimeout := time .Duration (utils .TimeoutFactor ) * time .Minute * 2
187+ exp := utils .GetExponentialBackOff (maxTimeout )
188188
189189 err := backoff .Retry (waitForAgents , exp )
190190 if err != nil {
@@ -218,7 +218,7 @@ func (fts *FleetTestSuite) anStaleAgentIsDeployedToFleetWithInstaller(image, ver
218218 case "stale" :
219219 version = common .AgentStaleVersion
220220 case "latest" :
221- version = common .AgentVersion
221+ version = common .BeatVersion
222222 default :
223223 version = common .AgentStaleVersion
224224 }
@@ -240,7 +240,7 @@ func (fts *FleetTestSuite) installCerts() error {
240240 log .WithFields (log.Fields {
241241 "installer" : agentInstaller ,
242242 "version" : fts .Version ,
243- "agentVersion" : common .AgentVersion ,
243+ "agentVersion" : common .BeatVersion ,
244244 "agentStaleVersion" : common .AgentStaleVersion ,
245245 }).Error ("No installer found" )
246246 return errors .New ("no installer found" )
@@ -249,7 +249,7 @@ func (fts *FleetTestSuite) installCerts() error {
249249 err := agentInstaller .InstallCertsFn ()
250250 if err != nil {
251251 log .WithFields (log.Fields {
252- "agentVersion" : common .AgentVersion ,
252+ "agentVersion" : common .BeatVersion ,
253253 "agentStaleVersion" : common .AgentStaleVersion ,
254254 "error" : err ,
255255 "installer" : agentInstaller ,
@@ -266,9 +266,9 @@ func (fts *FleetTestSuite) anAgentIsUpgraded(desiredVersion string) error {
266266 case "stale" :
267267 desiredVersion = common .AgentStaleVersion
268268 case "latest" :
269- desiredVersion = common .AgentVersion
269+ desiredVersion = common .BeatVersion
270270 default :
271- desiredVersion = common .AgentVersion
271+ desiredVersion = common .BeatVersion
272272 }
273273
274274 return fts .kibanaClient .UpgradeAgent (fts .Hostname , desiredVersion )
@@ -279,7 +279,7 @@ func (fts *FleetTestSuite) agentInVersion(version string) error {
279279 case "stale" :
280280 version = common .AgentStaleVersion
281281 case "latest" :
282- version = common .AgentVersion
282+ version = common .BeatVersion
283283 }
284284
285285 agentInVersionFn := func () error {
@@ -300,8 +300,8 @@ func (fts *FleetTestSuite) agentInVersion(version string) error {
300300 return nil
301301 }
302302
303- maxTimeout := time .Duration (common .TimeoutFactor ) * time .Minute * 2
304- exp := common .GetExponentialBackOff (maxTimeout )
303+ maxTimeout := time .Duration (utils .TimeoutFactor ) * time .Minute * 2
304+ exp := utils .GetExponentialBackOff (maxTimeout )
305305
306306 return backoff .Retry (agentInVersionFn , exp )
307307}
@@ -399,7 +399,7 @@ func (fts *FleetTestSuite) processStateChangedOnTheHost(process string, state st
399399 return err
400400 }
401401
402- utils .Sleep (time .Duration (common .TimeoutFactor ) * 10 * time .Second )
402+ utils .Sleep (time .Duration (utils .TimeoutFactor ) * 10 * time .Second )
403403
404404 err = installer .SystemctlRun (profile , agentInstaller .Image , serviceName , "start" )
405405 if err != nil {
@@ -441,7 +441,7 @@ func (fts *FleetTestSuite) processStateChangedOnTheHost(process string, state st
441441
442442 containerName := fts .getContainerName (agentInstaller , 1 )
443443
444- return CheckProcessState (fts .deployer , containerName , process , "stopped" , 1 , common .TimeoutFactor )
444+ return CheckProcessState (fts .deployer , containerName , process , "stopped" , 1 , utils .TimeoutFactor )
445445}
446446
447447func (fts * FleetTestSuite ) setup () error {
@@ -466,10 +466,10 @@ func theAgentIsListedInFleetWithStatus(desiredStatus string, hostname string) er
466466 if err != nil {
467467 return err
468468 }
469- maxTimeout := time .Duration (common .TimeoutFactor ) * time .Minute * 2
469+ maxTimeout := time .Duration (utils .TimeoutFactor ) * time .Minute * 2
470470 retryCount := 1
471471
472- exp := common .GetExponentialBackOff (maxTimeout )
472+ exp := utils .GetExponentialBackOff (maxTimeout )
473473
474474 agentOnlineFn := func () error {
475475 agentID , err := kibanaClient .GetAgentIDByHostname (hostname )
@@ -563,7 +563,7 @@ func (fts *FleetTestSuite) theHostIsRestarted() error {
563563 }).Error ("Could not stop the service" )
564564 }
565565
566- utils .Sleep (time .Duration (common .TimeoutFactor ) * 10 * time .Second )
566+ utils .Sleep (time .Duration (utils .TimeoutFactor ) * 10 * time .Second )
567567
568568 _ , err = shell .Execute (context .Background (), "." , "docker" , "start" , containerName )
569569 if err != nil {
@@ -586,10 +586,10 @@ func (fts *FleetTestSuite) systemPackageDashboardsAreListedInFleet() error {
586586 log .Trace ("Checking system Package dashboards in Fleet" )
587587
588588 dataStreamsCount := 0
589- maxTimeout := time .Duration (common .TimeoutFactor ) * time .Minute
589+ maxTimeout := time .Duration (utils .TimeoutFactor ) * time .Minute
590590 retryCount := 1
591591
592- exp := common .GetExponentialBackOff (maxTimeout )
592+ exp := utils .GetExponentialBackOff (maxTimeout )
593593
594594 countDataStreamsFn := func () error {
595595 dataStreams , err := fts .kibanaClient .GetDataStreams ()
@@ -730,10 +730,10 @@ func theIntegrationIsOperatedInThePolicy(client *kibana.Client, policy kibana.Po
730730func (fts * FleetTestSuite ) theHostNameIsNotShownInTheAdminViewInTheSecurityApp () error {
731731 log .Trace ("Checking if the hostname is not shown in the Administration view in the Security App" )
732732
733- maxTimeout := time .Duration (common .TimeoutFactor ) * time .Minute
733+ maxTimeout := time .Duration (utils .TimeoutFactor ) * time .Minute
734734 retryCount := 1
735735
736- exp := common .GetExponentialBackOff (maxTimeout )
736+ exp := utils .GetExponentialBackOff (maxTimeout )
737737
738738 agentListedInSecurityFn := func () error {
739739 host , err := fts .kibanaClient .IsAgentListedInSecurityApp (fts .Hostname )
@@ -770,10 +770,10 @@ func (fts *FleetTestSuite) theHostNameIsNotShownInTheAdminViewInTheSecurityApp()
770770func (fts * FleetTestSuite ) theHostNameIsShownInTheAdminViewInTheSecurityApp (status string ) error {
771771 log .Trace ("Checking if the hostname is shown in the Admin view in the Security App" )
772772
773- maxTimeout := time .Duration (common .TimeoutFactor ) * time .Minute
773+ maxTimeout := time .Duration (utils .TimeoutFactor ) * time .Minute
774774 retryCount := 1
775775
776- exp := common .GetExponentialBackOff (maxTimeout )
776+ exp := utils .GetExponentialBackOff (maxTimeout )
777777
778778 agentListedInSecurityFn := func () error {
779779 matches , err := fts .kibanaClient .IsAgentListedInSecurityAppWithStatus (fts .Hostname , status )
@@ -825,10 +825,10 @@ func (fts *FleetTestSuite) thePolicyResponseWillBeShownInTheSecurityApp() error
825825 return err
826826 }
827827
828- maxTimeout := time .Duration (common .TimeoutFactor ) * time .Minute
828+ maxTimeout := time .Duration (utils .TimeoutFactor ) * time .Minute
829829 retryCount := 1
830830
831- exp := common .GetExponentialBackOff (maxTimeout )
831+ exp := utils .GetExponentialBackOff (maxTimeout )
832832
833833 getEventsFn := func () error {
834834 listed , err := fts .kibanaClient .IsPolicyResponseListedInSecurityApp (agentID )
@@ -924,10 +924,10 @@ func (fts *FleetTestSuite) thePolicyWillReflectTheChangeInTheSecurityApp() error
924924 return err
925925 }
926926
927- maxTimeout := time .Duration (common .TimeoutFactor ) * time .Minute * 2
927+ maxTimeout := time .Duration (utils .TimeoutFactor ) * time .Minute * 2
928928 retryCount := 1
929929
930- exp := common .GetExponentialBackOff (maxTimeout )
930+ exp := utils .GetExponentialBackOff (maxTimeout )
931931
932932 getEventsFn := func () error {
933933 err := fts .kibanaClient .GetAgentEvents ("endpoint-security" , agentID , pkgPolicy .ID , fts .PolicyUpdatedAt )
0 commit comments