murano/functionaltests/run_tests_common.sh
Victor Ryzhenkin 11f0aeeb5e Remove tethering between func and api tests and use venv for tempest
In this patch removed tethering between functional tests and api tests
which blocks test runs when tempest installation uses venv.
Also, in this patch implemented tempest venv using for main gate job,
which gave to main gate a beautiful stability against version conflicts.

Change-Id: I577399552341f4b8085637e5dab975ccdd28cd2b
Closes-Bug: #1476759
2015-09-01 22:03:20 +03:00

17 lines
531 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:8082/v1/ 2>/dev/null | grep -q 'Authentication required' ; 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}