Skip to content

Commit

Permalink
systemtest: fix Elastic Agent enrollment (elastic#4883)
Browse files Browse the repository at this point in the history
Fix enrollment due to elastic/beats#24220
  • Loading branch information
axw committed Mar 25, 2021
1 parent 09f8591 commit 1cf741a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion systemtest/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cf741a

Please sign in to comment.