Fix nailgun status check
Since we have changed the authentication of API endpoints in nailgun (/api/version specifically) we cannot expect HTTP code 200 from nailgun anymore. The functional tests install and run nailgun, checking whether it is ready to serve request by quering the /api/version endpoint and waiting for HTTP code 200. The commit changes this logic to accept any return code except 000, since any valid HTTP return code shows that nailgun is ready. Change-Id: I457fffc3fe9bd15b8ce07d5fca13bced44d8127a Closes-Bug: #1621000
This commit is contained in:
@@ -69,7 +69,7 @@ run_server() {
|
||||
|
||||
local http_code=$(curl -s -w %{http_code} -o /dev/null $check_url)
|
||||
|
||||
if [[ "$http_code" = "200" ]]; then return 0; fi
|
||||
if [[ "$http_code" != "000" ]]; then return 0; fi
|
||||
|
||||
sleep 0.1
|
||||
i=$((i + 1))
|
||||
|
||||
Reference in New Issue
Block a user