Be explicit about the APIs tested in the gate

Add an rc hook that declaratively define what extensions
are going to be tested in the gate.

This has two benefits: a) it provides an easy switch to
disable intermittent/experimental APIs; b) it provides a
safeguard against accidental configuration errors that
may trigger the execution of dormant tests.

The 'service_type' extension has been skipped in preparation
of [1].

[1] https://review.openstack.org/#/c/195329/

Change-Id: I03e2394011aa747899b50e6eb64faca68866b388
This commit is contained in:
Armando Migliaccio 2016-04-14 13:22:52 -07:00
parent 86b99e3a1c
commit 4e3a9c2b9c
2 changed files with 38 additions and 0 deletions

View File

@ -63,6 +63,7 @@ then
elif [ "$VENV" == "api" -o "$VENV" == "api-pecan" -o "$VENV" == "full-pecan" ]
then
load_rc_hook api_extensions
if [ "$VENV" == "api-pecan" -o "$VENV" == "full-pecan" ]
then
load_conf_hook pecan

View File

@ -0,0 +1,37 @@
NETWORK_API_EXTENSIONS="
address-scope, \
agent, \
allowed-address-pairs, \
auto-allocated-topology, \
availability_zone, \
bgp, \
bgp_dragent_scheduler, \
binding, \
default-subnetpools, \
dhcp_agent_scheduler, \
dns-integration, \
dvr, \
ext-gw-mode, \
external-net, \
extra_dhcp_opt, \
extraroute, \
l3-ha, \
l3_agent_scheduler, \
metering, \
multi-provider, \
net-mtu, \
network-ip-availability, \
network_availability_zone, \
port-security, \
provider, \
qos, \
quotas, \
rbac-policies, \
router, \
router_availability_zone, \
security-group, \
standard-attr-description, \
subnet_allocation, \
tag, \
timestamp_core"
NETWORK_API_EXTENSIONS="$(echo $NETWORK_API_EXTENSIONS | tr -d ' ')"