From eae6daec3ab56cc1e017ee98b8f302afb6c53761 Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Thu, 12 Mar 2015 15:15:33 +0000 Subject: [PATCH] Add functional test job for python-ceilometerclient Create functional test job for python-ceilometerclient, set as non-voting until it's working. The tests are being migrated from tempest cli tests. Change-Id: Ib9393523812801cd51885b83afb78a0b7491f6b0 --- jenkins/jobs/ceilometer.yaml | 38 ++++++++++++++++++++++++++++++++++++ jenkins/jobs/projects.yaml | 5 +++++ zuul/layout.yaml | 4 ++++ 3 files changed, 47 insertions(+) diff --git a/jenkins/jobs/ceilometer.yaml b/jenkins/jobs/ceilometer.yaml index 5d6186fdf0..4c41d73b20 100644 --- a/jenkins/jobs/ceilometer.yaml +++ b/jenkins/jobs/ceilometer.yaml @@ -59,3 +59,41 @@ publishers: - devstack-logs - console-log + + +- job-template: + name: '{pipeline}-ceilometerclient-dsvm-functional{branch-designator}' + node: '{node}' + + wrappers: + - build-timeout: + timeout: 65 + - timestamps + + builders: + - link-logs + - net-info + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TIMEOUT=60 + export BRANCH_OVERRIDE={branch-override} + export DEVSTACK_PROJECT_FROM_GIT=python-ceilometerclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook {{ + # Configure and run functional tests + $BASE/new/python-ceilometerclient/ceilometerclient/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 diff --git a/jenkins/jobs/projects.yaml b/jenkins/jobs/projects.yaml index 4b46162c3b..42c1b7ee85 100755 --- a/jenkins/jobs/projects.yaml +++ b/jenkins/jobs/projects.yaml @@ -700,6 +700,11 @@ - pypi-jobs - 'stable-compat-jobs-{name}' - 'lib-forward-testing-{name}' + - '{pipeline}-ceilometerclient-dsvm-functional{branch-designator}': + pipeline: check + node: 'devstack-precise || devstack-trusty' + branch-designator: '' + branch-override: default - project: diff --git a/zuul/layout.yaml b/zuul/layout.yaml index a295e08af8..04927f7c1f 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -951,6 +951,8 @@ jobs: branch: ^(?!stable/(icehouse|juno)).*$ - name: gate-ceilometer-python34 branch: ^master$ + - name: ^(gate|check)-ceilometerclient-dsvm-functional$ + voting: false - name: gate-nova-pip-missing-reqs voting: false - name: gate-nova-tox-functional @@ -1774,6 +1776,8 @@ projects: - name: lib-forward-testing post: - python-ceilometerclient-coverage + experimental: + - check-ceilometerclient-dsvm-functional - name: openstack/python-cinderclient template: