Files
murano/functionaltests/run_tests_common.sh
zhurong 6e1dc58b8e Fix murano-congress-devstack-dsvm job
Change-Id: I2ecfef6e287c0a8adfbde7728de0c1393778a29a
2017-12-02 05:10:32 +00:00

17 lines
535 B
Bash
Executable File

#!/bin/bash
# Intended be sourced by other scripts
# How many seconds to wait for the API to be responding before giving up
API_RESPONDING_TIMEOUT=20
if ! timeout ${API_RESPONDING_TIMEOUT} sh -c "while ! curl -s http://127.0.0.1/application-catalog/v1/ 2>/dev/null | grep -q 'Unauthorized' ; do sleep 1; done"; then
echo "Murano API failed to respond within ${API_RESPONDING_TIMEOUT} seconds"
exit 1
fi
echo "Successfully contacted Murano API"
# Where tempest code lives
TEMPEST_DIR=${TEMPEST_DIR:-/opt/stack/new/tempest}