@@ -67,7 +67,7 @@ func (suite *AgentInstallSuite) SetupSuite() {
67
67
return
68
68
}
69
69
// check if agent is installed
70
- if _ , err := exec .LookPath (agentName ); err == nil {
70
+ if _ , err := exec .LookPath (agentDevName ); err == nil {
71
71
suite .installDetected = true
72
72
return // don't bother with setup, skip all tests
73
73
}
@@ -277,15 +277,16 @@ func (suite *AgentInstallSuite) TearDownTest() {
277
277
return
278
278
}
279
279
280
- out , err := exec .Command ("sudo" , "elastic-agent" , "uninstall" , "--force" ).CombinedOutput ()
281
- suite .Assert ().NoErrorf (err , "elastic-agent uninstall failed. Output: %s" , out )
280
+ out , err := exec .Command ("sudo" , "elastic-development- agent" , "uninstall" , "--force" ).CombinedOutput ()
281
+ suite .Assert ().NoErrorf (err , "elastic-development- agent uninstall failed. Output: %s" , out )
282
282
}
283
283
284
284
func (suite * AgentInstallSuite ) TestHTTP () {
285
285
ctx , cancel := context .WithTimeout (context .Background (), time .Minute * 3 )
286
286
defer cancel ()
287
287
288
288
cmd := exec .CommandContext (ctx , "sudo" , suite .agentPath , "install" ,
289
+ "--develop" , "--install-servers" ,
289
290
"--fleet-server-es=http://" + suite .ESHosts ,
290
291
"--fleet-server-service-token=" + suite .ServiceToken ,
291
292
"--fleet-server-insecure-http=true" ,
@@ -310,6 +311,7 @@ func (suite *AgentInstallSuite) TestWithSecretFiles() {
310
311
defer cancel ()
311
312
312
313
cmd := exec .CommandContext (ctx , "sudo" , suite .agentPath , "install" ,
314
+ "--develop" , "--install-servers" ,
313
315
"--url=https://localhost:8220" ,
314
316
"--certificate-authorities=" + filepath .Join (suite .CertPath , "e2e-test-ca.crt" ),
315
317
"--fleet-server-es=http://" + suite .ESHosts ,
@@ -365,6 +367,7 @@ func (suite *AgentInstallSuite) TestAPMInstrumentationFile() {
365
367
defer cancel ()
366
368
367
369
cmd := exec .CommandContext (ctx , "sudo" , suite .agentPath , "install" ,
370
+ "--develop" , "--install-servers" ,
368
371
"--fleet-server-es=http://" + suite .ESHosts ,
369
372
"--fleet-server-service-token=" + suite .ServiceToken ,
370
373
"--fleet-server-insecure-http=true" ,
@@ -403,6 +406,7 @@ func (suite *AgentInstallSuite) TestAPMInstrumentationPolicy() {
403
406
})
404
407
405
408
cmd := exec .CommandContext (ctx , "sudo" , suite .agentPath , "install" ,
409
+ "--develop" , "--install-servers" ,
406
410
"--fleet-server-es=http://" + suite .ESHosts ,
407
411
"--fleet-server-service-token=" + suite .ServiceToken ,
408
412
"--fleet-server-insecure-http=true" ,
0 commit comments