parent
1346a81e4d
commit
89d568d7d2
12
test_e2e.sh
12
test_e2e.sh
|
|
@ -2524,23 +2524,23 @@ function e2e::expose_http() {
|
||||||
done
|
done
|
||||||
|
|
||||||
# check that health endpoint fails
|
# check that health endpoint fails
|
||||||
if [[ $(curl --write-out %{http_code} --silent --output /dev/null http://localhost:$HTTP_PORT) -ne 503 ]] ; then
|
if [[ $(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:$HTTP_PORT) -ne 503 ]] ; then
|
||||||
fail "health endpoint should have failed: $(curl --write-out %{http_code} --silent --output /dev/null http://localhost:$HTTP_PORT)"
|
fail "health endpoint should have failed: $(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:$HTTP_PORT)"
|
||||||
fi
|
fi
|
||||||
wait_for_sync "${MAXWAIT}"
|
wait_for_sync "${MAXWAIT}"
|
||||||
|
|
||||||
# check that health endpoint is alive
|
# check that health endpoint is alive
|
||||||
if [[ $(curl --write-out %{http_code} --silent --output /dev/null http://localhost:$HTTP_PORT) -ne 200 ]] ; then
|
if [[ $(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:$HTTP_PORT) -ne 200 ]] ; then
|
||||||
fail "health endpoint failed"
|
fail "health endpoint failed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check that the metrics endpoint exists
|
# check that the metrics endpoint exists
|
||||||
if [[ $(curl --write-out %{http_code} --silent --output /dev/null http://localhost:$HTTP_PORT/metrics) -ne 200 ]] ; then
|
if [[ $(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:$HTTP_PORT/metrics) -ne 200 ]] ; then
|
||||||
fail "metrics endpoint failed"
|
fail "metrics endpoint failed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check that the pprof endpoint exists
|
# check that the pprof endpoint exists
|
||||||
if [[ $(curl --write-out %{http_code} --silent --output /dev/null http://localhost:$HTTP_PORT/debug/pprof/) -ne 200 ]] ; then
|
if [[ $(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:$HTTP_PORT/debug/pprof/) -ne 200 ]] ; then
|
||||||
fail "pprof endpoint failed"
|
fail "pprof endpoint failed"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
@ -2579,7 +2579,7 @@ function e2e::expose_http_after_restart() {
|
||||||
sleep 2 # wait for first loop to confirm synced
|
sleep 2 # wait for first loop to confirm synced
|
||||||
|
|
||||||
# check that health endpoint is alive
|
# check that health endpoint is alive
|
||||||
if [[ $(curl --write-out %{http_code} --silent --output /dev/null http://localhost:$HTTP_PORT) -ne 200 ]] ; then
|
if [[ $(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:$HTTP_PORT) -ne 200 ]] ; then
|
||||||
fail "health endpoint failed"
|
fail "health endpoint failed"
|
||||||
fi
|
fi
|
||||||
assert_link_exists "$ROOT/link"
|
assert_link_exists "$ROOT/link"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue