Skip to content

Commit

Permalink
systemtest: fix Elastic Agent enrollment (#4883) (#4997)
Browse files Browse the repository at this point in the history
Fix enrollment due to elastic/beats#24220

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
axw and mergify[bot] authored Apr 1, 2021
1 parent 19d467c commit d8dbfdf
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 d8dbfdf

Please sign in to comment.