Added new experimental job for trove functional tests

Added a new experimental job to run trove functional tests.
This is needed so that we can retire rdjenkins tests that we
currently run using for trove using third party infrastructure.

Change-Id: Icdc857c3e73d33d6dde638edb400d0321a1c436d
This commit is contained in:
Nikhil Manchanda 2014-06-06 13:56:03 -07:00
parent 97ba12b8a4
commit 4901723491
4 changed files with 75 additions and 27 deletions

View File

@ -1142,6 +1142,10 @@
- openstack-publish-jobs
- translation-jobs
- openstack-doc-jobs
- 'gate-trove-functional-dsvm-{datastore}':
datastore: 'mysql'
- 'gate-trove-functional-dsvm-{datastore}':
datastore: 'mongodb'
- '{name}-tox-doc-{envlist}':
envlist: publishdocs

View File

@ -1,27 +0,0 @@
- job:
name: 'gate-trove-buildimage-mysql'
node: 'bare-precise'
builders:
- link-logs
- net-info
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
sudo mkdir -p /opt/trove-image-build
sudo chown $(whoami) /opt/trove-image-build
export DEST=/opt/trove-image-build
export KEY_DIR=`pwd`/scripts/files/keys
cd scripts
./redstack build-image mysql
mv $HOME/images/ubuntu_mysql/ubuntu_mysql.qcow2 $WORKSPACE/ubuntu_mysql.qcow2
publishers:
- scp:
site: 'tarballs.openstack.org'
files:
- source: 'ubuntu_mysql.qcow2'
target: 'tarballs/trove/images/ubuntu_mysql.qcow2'
keep-hierarchy: false
copy-after-failure: false
- console-log

View File

@ -0,0 +1,64 @@
- job:
name: 'gate-trove-buildimage-mysql'
node: 'bare-precise'
builders:
- link-logs
- net-info
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
sudo mkdir -p /opt/trove-image-build
sudo chown $(whoami) /opt/trove-image-build
export DEST=/opt/trove-image-build
export KEY_DIR=`pwd`/scripts/files/keys
cd scripts
./redstack build-image mysql
mv $HOME/images/ubuntu_mysql/ubuntu_mysql.qcow2 $WORKSPACE/ubuntu_mysql.qcow2
publishers:
- scp:
site: 'tarballs.openstack.org'
files:
- source: 'ubuntu_mysql.qcow2'
target: 'tarballs/trove/images/ubuntu_mysql.qcow2'
keep-hierarchy: false
copy-after-failure: false
- console-log
- job-template:
name: 'gate-trove-functional-dsvm-{datastore}'
node: 'devstack-precise'
wrappers:
- timeout:
timeout: 85
fail: true
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=80
export ENABLED_SERVICES=s-proxy,s-object,s-container,s-account,trove,tr-api,tr-tmgr,tr-cond
export PROJECTS="openstack/trove-integration openstack/diskimage-builder openstack/tripleo-image-elements $PROJECTS"
function post_test_hook {{
export BRIDGE_IP=10.1.0.1
cd /opt/stack/new/trove-integration/scripts
./redstack kick-start {datastore}
./redstack int-tests
}}
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

@ -626,6 +626,10 @@ jobs:
voting: false
- name: gate-trove-buildimage-mysql
voting: false
- name: gate-trove-functional-dsvm-mysql
voting: false
- name: gate-trove-functional-dsvm-mongodb
voting: false
# puppet-openstack targets
- name: gate-puppet-vswitch-puppet-lint
voting: false
@ -1188,6 +1192,9 @@ projects:
- trove-merge-release-tags
periodic:
- trove-propose-translation-update
experimental:
- gate-trove-functional-dsvm-mysql
- gate-trove-functional-dsvm-mongodb
- name: openstack/tuskar
template: