Added Tempest Plugins Sanity Checker Job

* It will clone tempest and get a project list having tempest plugin
* Create virtualenv and installs tempest and other project plugins
* Create tempest workspace
* List tempest plugins
* List tests

* It will help to find tempest plugins issues and dependency mismatch.

Change-Id: Idf04917b0fe8ad4b73d24d8874613d6911897f02
This commit is contained in:
Chandan Kumar 2017-05-08 18:02:41 +05:30
parent f46dc68c61
commit d529db1295
3 changed files with 52 additions and 0 deletions

View File

@ -14689,6 +14689,10 @@
node-release: ubuntu-xenial
suffix: '-nv'
branch-override: default
- '{pipeline}-tempest-plugin-sanity-{node}{suffix}':
pipeline: gate
node: ubuntu-xenial
suffix: '-nv'
- project:
name: tempest-horizon

View File

@ -55,3 +55,49 @@
publishers:
- devstack-logs
- console-log
- 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
PROJECT_LIST="$(python ./openstack/tempest/tools/generate-tempest-plugins-list.py)"
# 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"
echo "$1 project clonned successfully."
}}
# Clone projects having tempest plugins
for project in $PROJECT_LIST; do
clone_project $project
done
virtualenv $WORKSPACE/openstack/tempest/.venv
export TVENV="$WORKSPACE/openstack/tempest/tools/with_venv.sh"
$TVENV pip install $WORKSPACE/openstack/tempest
# Install other tempest plugins projects
for project in $PROJECT_LIST; do
$TVENV pip install $WORKSPACE/openstack/$project
done
# Create Tempest workspace
$TVENV tempest init $WORKSPACE/tempest_sanity
cd $WORKSPACE/tempest_sanity
$TVENV tempest list-plugins
$TVENV tempest run -l
publishers:
- console-log

View File

@ -18216,6 +18216,8 @@ projects:
- gate-tempest-dsvm-neutron-full-ubuntu-xenial-newton
# non voting scenario test
- gate-tempest-dsvm-neutron-scenario-multinode-ubuntu-xenial-nv
# tempest plugin sanity
- gate-tempest-plugin-sanity-ubuntu-xenial-nv
gate:
- gate-grenade-dsvm-multinode
- gate-grenade-dsvm-neutron-multinode-ubuntu-xenial