Prepare fake env scripts for removing auth exemption for version
Any valid HTTP response from Nailgun should be treated as if Nailgun is operational, including 401. Change-Id: I019a1c10583470064e14914158cc8582a2711ee4 Partial-Bug: #1585137 Co-Authored-By: Vitaly Kramskikh <vkramskikh@mirantis.com>
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