From 1cf741a5f111ae1dbf481074aefcba02343eb7f6 Mon Sep 17 00:00:00 2001 From: Andrew Wilkins Date: Tue, 2 Mar 2021 16:23:04 +0800 Subject: [PATCH] systemtest: fix Elastic Agent enrollment (#4883) Fix enrollment due to https://github.com/elastic/beats/pull/24220 --- systemtest/containers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systemtest/containers.go b/systemtest/containers.go index 8a3f9b7035d..0c67a4ce8ca 100644 --- a/systemtest/containers.go +++ b/systemtest/containers.go @@ -363,8 +363,9 @@ func (c *ElasticAgentContainer) Start() error { // Update request from user-definable fields. if c.FleetEnrollmentToken != "" { c.request.Env["FLEET_ENROLL"] = "1" - c.request.Env["FLEET_ENROLL_INSECURE"] = "1" c.request.Env["FLEET_ENROLLMENT_TOKEN"] = c.FleetEnrollmentToken + c.request.Env["FLEET_INSECURE"] = "1" + c.request.Env["FLEET_URL"] = "http://kibana:5601" } c.request.ExposedPorts = c.ExposedPorts c.request.WaitingFor = c.WaitingFor