1e8113866d
Shell scripts preparing dsvm environment for policy enforcement tests. Tests require devstack with Congress installed. Some original scripts where changed to reuse functionality. Jenkins job https://review.openstack.org/#/c/150401/ Partially Implements blueprint congress-support-in-murano Change-Id: Ib3c26168043f74d4e7ec76f3557f8857cf4304a4
23 lines
698 B
Bash
Executable File
23 lines
698 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}
|
|
|
|
# Add tempest source tree to PYTHONPATH
|
|
export PYTHONPATH=$PYTHONPATH:$TEMPEST_DIR
|
|
|
|
#installing requirements for tempest
|
|
pip install -r $TEMPEST_DIR/requirements.txt
|