Browse Source

Move project specific tests in repo

Change-Id: I4d08f6e30b542c1943a1c57f058d3695b082a8f0
Kenneth Giusti 1 year ago
parent
commit
c17e7e8703

+ 26
- 0
.zuul.yaml View File

@@ -0,0 +1,26 @@
1
+- job:
2
+    # TODO(kgiusti) this old test can be removed once ocata is no
3
+    # longer supported At that point we only need the -hybrid and
4
+    # -dual test cases
5
+    name: devstack-plugin-amqp1-tempest-dsvm-full
6
+    parent: legacy-dsvm-base
7
+    run: playbooks/devstack-plugin-amqp1-tempest-dsvm-full/run.yaml
8
+    post-run: playbooks/devstack-plugin-amqp1-tempest-dsvm-full/post.yaml
9
+    timeout: 10800
10
+    required-projects:
11
+      - openstack-infra/devstack-gate
12
+      - openstack/devstack-plugin-amqp1
13
+      - openstack/tempest
14
+
15
+- project:
16
+    name: openstack/devstack-plugin-amqp1
17
+    check:
18
+      jobs:
19
+        - devstack-plugin-amqp1-tempest-dsvm-full:
20
+            voting: false
21
+        - oslo.messaging-src-dsvm-full-amqp1-hybrid:
22
+            voting: false
23
+            branches: ^(?!stable/ocata).*$
24
+        - oslo.messaging-src-dsvm-full-amqp1-dual-centos-7:
25
+            voting: false
26
+            branches: ^(?!stable/ocata).*$

+ 15
- 0
playbooks/devstack-plugin-amqp1-tempest-dsvm-full/post.yaml View File

@@ -0,0 +1,15 @@
1
+- hosts: primary
2
+  tasks:
3
+
4
+    - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5
+      synchronize:
6
+        src: '{{ ansible_user_dir }}/workspace/'
7
+        dest: '{{ zuul.executor.log_root }}'
8
+        mode: pull
9
+        copy_links: true
10
+        verify_host: true
11
+        rsync_opts:
12
+          - --include=/logs/**
13
+          - --include=*/
14
+          - --exclude=*
15
+          - --prune-empty-dirs

+ 41
- 0
playbooks/devstack-plugin-amqp1-tempest-dsvm-full/run.yaml View File

@@ -0,0 +1,41 @@
1
+- hosts: all
2
+  name: Autoconverted job legacy-tempest-dsvm-full-amqp1 from old job gate-tempest-dsvm-full-amqp1-ubuntu-xenial-nv
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
+          export PYTHONUNBUFFERED=true
31
+          export DEVSTACK_GATE_TEMPEST=1
32
+          export DEVSTACK_GATE_TEMPEST_FULL=1
33
+
34
+          export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS"
35
+          export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1"
36
+
37
+          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
38
+          ./safe-devstack-vm-gate-wrap.sh
39
+        executable: /bin/bash
40
+        chdir: '{{ ansible_user_dir }}/workspace'
41
+      environment: '{{ zuul | zuul_legacy_vars }}'

Loading…
Cancel
Save