Skip to content

Commit

Permalink
chore: check for elastic search cluster health
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Jul 24, 2023
1 parent 46fea35 commit 82f345b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fixtures/datasources/_setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ spec:
curl https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -o wait-for-it.sh;
chmod +x wait-for-it.sh; ./wait-for-it.sh localhost:9200 --timeout=0;
curl -X PUT localhost:9200/index;
curl -X GET "localhost:9200/_cluster/health?wait_for_status=green&wait_for_active_shards=all&timeout=2m" -H 'Content-Type: application/json';
curl -X POST localhost:9200/index/_doc -d '{"system": {"role": "api"}}' -H 'Content-Type: application/json';
touch /tmp/done;
sleep infinity
Expand Down

0 comments on commit 82f345b

Please sign in to comment.