Merge "Fetch and install manila-tempest-plugin system-wide"

This commit is contained in:
Zuul 2018-03-22 15:21:23 +00:00 committed by Gerrit Code Review
commit 4cb39b3ab0
3 changed files with 17 additions and 9 deletions

View File

@ -356,7 +356,9 @@ if ! [[ -z "$OVERRIDE_IP_FOR_NFS_ACCESS" ]]; then
fi fi
echo "Running tempest manila test suites" echo "Running tempest manila test suites"
sudo -H -u $USER tox -eall -- $MANILA_TESTS --concurrency=$MANILA_TEMPEST_CONCURRENCY cd $BASE/new/tempest/
sudo -H -u $USER tempest run -r $MANILA_TESTS --concurrency=$MANILA_TEMPEST_CONCURRENCY
cd -
RETVAL=$? RETVAL=$?
@ -378,7 +380,9 @@ if [[ "$DRIVER" == "dummy" ]]; then
manila type-key default set driver_handles_share_servers=False manila type-key default set driver_handles_share_servers=False
echo "Running tempest manila test suites for DHSS=False mode" echo "Running tempest manila test suites for DHSS=False mode"
sudo -H -u $USER tox -eall -- $MANILA_TESTS --concurrency=$MANILA_TEMPEST_CONCURRENCY cd $BASE/new/tempest/
sudo -H -u $USER tempest run -r $MANILA_TESTS --concurrency=$MANILA_TEMPEST_CONCURRENCY
cd -
RETVAL2=$? RETVAL2=$?
save_tempest_results 2 save_tempest_results 2

View File

@ -843,6 +843,15 @@ function stop_manila {
done done
} }
function install_manila_tempest_plugin {
MANILA_TEMPEST_PLUGIN_REPO=${MANILA_TEMPEST_PLUGIN_REPO:-${GIT_BASE}/openstack/manila-tempest-plugin.git}
MANILA_TEMPEST_PLUGIN_BRANCH=${MANILA_TEMPEST_PLUGIN_BRANCH:-master}
MANILA_TEMPEST_PLUGIN_DIR=$DEST/manila-tempest-plugin
git_clone $MANILA_TEMPEST_PLUGIN_REPO $MANILA_TEMPEST_PLUGIN_DIR $MANILA_TEMPEST_PLUGIN_BRANCH
setup_develop $MANILA_TEMPEST_PLUGIN_DIR
}
# update_tempest - Function used for updating Tempest config if Tempest service enabled # update_tempest - Function used for updating Tempest config if Tempest service enabled
function update_tempest { function update_tempest {
if is_service_enabled tempest; then if is_service_enabled tempest; then
@ -1147,6 +1156,8 @@ elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
fi fi
########################################################################### ###########################################################################
echo_summary "Fetching and installing manila-tempest-plugin system-wide"
install_manila_tempest_plugin
echo_summary "Update Tempest config" echo_summary "Update Tempest config"
update_tempest update_tempest
fi fi

View File

@ -192,13 +192,6 @@ MANILA_DATA_NODE_IP=${MANILA_DATA_NODE_IP:=$MANILA_ADMIN_NET_RANGE}
# Data Service copy validation # Data Service copy validation
MANILA_DATA_COPY_CHECK_HASH=${MANILA_DATA_COPY_CHECK_HASH:=True} MANILA_DATA_COPY_CHECK_HASH=${MANILA_DATA_COPY_CHECK_HASH:=True}
MANILA_TEMPEST_PLUGIN_PATH=$DEST/manila-tempest-plugin
if [[ $TEMPEST_PLUGINS != 0 ]] ; then
TEMPEST_PLUGINS="$MANILA_TEMPEST_PLUGIN_PATH $TEMPEST_PLUGINS"
else
TEMPEST_PLUGINS=$MANILA_TEMPEST_PLUGIN_PATH
fi
# Manila IPv6 Setup flag # Manila IPv6 Setup flag
MANILA_SETUP_IPV6=${MANILA_SETUP_IPV6:=False} MANILA_SETUP_IPV6=${MANILA_SETUP_IPV6:=False}