diff --git a/testing/environments/snapshot-oss.yml b/testing/environments/snapshot-oss.yml index 078b8f8adf6..371493305cd 100644 --- a/testing/environments/snapshot-oss.yml +++ b/testing/environments/snapshot-oss.yml @@ -27,7 +27,7 @@ services: kibana: image: docker.elastic.co/kibana/kibana-oss:8.0.0-SNAPSHOT healthcheck: - test: ["CMD-SHELL", 'python -c ''import urllib, json; response = urllib.urlopen("http://localhost:5601/api/status"); data = json.loads(response.read()); exit(1) if data["status"]["overall"]["state"] != "green" else exit(0);'''] + test: ["CMD-SHELL", "curl -s http://localhost:5601/api/status | grep -q 'Looking good'"] retries: 600 interval: 1s diff --git a/testing/environments/snapshot.yml b/testing/environments/snapshot.yml index 959a2c39932..9d3555d7854 100644 --- a/testing/environments/snapshot.yml +++ b/testing/environments/snapshot.yml @@ -29,6 +29,6 @@ services: kibana: image: docker.elastic.co/kibana/kibana:8.0.0-SNAPSHOT healthcheck: - test: ["CMD-SHELL", 'python -c ''import urllib, json; response = urllib.urlopen("http://localhost:5601/api/status"); data = json.loads(response.read()); exit(1) if data["status"]["overall"]["state"] != "green" else exit(0);'''] + test: ["CMD-SHELL", "curl -s http://localhost:5601/api/status | grep -q 'Looking good'"] retries: 600 interval: 1s diff --git a/x-pack/libbeat/docker-compose.yml b/x-pack/libbeat/docker-compose.yml index 81b6960c90c..db68149aacc 100644 --- a/x-pack/libbeat/docker-compose.yml +++ b/x-pack/libbeat/docker-compose.yml @@ -50,7 +50,7 @@ services: file: ${ES_BEATS}/testing/environments/${TESTING_ENVIRONMENT}.yml service: kibana healthcheck: - test: ["CMD-SHELL", 'python -c ''import urllib, json; response = urllib.urlopen("http://myelastic:changeme@localhost:5601/api/status"); data = json.loads(response.read()); exit(1) if data["status"]["overall"]["state"] != "green" else exit(0);'''] + test: ["CMD-SHELL", "curl -u myelastic:changeme -f http://localhost:5601/api/status | grep -q 'Looking good'"] retries: 1200 interval: 5s start_period: 60s