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:
parent
81e8ea0735
commit
f63f9b3ef1
@ -51,6 +51,46 @@
|
|||||||
- devstack-logs
|
- devstack-logs
|
||||||
- console-log
|
- 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:
|
- job-template:
|
||||||
name: '{pipeline}-tempest-dsvm-full{branch-designator}'
|
name: '{pipeline}-tempest-dsvm-full{branch-designator}'
|
||||||
node: '{node}'
|
node: '{node}'
|
||||||
@ -1099,6 +1139,7 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- 'check-dg-tempest-dsvm-full'
|
- 'check-dg-tempest-dsvm-full'
|
||||||
- 'check-dg-tempest-dsvm-full-reexec'
|
- 'check-dg-tempest-dsvm-full-reexec'
|
||||||
|
- 'check-dg-hooks-dsvm'
|
||||||
|
|
||||||
|
|
||||||
- job-group:
|
- job-group:
|
||||||
|
@ -2728,6 +2728,7 @@ projects:
|
|||||||
- check-devstack-dsvm-cells
|
- check-devstack-dsvm-cells
|
||||||
- check-dg-tempest-dsvm-full
|
- check-dg-tempest-dsvm-full
|
||||||
- check-dg-tempest-dsvm-full-reexec
|
- check-dg-tempest-dsvm-full-reexec
|
||||||
|
- check-dg-hooks-dsvm
|
||||||
- check-tempest-dsvm-full
|
- check-tempest-dsvm-full
|
||||||
- check-tempest-dsvm-postgres-full
|
- check-tempest-dsvm-postgres-full
|
||||||
- check-tempest-dsvm-neutron
|
- check-tempest-dsvm-neutron
|
||||||
|
Loading…
x
Reference in New Issue
Block a user