tacker/tools/prepare_functional_test.sh
doantungbk 17e28c9d90 Fix dsvm failure caused by devstack plugin and event/auditing func.
This patch will fix dsvm failure:
1. The new changes in devstack [1]. Whereby, plugin was not enabled
to use multiple times. Currently, almost functions like fixup_quota,
add_key and add_secgrp enable plugin which runs multiple times.
2. Some functional tests were not working with event/auditing function.
[1]https://review.openstack.org/#/c/396794/

Change-Id: I1846c0df1d59557919a4caa612f2a4c60fbf7ce8
Closes-Bug: #1646807
2016-12-11 22:28:18 -08:00

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