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