Skip to content
Snippets Groups Projects
Commit edc91831 authored by Mark Goddard's avatar Mark Goddard
Browse files

CI: allow Elasticsearch status to be green or yellow

It has been seen to go green, so allow this.

Change-Id: Id86b95dbba3434b16f3d0c11485a0d8601833cbf
parent 8815deda
No related branches found
No related tags found
No related merge requests found
......@@ -42,8 +42,9 @@ function check_elasticsearch {
if ! curl "${args[@]}" $ELASTICSEARCH_URL > $output_path; then
return 1
fi
# NOTE(mgoddard): Status is yellow because no indices have been created.
if ! grep '"status":"yellow"' $output_path >/dev/null; then
# NOTE(mgoddard): Status may be yellow because no indices have been
# created.
if ! grep -E '"status":"(green|yellow)"' $output_path >/dev/null; then
return 1
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment