2013-11-27 13:15:58 +04:00
|
|
|
- job:
|
2014-05-22 19:39:03 +04:00
|
|
|
name: gate-blazar-devstack-dsvm
|
2016-12-06 08:40:29 -08:00
|
|
|
node: ubuntu-xenial
|
2013-11-27 13:15:58 +04:00
|
|
|
|
|
|
|
wrappers:
|
2014-05-27 14:51:16 -07:00
|
|
|
- build-timeout:
|
2016-02-07 09:16:13 +01:00
|
|
|
timeout: 70
|
2013-11-27 13:15:58 +04:00
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
2014-03-11 15:46:51 -07:00
|
|
|
- link-logs
|
2014-03-19 00:06:03 +00:00
|
|
|
- net-info
|
2013-11-27 13:15:58 +04:00
|
|
|
- devstack-checkout
|
2017-04-07 11:29:33 +02:00
|
|
|
- local_conf:
|
|
|
|
conf: |
|
|
|
|
[[local|localrc]]
|
|
|
|
enable_plugin blazar git://git.openstack.org/openstack/blazar
|
2013-11-27 13:15:58 +04:00
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
2014-06-24 14:40:58 -03:00
|
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
|
|
export ENABLED_SERVICES=blazar,blazar-a,blazar-m,tempest
|
2015-10-15 14:02:14 -04:00
|
|
|
export PROJECTS="openstack/blazar $PROJECTS"
|
|
|
|
export PROJECTS="openstack/blazar-nova $PROJECTS"
|
|
|
|
export PROJECTS="openstack/python-blazarclient $PROJECTS"
|
2013-11-27 13:15:58 +04:00
|
|
|
|
2014-06-27 17:16:13 -03:00
|
|
|
# Construct a regex to limiting scope of tempest
|
2017-01-26 17:24:58 +09:00
|
|
|
r="^(?:tempest\.cli\.simple_read_only\.test_.*reservation.*)"
|
|
|
|
r="$r|^(?:tempest\.scenario\.test_.*reservation.*)"
|
2014-06-27 17:16:13 -03:00
|
|
|
export DEVSTACK_GATE_TEMPEST_REGEX="$r"
|
|
|
|
|
2013-11-27 13:15:58 +04:00
|
|
|
function pre_test_hook {
|
2014-06-24 14:40:58 -03:00
|
|
|
# Install blazar tempest integration
|
2016-12-05 10:17:15 +00:00
|
|
|
BLAZAR_TEMPEST_DIR=/opt/stack/new/blazar/contrib/tempest
|
2017-03-07 16:37:03 +09:00
|
|
|
# Copying Tempest test suites
|
|
|
|
# This will be removed once blazar's tempest starts to use TempestPlugin
|
2017-04-11 21:13:23 +09:00
|
|
|
if [ -e $BLAZAR_TEMPEST_DIR ] ; then
|
2017-03-07 16:37:03 +09:00
|
|
|
TEMPEST_DIR=${TEMPEST_DIR:-/opt/stack/new/tempest}
|
|
|
|
cp -R $BLAZAR_TEMPEST_DIR/tempest/* $TEMPEST_DIR/tempest
|
|
|
|
fi
|
2013-11-27 13:15:58 +04:00
|
|
|
}
|
|
|
|
export -f pre_test_hook
|
|
|
|
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- devstack-logs
|
|
|
|
- console-log
|