summaryrefslogtreecommitdiff
path: root/tests/fixtures/config/openstack
diff options
context:
space:
mode:
authorK Jonathan Harker <Jonathan.Harker@ibm.com>2017-02-21 14:34:08 -0800
committerK Jonathan Harker <Jonathan.Harker@ibm.com>2017-02-23 17:27:24 -0800
commit2c1a62378af07dac675431388ba991e35438cb6d (patch)
treeda3c88c82a85d97ebcf292bf4ebe1e23a2663445 /tests/fixtures/config/openstack
parent447ecdb687c153d2b9ceafe534d78bae65acc1bc (diff)
downloadzuul-2c1a62378af07dac675431388ba991e35438cb6d.tar.gz
Add support for 'repos' job configuration
If a job configuration gives a list of repos, add them to the list of projects to update on the slave. Test using a mock openstack dsvm job which should clone both nova and keystone. Put this new mock job in the check pipeline rather than the gate pipeline to keep the build history small, and assert that both the launcher and the worker have cloned the project that did not trigger the job. Change-Id: I3ccf8713906d65cbd27929548499e81f798cea82
Diffstat (limited to 'tests/fixtures/config/openstack')
-rw-r--r--tests/fixtures/config/openstack/git/project-config/playbooks/dsvm.yaml2
-rw-r--r--tests/fixtures/config/openstack/git/project-config/zuul.yaml13
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/fixtures/config/openstack/git/project-config/playbooks/dsvm.yaml b/tests/fixtures/config/openstack/git/project-config/playbooks/dsvm.yaml
new file mode 100644
index 000000000..f679dceae
--- /dev/null
+++ b/tests/fixtures/config/openstack/git/project-config/playbooks/dsvm.yaml
@@ -0,0 +1,2 @@
+- hosts: all
+ tasks: []
diff --git a/tests/fixtures/config/openstack/git/project-config/zuul.yaml b/tests/fixtures/config/openstack/git/project-config/zuul.yaml
index 9c2231a5b..420d97946 100644
--- a/tests/fixtures/config/openstack/git/project-config/zuul.yaml
+++ b/tests/fixtures/config/openstack/git/project-config/zuul.yaml
@@ -71,12 +71,22 @@
- python27
- python35
+- job:
+ name: dsvm
+ parent: base
+ repos:
+ - openstack/keystone
+ - openstack/nova
+
# Project definitions
- project:
name: openstack/nova
templates:
- python-jobs
+ check:
+ jobs:
+ - dsvm
gate:
queue: integrated
@@ -84,5 +94,8 @@
name: openstack/keystone
templates:
- python-jobs
+ check:
+ jobs:
+ - dsvm
gate:
queue: integrated