Add tempest variations of Designate DSVM jobs

* Adds two new experimental jobs (Designate+Bind9/PowerDNS)
* Does not restrict execution branch yet, we'll want this to
  be Neuton+ as it moves over the check/gate queues. For now,
  i'd like to see just how badly the remaining changes below
  fail on other branches, as we may choose to include these
  on Mitaka.
* Replaces use of the gate / pre test / post tests hooks, as
  enough configurability is now exposed.
* Uses tempest in "all-plugin" mode, limiting to all tests
  containing "designate" in the name. Ideally, this would be
  changed to "full-plugin" mode, without the designate
  restriction, but this does not exist in tempest's tox.ini
* Attempts to be ready to add stable branch editions of this
  this using branch-override and job-suffix.

Change-Id: I8166d447802b4520c0721b9f006b59543b3b548c
This commit is contained in:
Kiall Mac Innes 2016-04-12 15:28:52 +01:00
parent 6311ad49dc
commit 5118c6fed7
3 changed files with 60 additions and 0 deletions

View File

@ -1,3 +1,51 @@
# Experimental job for Designate+Tempest
- job-template:
name: 'gate-tempest-dsvm-designate-{designate-driver}{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- print-node-uuid
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
export DEVSTACK_GATE_TEMPEST_REGEX=designate
export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER={designate-driver}"
export PROJECTS="openstack/designate $PROJECTS"
export PROJECTS="openstack/python-designateclient $PROJECTS"
export PROJECTS="openstack/designate-dashboard $PROJECTS"
export PROJECTS="openstack/designate-tempest-plugin $PROJECTS"
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
- job-template:
name: 'gate-designate-dsvm-{designate-driver}'

View File

@ -1056,6 +1056,13 @@
- pypi-jobs
- translation-jobs
- gate-rally-dsvm-designate-{name}
- 'gate-tempest-dsvm-designate-{designate-driver}{job-suffix}':
node: ubuntu-trusty
branch-override: default
job-suffix: ''
designate-driver:
- powerdns
- bind9
- 'gate-designate-dsvm-{designate-driver}':
node: ubuntu-trusty
designate-driver:

View File

@ -5199,6 +5199,8 @@ projects:
post:
- designate-coverage-db
experimental:
- gate-tempest-dsvm-designate-powerdns
- gate-tempest-dsvm-designate-bind9
- gate-designate-dsvm-powerdns-postgres
- name: openstack/designate-dashboard
@ -5246,6 +5248,9 @@ projects:
- gate-designate-tempest-plugin-pep8
- gate-designate-dsvm-powerdns
- gate-designate-dsvm-bind9
experimental:
- gate-tempest-dsvm-designate-powerdns
- gate-tempest-dsvm-designate-bind9
- name: openstack/devstack-plugin-additional-pkg-repos
template: