Allow to pass suite flavor to gate_hook to disable dvr tests

Now if a job explicitly passes 'dvrskip' as a second argument to
gate_hook, then those tests requiring dvr extension won't be executed.

Needed-By: I0e94c5d7f65bbb1d803df0d2f99389ae19556480
Change-Id: I05233e69801be27cc35211148a53af02af29c8a5
This commit is contained in:
Ihar Hrachyshka 2016-12-16 12:00:08 +00:00
parent a47b137fe1
commit 47ee2532a7
3 changed files with 45 additions and 1 deletions

View File

@ -3,6 +3,7 @@
set -ex
VENV=${1:-"dsvm-functional"}
FLAVOR=${2:-"all"}
GATE_DEST=$BASE/new
NEUTRON_PATH=$GATE_DEST/neutron
@ -72,7 +73,7 @@ case $VENV in
;;
"api"|"api-pecan"|"full-ovsfw"|"full-pecan"|"dsvm-scenario")
load_rc_hook api_extensions
load_rc_hook api_${FLAVOR}_extensions
load_conf_hook quotas
load_rc_hook dns
load_rc_hook qos

View File

@ -0,0 +1,43 @@
NETWORK_API_EXTENSIONS="
address-scope, \
agent, \
allowed-address-pairs, \
auto-allocated-topology, \
availability_zone, \
binding, \
default-subnetpools, \
dhcp_agent_scheduler, \
dns-integration, \
ext-gw-mode, \
external-net, \
extra_dhcp_opt, \
extraroute, \
flavors, \
l3-flavors, \
l3-ha, \
l3_agent_scheduler, \
metering, \
multi-provider, \
net-mtu, \
network-ip-availability, \
network_availability_zone, \
pagination, \
port-security, \
project-id, \
provider, \
qos, \
quotas, \
rbac-policies, \
router, \
router_availability_zone, \
security-group, \
service-type, \
sorting, \
standard-attr-description, \
standard-attr-revisions, \
standard-attr-timestamp, \
subnet_allocation, \
tag, \
trunk, \
trunk-details"
NETWORK_API_EXTENSIONS="$(echo $NETWORK_API_EXTENSIONS | tr -d ' ')"