add job for testing that hooks work

this is a simple job that just tests all the hook points. It
should be fast. This is one of the places where we don't test
as part of a normal d-g job, so we should ensure we don't break it.

Change-Id: Ieea3ffd285f3f489df477413018b173b1e54e609
This commit is contained in:
Sean Dague 2014-03-03 18:39:06 -05:00
parent 81e8ea0735
commit f63f9b3ef1
2 changed files with 42 additions and 0 deletions

View File

@ -51,6 +51,46 @@
- devstack-logs
- console-log
- job-template:
name: 'check-dg-hooks-dsvm'
node: '{node}'
wrappers:
- timeout:
timeout: 60
fail: true
- timestamps
builders:
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
# place calls for all hooks in here
function pre_test_hook {{
echo "I'm totally an awesome pre_test_hook"
}}
export -f pre_test_hook
function gate_hook {{
echo "I'm totally an awesome gate_hook"
}}
export -f gate_hook
function post_test_hook {{
echo "I'm totally an awesome post_test_hook"
}}
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
- link-logs
publishers:
- devstack-logs
- console-log
- job-template:
name: '{pipeline}-tempest-dsvm-full{branch-designator}'
node: '{node}'
@ -1099,6 +1139,7 @@
jobs:
- 'check-dg-tempest-dsvm-full'
- 'check-dg-tempest-dsvm-full-reexec'
- 'check-dg-hooks-dsvm'
- job-group:

View File

@ -2728,6 +2728,7 @@ projects:
- check-devstack-dsvm-cells
- check-dg-tempest-dsvm-full
- check-dg-tempest-dsvm-full-reexec
- check-dg-hooks-dsvm
- check-tempest-dsvm-full
- check-tempest-dsvm-postgres-full
- check-tempest-dsvm-neutron