51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
- job:
|
|
name: gate-blazar-devstack-dsvm
|
|
node: 'devstack-precise || devstack-trusty'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 65
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_TIMEOUT=60
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
export ENABLED_SERVICES=blazar,blazar-a,blazar-m,tempest
|
|
export PROJECTS="stackforge/blazar $PROJECTS"
|
|
export PROJECTS="stackforge/blazar-nova $PROJECTS"
|
|
export PROJECTS="stackforge/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
|