2016-08-26 12:46:51 +00:00
|
|
|
# This script is used to prepare functional test env after devstack
|
|
|
|
# installation of tacker
|
|
|
|
|
|
|
|
DEVSTACK_DIR=${DEVSTACK_DIR:-~/devstack}
|
|
|
|
TACKER_DIR=$(dirname "$0")/..
|
|
|
|
PRIVATE_KEY_FILE=${PRIVATE_KEY_FILE:-/dev/null}
|
|
|
|
NFV_USER=${NFV_USER:-"nfv_user"}
|
|
|
|
|
|
|
|
# Test devstack dir setting
|
|
|
|
if [ ! -f ${DEVSTACK_DIR}/openrc ]; then
|
|
|
|
echo "Please set right DEVSTACK_DIR"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2017-09-05 07:10:49 +00:00
|
|
|
. $DEVSTACK_DIR/openrc admin admin
|
|
|
|
. ${TACKER_DIR}/tacker/tests/contrib/post_test_hook_lib.sh
|
2016-08-26 12:46:51 +00:00
|
|
|
|
|
|
|
fixup_quota
|
|
|
|
add_key_if_not_exist
|
2016-06-21 05:00:07 +00:00
|
|
|
add_secgrp_if_not_exist
|