Enhance devstackgaterc to support neutron-api tests

This patch is modifying the devstackgaterc file to add support for
neutron-api tests.

Before this patch, devstackgaterc only supported 1 positional argument
for choosing the ovs branch (latest-release or master). Now, it possible
to pass as many options as needed and it will be much easier to extend.

This patch will be used at: 6791b94429f4a2f494e3f45426e074e8608ce917

Change-Id: Idee833a90c2c2dacea8c92ff58f67f6c3822bb9e
changes/16/498716/3
Lucas Alvares Gomes 6 years ago
parent 37ee4b3e4b
commit f06a77c312

@ -18,10 +18,11 @@
# http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/networking-ovn.yaml
#
OVS_BRANCH=$1
OVN_OPTS=$@
OVERRIDE_ENABLED_SERVICES=key,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj,n-api-meta,placement-api,g-api,g-reg,c-sch,c-api,c-vol,rabbit,mysql,dstat,ovn-northd,ovn-controller,q-svc
# FIXME(dalvarez): Remove this once OVS 2.8 is released. Metadata support depends on it.
if [[ "${OVS_BRANCH}" != "latest-release" ]] ; then
if [[ "${OVN_OPTS}" != *"latest-release"* ]] ; then
OVERRIDE_ENABLED_SERVICES=${OVERRIDE_ENABLED_SERVICES},networking-ovn-metadata-agent
fi
export OVERRIDE_ENABLED_SERVICES
@ -30,22 +31,25 @@ if [ -z "${RALLY_SCENARIO}" ] ; then
# Only include tempest if this is not a rally job.
export OVERRIDE_ENABLED_SERVICES=${OVERRIDE_ENABLED_SERVICES},tempest
# FIXME(dalvarez): Remove this once OVS 2.8 is released. Metadata support depends on it.
if [[ "${OVS_BRANCH}" == "latest-release" ]] ; then
if [[ "${OVN_OPTS}" == *"latest-release"* ]] ; then
export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_RUN_VALIDATION=False"
fi
fi
export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_USE_PROVIDERNET_FOR_PUBLIC=True"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"PHYSICAL_NETWORK=public"
if [[ "${OVS_BRANCH}" == "latest-release" ]] ; then
if [[ "${OVN_OPTS}" == *"latest-release"* ]] ; then
export DEVSTACK_LOCAL_CONFIG+=$'\n'"OVN_BRANCH=branch-2.7"
elif [[ "${OVS_BRANCH}" == "master" ]] ; then
elif [[ "${OVN_OPTS}" == *"master"* ]] ; then
export DEVSTACK_LOCAL_CONFIG+=$'\n'"OVN_BRANCH=master"
elif [[ -z "${OVS_BRANCH}" ]] ; then
: # Use the default specified in the devstack plugin
else
echo "Unexpected value to ovs branch argument to devstackgaterc: \"${OVS_BRANCH}\""
exit 1
echo "No ovs branch specified, using the default from the devstack plugin"
fi
if [[ "${OVN_OPTS}" == *"neutron-api-tests"* ]] ; then
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
export DEVSTACK_GATE_TEMPEST_REGEX="^neutron.tests.tempest.api\."
fi
if [[ "$DEVSTACK_GATE_TOPOLOGY" == "multinode" ]] ; then

Loading…
Cancel
Save