2014-11-03 12:28:31 +01:00
|
|
|
- job-group:
|
|
|
|
name: 'lib-forward-testing-{name}'
|
|
|
|
jobs:
|
2016-12-08 22:05:01 +01:00
|
|
|
- '{pipeline}-tempest-dsvm-neutron-src-{name}-{node}{suffix}':
|
2014-11-03 12:28:31 +01:00
|
|
|
pipeline: gate
|
2016-12-05 20:50:32 +01:00
|
|
|
node:
|
|
|
|
- ubuntu-trusty
|
|
|
|
- ubuntu-xenial
|
2016-12-08 22:05:01 +01:00
|
|
|
suffix: ''
|
2014-11-03 12:28:31 +01:00
|
|
|
branch-override: default
|
2015-11-02 10:14:13 -05:00
|
|
|
|
|
|
|
- job-group:
|
|
|
|
name: 'stable-compat-jobs-{name}'
|
|
|
|
jobs:
|
2016-12-08 22:05:01 +01:00
|
|
|
- '{pipeline}-tempest-dsvm-neutron-src-{name}-{node}{suffix}':
|
2016-09-22 17:02:12 -04:00
|
|
|
pipeline: gate
|
|
|
|
node: ubuntu-xenial
|
2016-12-08 22:05:01 +01:00
|
|
|
suffix: '-newton'
|
2016-09-22 17:02:12 -04:00
|
|
|
branch-override: stable/newton
|
2017-02-01 16:05:01 -05:00
|
|
|
- '{pipeline}-tempest-dsvm-neutron-src-{name}-{node}{suffix}':
|
|
|
|
pipeline: gate
|
|
|
|
node: ubuntu-xenial
|
|
|
|
suffix: '-ocata'
|
|
|
|
branch-override: stable/ocata
|
2017-02-22 21:53:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
- job-template:
|
|
|
|
name: '{pipeline}-tempest-dsvm-cinder-v1-{node}{suffix}'
|
|
|
|
node: '{node}'
|
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
|
|
|
timeout: 180
|
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- print-template-name:
|
|
|
|
template-name: "{template-name}"
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
|
|
export DEVSTACK_LOCAL_CONFIG="TEMPEST_VOLUME_API_V1=True"
|
|
|
|
export DEVSTACK_GATE_TEMPEST_REGEX="volume"
|
|
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
|
|
fi
|
|
|
|
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
|
2017-05-08 18:02:41 +05:30
|
|
|
|
|
|
|
|
|
|
|
- job-template:
|
|
|
|
name: '{pipeline}-tempest-plugin-sanity-{node}{suffix}'
|
|
|
|
node: '{node}'
|
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
|
|
|
timeout: 30
|
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- zuul-git-prep
|
|
|
|
- install-distro-packages
|
|
|
|
- revoke-sudo
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -eux
|
|
|
|
cd $WORKSPACE
|
2017-05-11 14:48:57 +05:30
|
|
|
# retrieve a list of projects having tempest plugins
|
|
|
|
PROJECT_LIST="$(python tools/generate-tempest-plugins-list.py)"
|
2017-05-08 18:02:41 +05:30
|
|
|
# function to clone project using zuul-cloner
|
|
|
|
function clone_project() {{
|
|
|
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
|
|
|
git://git.openstack.org \
|
|
|
|
openstack/"$1"
|
|
|
|
}}
|
|
|
|
|
|
|
|
# Clone projects having tempest plugins
|
|
|
|
for project in $PROJECT_LIST; do
|
|
|
|
clone_project $project
|
|
|
|
done
|
2017-05-11 14:48:57 +05:30
|
|
|
virtualenv $WORKSPACE/.venv
|
|
|
|
export TVENV="$WORKSPACE/tools/with_venv.sh"
|
|
|
|
$TVENV pip install .
|
2017-05-08 18:02:41 +05:30
|
|
|
# Install other tempest plugins projects
|
|
|
|
for project in $PROJECT_LIST; do
|
|
|
|
$TVENV pip install $WORKSPACE/openstack/$project
|
2017-05-18 13:26:02 +05:30
|
|
|
# Check for test-requirements.txt file in a project then install it.
|
|
|
|
if [[ -e $WORKSPACE/openstack/$project/test-requirements.txt ]]; then
|
|
|
|
$TVENV pip install -r $WORKSPACE/openstack/$project/test-requirements.txt
|
|
|
|
fi
|
2017-05-08 18:02:41 +05:30
|
|
|
done
|
2017-05-11 14:48:57 +05:30
|
|
|
# Create tempest workspace
|
2017-05-08 18:02:41 +05:30
|
|
|
$TVENV tempest init $WORKSPACE/tempest_sanity
|
|
|
|
cd $WORKSPACE/tempest_sanity
|
|
|
|
$TVENV tempest list-plugins
|
|
|
|
$TVENV tempest run -l
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- console-log
|