Add a job for functional tests in zaqarclient
We'd like to test every patch submitted for zaqarclient against a live running zaqar server. This patch adds a new zaqarclient job that installs zaqar and runs the client functional tests. This job has, temporarily, been made non-voting until we're sure it works as expected. This is a prevention to avoid blocking the client patches on a broken job. Once it works as expected, I'll add the job to the gate pipeline and make it voting. Change-Id: Ia5b47bfc02b2c53ccbc2a73729961a9d5fdd9b6d
This commit is contained in:
parent
4aef606a9d
commit
830afadbb1
|
@ -764,6 +764,17 @@
|
|||
jobs:
|
||||
- python-jobs
|
||||
- pypi-jobs
|
||||
- '{pipeline}-zaqarclient-dsvm-functional{branch-designator}':
|
||||
pipeline: check
|
||||
node: 'devstack-trusty'
|
||||
branch-designator: ''
|
||||
branch-override: default
|
||||
- '{pipeline}-zaqarclient-dsvm-functional{branch-designator}':
|
||||
pipeline: gate
|
||||
node: 'devstack-trusty'
|
||||
branch-designator: ''
|
||||
branch-override: default
|
||||
|
||||
|
||||
########################################################################
|
||||
# Section: oslo libraries
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
- job-template:
|
||||
name: '{pipeline}-zaqarclient-dsvm-functional{branch-designator}'
|
||||
node: '{node}'
|
||||
|
||||
wrappers:
|
||||
- build-timeout:
|
||||
timeout: 95
|
||||
- timestamps
|
||||
|
||||
builders:
|
||||
- link-logs
|
||||
- net-info
|
||||
- devstack-checkout
|
||||
- shell: |
|
||||
#!/bin/bash -xe
|
||||
export PYTHONUNBUFFERED=true
|
||||
export FUNCTEST_TIMEOUT=30
|
||||
export DEVSTACK_GATE_ZAQAR=1
|
||||
export DEVSTACK_GATE_TEMPEST=0
|
||||
export DEVSTACK_GATE_TIMEOUT=90
|
||||
export DEVSTACK_GATE_EXERCISES=0
|
||||
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
||||
export ENABLED_SERVICES=mysql,key,zaqar-server
|
||||
export BRANCH_OVERRIDE={branch-override}
|
||||
|
||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
fi
|
||||
|
||||
export ZAQARCLIENT_TEST_FUNCTIONAL=1
|
||||
function post_test_hook {{
|
||||
cd /opt/stack/new/python-zaqarclient
|
||||
pip install -r test-requirements.txt
|
||||
nosetests tests.functional
|
||||
}}
|
||||
|
||||
export -f post_test_hook
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
|
||||
publishers:
|
||||
- test-results
|
||||
- devstack-logs
|
||||
- console-log
|
|
@ -740,6 +740,8 @@ jobs:
|
|||
voting: false
|
||||
- name: ^(gate|check)-zaqar-python33
|
||||
branch: ^(?!stable/icehouse).*$
|
||||
- name: ^(gate|check)-zaqarclient-dsvm-functional$
|
||||
voting: false
|
||||
- name: gate-horizon-jshint
|
||||
voting: false
|
||||
- name: gate-tempest-dsvm-ceilometer-mongodb
|
||||
|
@ -1815,6 +1817,7 @@ projects:
|
|||
- gate-python-zaqarclient-pep8
|
||||
- gate-python-zaqarclient-python26
|
||||
- gate-python-zaqarclient-python27
|
||||
- check-zaqarclient-dsvm-functional
|
||||
gate:
|
||||
- gate-python-zaqarclient-pep8
|
||||
- gate-python-zaqarclient-python26
|
||||
|
|
Loading…
Reference in New Issue