rajat29 | 0fc826d | 2017-11-21 00:06:00 +0530 | [diff] [blame^] | 1 | - hosts: primary |
| 2 | name: Autoconverted job legacy-tempest-dsvm-patrole-multinode-member from old job |
| 3 | gate-tempest-dsvm-patrole-multinode-member-ubuntu-xenial-nv |
| 4 | tasks: |
| 5 | |
| 6 | - name: Ensure legacy workspace directory |
| 7 | file: |
| 8 | path: '{{ ansible_user_dir }}/workspace' |
| 9 | state: directory |
| 10 | |
| 11 | - shell: |
| 12 | cmd: | |
| 13 | set -e |
| 14 | set -x |
| 15 | cat > clonemap.yaml << EOF |
| 16 | clonemap: |
| 17 | - name: openstack-infra/devstack-gate |
| 18 | dest: devstack-gate |
| 19 | EOF |
| 20 | /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ |
| 21 | git://git.openstack.org \ |
| 22 | openstack-infra/devstack-gate |
| 23 | executable: /bin/bash |
| 24 | chdir: '{{ ansible_user_dir }}/workspace' |
| 25 | environment: '{{ zuul | zuul_legacy_vars }}' |
| 26 | |
| 27 | - shell: |
| 28 | cmd: | |
| 29 | set -e |
| 30 | set -x |
| 31 | cat << 'EOF' >>"/tmp/dg-local.conf" |
| 32 | [[local|localrc]] |
| 33 | enable_plugin patrole git://git.openstack.org/openstack/patrole |
| 34 | TEMPEST_PLUGINS='/opt/stack/new/patrole' |
| 35 | # Needed by Patrole devstack plugin |
| 36 | RBAC_TEST_ROLE=member |
| 37 | EOF |
| 38 | executable: /bin/bash |
| 39 | chdir: '{{ ansible_user_dir }}/workspace' |
| 40 | environment: '{{ zuul | zuul_legacy_vars }}' |
| 41 | |
| 42 | - shell: |
| 43 | cmd: | |
| 44 | set -e |
| 45 | set -x |
| 46 | export PYTHONUNBUFFERED=true |
| 47 | # Ensure that tempest set up is executed, but do not automatically |
| 48 | # execute tempest tests; they are executed in post_test_hook. |
| 49 | export DEVSTACK_GATE_TEMPEST=1 |
| 50 | export DEVSTACK_GATE_NEUTRON=1 |
| 51 | export DEVSTACK_GATE_TOPOLOGY="multinode" |
| 52 | export DEVSTACK_GATE_TEMPEST_REGEX='(?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)' |
| 53 | export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 |
| 54 | export PROJECTS="openstack/patrole $PROJECTS" |
| 55 | export BRANCH_OVERRIDE=default |
| 56 | if [ "$BRANCH_OVERRIDE" != "default" ] ; then |
| 57 | export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE |
| 58 | fi |
| 59 | cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh |
| 60 | ./safe-devstack-vm-gate-wrap.sh |
| 61 | executable: /bin/bash |
| 62 | chdir: '{{ ansible_user_dir }}/workspace' |
| 63 | environment: '{{ zuul | zuul_legacy_vars }}' |