tacker/tools/prepare_functional_test.sh
Tin Lam 043c147690 Provide support for security groups for ConnectionPoints
Add option for providing security groups in ConnectionPoint
node_type of TOSCA VNF templates.

Co-Authored-By: Sridhar Ramaswamy <srics.r@gmail.com>

Change-Id: I5fabaa8a33d684a591364510ed6d3df93989c419
Closes-Bug: #1591372
2016-09-14 10:32:52 -05:00

20 lines
494 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
source ${TACKER_DIR}/tacker/tests/contrib/post_test_hook_lib.sh
fixup_quota
add_key_if_not_exist
add_secgrp_if_not_exist