Fix check working sahara-api

Change-Id: I3eaa4594ba9d2536402aa093219fce0bd265a44c
This commit is contained in:
Sergey Reshetnyak 2016-05-25 19:02:09 +03:00
parent 3f266d55b2
commit 520d9eaf61

View File

@ -150,7 +150,7 @@ start_sahara() {
fi
api_responding_timeout=30
if ! timeout ${api_responding_timeout} sh -c "while ! curl -s http://127.0.0.1:8386/v1.1/ 2>/dev/null | grep -q 'Authentication required' ; do sleep 1; done"; then
if ! timeout ${api_responding_timeout} sh -c "while ! curl -s http://127.0.0.1:8386/v1.1/ 2>/dev/null | grep -q 'requires authentication\|Authentication required' ; do sleep 1; done"; then
failure "Sahara API failed to respond within ${api_responding_timeout} seconds"
fi
}