Refactor experimental check to use proper runner through devstack
The hook is a duplicate of functionality already covered
by the tempest features offered by devstack. That is why
it is not being used.
- link-logs
- net-info
- devstack-checkout
+ - local_conf:
+ conf: |
+ [[local|localrc]]
+ # L2 Gateway
+ enable_plugin networking-l2gw git://git.openstack.org/openstack/networking-l2gw
+ enable_service l2gw-plugin
+ NETWORKING_L2GW_SERVICE_DRIVER=L2GW:l2gw:networking_l2gw.services.l2gateway.service_drivers.L2gwDriver:default
+ TEMPEST_PLUGINS='/opt/stack/new/networking-l2gw'
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_UNSTACK=1
export DEVSTACK_GATE_TEMPEST=1
+ export DEVSTACK_GATE_TEMPEST_REGEX="networking_l2gw"
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
# our project repository. This makes zuul do the right
# reference magic for testing changes.
export PROJECTS="openstack/networking-l2gw $PROJECTS"
- # Note the actual url here is somewhat irrelevant because it
- # caches in nodepool, however make it a valid url for
- # documentation purposes.
- export DEVSTACK_LOCAL_CONFIG="enable_plugin networking-l2gw git://git.openstack.org/openstack/networking-l2gw"
- export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service l2gw-plugin"
- export DEVSTACK_LOCAL_CONFIG+=$'\n'"NETWORKING_L2GW_SERVICE_DRIVER=L2GW:l2gw:networking_l2gw.services.l2gateway.service_drivers.L2gwDriver:default"
-
- # Keep localrc to be able to set some vars in pre_test_hook
- export KEEP_LOCALRC=1
-
- function gate_hook {{
- bash -xe $BASE/new/networking-l2gw/networking_l2gw/tests/contrib/gate_hook.sh api
- }}
- export -f gate_hook
-
- function post_test_hook {{
- bash -xe $BASE/new/networking-l2gw/networking_l2gw/tests/contrib/post_test_hook.sh api
- }}
- export -f post_test_hook
-
- export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-l2gw/devstack/devstackgaterc
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
