tacker/tools/prepare_functional_test.sh
rajat29 ab6a2557d4 Fix to use . to source script files
Adhering to coding conventions. Refer to ``Code conventions`` at
https://docs.openstack.org/contributor-guide/ for details.
When you have to source a script file, for example, a credentials file
to gain access to user-only or admin-only CLI commands, use . instead of source.
https://docs.openstack.org/contributor-guide/writing-style/code-conventions.html

Change-Id: I267e2282345b5cb97eba8d0c844417354ec24f4c
2017-09-11 15:21:20 +05:30

21 lines
524 B
Bash
Executable File

# 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
. $DEVSTACK_DIR/openrc admin admin
. ${TACKER_DIR}/tacker/tests/contrib/post_test_hook_lib.sh
fixup_quota
add_key_if_not_exist
add_secgrp_if_not_exist