Gate job for senlinclient functional test

This patch adds a gate job for senlinclient functional
test.

Change-Id: Ia303eeff13828d398c5edd733c8b0e96a697099c
Depends-On: I7139a66f917771e6bf80eeb6d20461300ef0b52c
This commit is contained in:
Yanyan Hu 2017-02-21 14:58:15 +08:00
parent c1050cd071
commit 59f18889f7
3 changed files with 55 additions and 0 deletions

View File

@ -12699,6 +12699,11 @@
- openstack-releasenotes-jobs
- pypi-jobs
- translation-jobs
- '{pipeline}-senlinclient-dsvm-functional{suffix}':
pipeline: gate
node: ubuntu-xenial
suffix: '-nv'
branch-override: default
- project:
name: python-solumclient

View File

@ -67,3 +67,51 @@
- test-results
- devstack-logs
- console-log
- job-template:
name: '{pipeline}-senlinclient-dsvm-functional{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 KEEP_LOCALRC=1
export PROJECTS="openstack/senlin $PROJECTS"
export PROJECTS="openstack/python-senlinclient $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin senlin https://git.openstack.org/openstack/senlin"
export DEVSTACK_PROJECT_FROM_GIT=python-senlinclient
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng"
export SENLIN_BACKEND="openstack_test"
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function pre_test_hook {{
cd /opt/stack/new/python-senlinclient/senlinclient/tests/functional/
./pre_test_hook.sh
}}
export -f pre_test_hook
function post_test_hook {{
cd /opt/stack/new/python-senlinclient/senlinclient/tests/functional/
./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

View File

@ -16234,6 +16234,8 @@ projects:
- name: translation-jobs
- name: osc-plugin-jobs
- name: release-notes-jobs
experimental:
- gate-senlinclient-dsvm-functional-nv
- name: openstack/python-solumclient
template: