From 63a4dbb45009e294910a11c72110c9cbb75dfe88 Mon Sep 17 00:00:00 2001 From: Ilya Tyaptin Date: Tue, 19 May 2015 13:39:54 +0300 Subject: [PATCH] Add functional test job for ceilometer We have a functional tests for ceilometer and current patch adds the job to project-config to configure and these tests. Put it to experimental jobs to make sure of correct working. Change-Id: I2714a145bece0da86d3a50f313d74535fd2c8607 Partially implements: blueprint ceilometer-functional-tests --- jenkins/jobs/ceilometer.yaml | 35 +++++++++++++++++++++++++++++++++++ jenkins/jobs/projects.yaml | 6 ++++++ zuul/layout.yaml | 1 + 3 files changed, 42 insertions(+) diff --git a/jenkins/jobs/ceilometer.yaml b/jenkins/jobs/ceilometer.yaml index 4c41d73b20..9b1ac7aebf 100644 --- a/jenkins/jobs/ceilometer.yaml +++ b/jenkins/jobs/ceilometer.yaml @@ -60,6 +60,41 @@ - devstack-logs - console-log +- job-template: + name: '{pipeline}-ceilometer-dsvm-functional-{backend}{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=120 + export BRANCH_OVERRIDE={branch-override} + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook {{ + # Configure and run functional tests + $BASE/new/ceilometer/ceilometer/tests/functional/hooks/post_test_hook.sh "{backend}" + }} + 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 - job-template: name: '{pipeline}-ceilometerclient-dsvm-functional{branch-designator}' diff --git a/jenkins/jobs/projects.yaml b/jenkins/jobs/projects.yaml index 5a1c67bcbd..11c9ce0061 100755 --- a/jenkins/jobs/projects.yaml +++ b/jenkins/jobs/projects.yaml @@ -53,6 +53,12 @@ node: 'devstack-trusty' branch-designator: '' branch-override: default + - '{pipeline}-ceilometer-dsvm-functional-{backend}{branch-designator}': + pipeline: 'check' + backend: 'mongodb' + node: 'devstack-trusty' + branch-designator: '' + branch-override: default - project: name: ceilometer-specs diff --git a/zuul/layout.yaml b/zuul/layout.yaml index 65f6571ed5..9550250790 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -1465,6 +1465,7 @@ projects: - gate-grenade-dsvm-forward - gate-tempest-dsvm-ceilometer-es - gate-tempest-dsvm-ceilometer-es-full + - check-ceilometer-dsvm-functional-mongodb - name: openstack/ceilometer-specs template: