ceda9719f4
Switch all remaining devstack-trusty jobs to ubuntu-trusty to complete the migration. Change-Id: I7f94b59f318cab581aa4f194f33acf8ab597fc36
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
- job:
|
|
name: gate-blazar-devstack-dsvm
|
|
node: ubuntu-trusty
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
export ENABLED_SERVICES=blazar,blazar-a,blazar-m,tempest
|
|
export PROJECTS="openstack/blazar $PROJECTS"
|
|
export PROJECTS="openstack/blazar-nova $PROJECTS"
|
|
export PROJECTS="openstack/python-blazarclient $PROJECTS"
|
|
|
|
# Construct a regex to limiting scope of tempest
|
|
r="^(?:tempest\.cli\.simple_read_only\.test_resource_.*)"
|
|
r="$r|^(?:tempest\.scenario\.test_resource_.*)"
|
|
export DEVSTACK_GATE_TEMPEST_REGEX="$r"
|
|
|
|
function pre_test_hook {
|
|
# Install blazar devstack integration
|
|
BLAZAR_BASE=/opt/stack/new/blazar
|
|
BLAZAR_DEVSTACK_BASE=$BLAZAR_BASE/contrib/devstack
|
|
DEVSTACK_BASE=/opt/stack/new/devstack
|
|
cp $BLAZAR_DEVSTACK_BASE/lib/* $DEVSTACK_BASE/lib
|
|
cp $BLAZAR_DEVSTACK_BASE/extras.d/* $DEVSTACK_BASE/extras.d
|
|
|
|
# Install blazar tempest integration
|
|
# Copying Tempest test suites
|
|
BLAZAR_TEMPEST_DIR=$BLAZAR_BASE/contrib/tempest
|
|
TEMPEST_DIR=${TEMPEST_DIR:-/opt/stack/new/tempest}
|
|
cp -R $BLAZAR_TEMPEST_DIR/tempest/* $TEMPEST_DIR/tempest
|
|
}
|
|
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
|