diff --git a/e2e/_suites/fleet/installers.go b/e2e/_suites/fleet/installers.go index d6c05ba372..65954fe951 100644 --- a/e2e/_suites/fleet/installers.go +++ b/e2e/_suites/fleet/installers.go @@ -333,7 +333,7 @@ func NewTARPackage(binaryName string, profile string, image string, service stri func (i *TARPackage) Install(containerName string, token string) error { // install the elastic-agent to /usr/bin/elastic-agent using command binary := fmt.Sprintf("/elastic-agent/%s", i.artifact) - args := []string{"--force", "--insecure", "--enrollment-token", token, "--kibana-url", "http://kibana:5601"} + args := []string{"--force", "--insecure", "--enrollment-token=" + token, "--kibana-url", "http://kibana:5601"} err := runElasticAgentCommand(i.profile, i.image, i.service, binary, "install", args) if err != nil { diff --git a/e2e/_suites/fleet/services.go b/e2e/_suites/fleet/services.go index 9f555f802a..8f28dac492 100644 --- a/e2e/_suites/fleet/services.go +++ b/e2e/_suites/fleet/services.go @@ -60,7 +60,7 @@ func (i *ElasticAgentInstaller) listElasticAgentWorkingDirContent(containerName } func buildEnrollmentFlags(token string) []string { - return []string{"--url=http://kibana:5601", "--enrollment-token=" + token, "-f", "--insecure"} + return []string{"--kibana-url=http://kibana:5601", "--enrollment-token=" + token, "-f", "--insecure"} } // runElasticAgentCommand runs a command for the elastic-agent