From 520d9eaf6130c58253018a546640c43c8873d82a Mon Sep 17 00:00:00 2001 From: Sergey Reshetnyak Date: Wed, 25 May 2016 19:02:09 +0300 Subject: [PATCH] Fix check working sahara-api Change-Id: I3eaa4594ba9d2536402aa093219fce0bd265a44c --- slave-scripts/functions-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slave-scripts/functions-common.sh b/slave-scripts/functions-common.sh index 91f2665b..69e29604 100755 --- a/slave-scripts/functions-common.sh +++ b/slave-scripts/functions-common.sh @@ -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 }