Add Ironic Inspector simple integration test job

This patch set add Ironic Inspector's integration test job.
At first, I add just check job, as non-voting.
If this works well, I will change from non-voting to voting,
and also I will add gate job.

Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Change-Id: Iaf3fa42b2799c785963fe58397e2b80c394db46b
This commit is contained in:
Yuiko Takada 2015-06-22 14:31:50 +09:00 committed by Dmitry Tantsur
parent 886fd51630
commit b1a7320176
3 changed files with 50 additions and 1 deletions

View File

@ -74,3 +74,46 @@
publishers:
- devstack-logs
- console-log
- job-template:
name: '{pipeline}-ironic-inspector-dsvm{branch-designator}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 125
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=60
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_IRONIC=1
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_VIRT_DRIVER=ironic
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export PROJECTS="openstack/ironic-inspector $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin ironic-inspector https://git.openstack.org/openstack/ironic-inspector"
function post_test_hook {{
source $BASE/new/devstack/openrc admin admin
cd /opt/stack/new/ironic-inspector
sudo -E -u stack ./functest/devstack-test.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:
- devstack-logs
- console-log

View File

@ -393,9 +393,14 @@
jobs:
- python-jobs
- pypi-jobs
- translation-jobs
- gate-{name}-tox-{envlist}:
envlist: func
- translation-jobs
- '{pipeline}-ironic-inspector-dsvm{branch-designator}':
pipeline: check
node: 'devstack-precise || devstack-trusty'
branch-designator: '-nv'
branch-override: default
- project:
name: ironic-lib

View File

@ -1898,6 +1898,7 @@ projects:
- gate-ironic-inspector-pep8
- gate-ironic-inspector-python27
- gate-ironic-inspector-tox-func
- check-ironic-inspector-dsvm-nv
gate:
- gate-ironic-inspector-pep8
- gate-ironic-inspector-python27