diff options
Diffstat (limited to 'tests/fixtures')
7 files changed, 56 insertions, 0 deletions
diff --git a/tests/fixtures/config/post-playbook/git/common-config/playbooks/post.yaml b/tests/fixtures/config/post-playbook/git/common-config/playbooks/post.yaml new file mode 100644 index 000000000..40b3ca732 --- /dev/null +++ b/tests/fixtures/config/post-playbook/git/common-config/playbooks/post.yaml @@ -0,0 +1,13 @@ +- hosts: all + tasks: + - debug: var=waitpath + - file: + path: "{{zuul._test.test_root}}/{{zuul.build}}.post_start.flag" + state: touch + # Do not finish until test creates the flag file + - wait_for: + state: present + path: "{{waitpath}}" + - file: + path: "{{zuul._test.test_root}}/{{zuul.build}}.post_end.flag" + state: touch diff --git a/tests/fixtures/config/post-playbook/git/common-config/playbooks/pre.yaml b/tests/fixtures/config/post-playbook/git/common-config/playbooks/pre.yaml new file mode 100644 index 000000000..f679dceae --- /dev/null +++ b/tests/fixtures/config/post-playbook/git/common-config/playbooks/pre.yaml @@ -0,0 +1,2 @@ +- hosts: all + tasks: [] diff --git a/tests/fixtures/config/post-playbook/git/common-config/playbooks/python27.yaml b/tests/fixtures/config/post-playbook/git/common-config/playbooks/python27.yaml new file mode 100644 index 000000000..f679dceae --- /dev/null +++ b/tests/fixtures/config/post-playbook/git/common-config/playbooks/python27.yaml @@ -0,0 +1,2 @@ +- hosts: all + tasks: [] diff --git a/tests/fixtures/config/post-playbook/git/common-config/zuul.yaml b/tests/fixtures/config/post-playbook/git/common-config/zuul.yaml new file mode 100644 index 000000000..92a551557 --- /dev/null +++ b/tests/fixtures/config/post-playbook/git/common-config/zuul.yaml @@ -0,0 +1,24 @@ +- pipeline: + name: check + manager: independent + post-review: true + trigger: + gerrit: + - event: patchset-created + success: + gerrit: + Verified: 1 + failure: + gerrit: + Verified: -1 + +- job: + name: base + parent: null + +- job: + name: python27 + pre-run: playbooks/pre + post-run: playbooks/post + vars: + waitpath: '{{zuul._test.test_root}}/{{zuul.build}}/test_wait' diff --git a/tests/fixtures/config/post-playbook/git/org_project/.zuul.yaml b/tests/fixtures/config/post-playbook/git/org_project/.zuul.yaml new file mode 100644 index 000000000..89a567472 --- /dev/null +++ b/tests/fixtures/config/post-playbook/git/org_project/.zuul.yaml @@ -0,0 +1,5 @@ +- project: + name: org/project + check: + jobs: + - python27 diff --git a/tests/fixtures/config/post-playbook/git/org_project/README b/tests/fixtures/config/post-playbook/git/org_project/README new file mode 100644 index 000000000..9daeafb98 --- /dev/null +++ b/tests/fixtures/config/post-playbook/git/org_project/README @@ -0,0 +1 @@ +test diff --git a/tests/fixtures/config/post-playbook/main.yaml b/tests/fixtures/config/post-playbook/main.yaml new file mode 100644 index 000000000..60338795d --- /dev/null +++ b/tests/fixtures/config/post-playbook/main.yaml @@ -0,0 +1,9 @@ +- tenant: + name: tenant-one + source: + gerrit: + config-projects: + - common-config + untrusted-projects: + - org/project + |