osc-placement: experimental job for running of functional tests
Add a new job for running osc-placement functional tests (as a tox env, i.e. tox -e functional) following the approach used by python-novaclient. The hook in the osc-placement tree is added in I8ca156440cb51d03cb8e05185c028573dc6f9b4b Change-Id: I82295d6682ddc7d7d101b3039d9e1ff678bc1304
This commit is contained in:
parent
51cb3bce16
commit
fd26a75812
@ -47,6 +47,49 @@
|
||||
- console-log
|
||||
|
||||
|
||||
- job-template:
|
||||
name: '{pipeline}-osc-placement-dsvm-functional{special}-{node}{suffix}'
|
||||
node: '{node}'
|
||||
|
||||
wrappers:
|
||||
- build-timeout:
|
||||
timeout: 120
|
||||
- timestamps
|
||||
|
||||
builders:
|
||||
- link-logs
|
||||
- net-info
|
||||
- devstack-checkout
|
||||
- shell: |
|
||||
#!/bin/bash -xe
|
||||
export PYTHONUNBUFFERED=true
|
||||
export BRANCH_OVERRIDE={branch-override}
|
||||
export PROJECTS="openstack/osc-placement $PROJECTS"
|
||||
export DEVSTACK_PROJECT_FROM_GIT=osc-placement
|
||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
fi
|
||||
# This ensures that if we set override branch to something
|
||||
# else, we still take osc-placement from the zuul branch
|
||||
# name. So override branch can be 'stable/mitaka' but we can
|
||||
# test master changes.
|
||||
export OVERRIDE_OSC_PLACEMENT_PROJECT_BRANCH=$ZUUL_BRANCH
|
||||
|
||||
function post_test_hook {{
|
||||
# Configure and run functional tests
|
||||
$BASE/new/osc-placement/osc_placement/tests/functional/hooks/post_test_hook.sh
|
||||
}}
|
||||
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
|
||||
|
||||
|
||||
# This runs single-node full tempest with neutron plus cells v2 and
|
||||
# the placement-api service. The intent of this job is to test the latest
|
||||
# features in Nova which might be considered experimental in master.
|
||||
|
@ -9592,6 +9592,12 @@
|
||||
- python-jobs
|
||||
- openstack-publish-jobs
|
||||
- pypi-jobs
|
||||
- '{pipeline}-osc-placement-dsvm-functional{special}-{node}{suffix}':
|
||||
pipeline: gate
|
||||
node: ubuntu-xenial
|
||||
special: ''
|
||||
suffix: ''
|
||||
branch-override: default
|
||||
|
||||
- project:
|
||||
name: oslo-cookiecutter
|
||||
|
@ -14687,6 +14687,8 @@ projects:
|
||||
- name: check-requirements
|
||||
- name: openstack-server-publish-jobs
|
||||
- name: publish-to-pypi
|
||||
experimental:
|
||||
- gate-osc-placement-dsvm-functional-ubuntu-xenial
|
||||
|
||||
- name: openstack/oslo-specs
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user