summaryrefslogtreecommitdiff
path: root/tests/fixtures/config/requirements
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@gmail.com>2016-11-23 14:36:12 +1100
committerJamie Lennox <jamielennox@gmail.com>2016-11-29 16:21:18 +1100
commitdb3b4e0dbf690cb8bf1c437d61c772ca842d8678 (patch)
tree5a12a298c85663955bc5ede86832059ba5b908e5 /tests/fixtures/config/requirements
parent8faa71e1e4f80c3e5b7d07a0b6f4642b866b0bed (diff)
downloadzuul-db3b4e0dbf690cb8bf1c437d61c772ca842d8678.tar.gz
Re-enable requirement-username tests
Re-enable the requirement-username layout tests that ensure a specific user or regex approved a test. Change-Id: Idbe86bbb79977c3678c82c7e38f4dfe74b746088
Diffstat (limited to 'tests/fixtures/config/requirements')
-rw-r--r--tests/fixtures/config/requirements/username/git/common-config/zuul.yaml52
-rw-r--r--tests/fixtures/config/requirements/username/git/org_project1/README1
-rw-r--r--tests/fixtures/config/requirements/username/git/org_project2/README1
-rw-r--r--tests/fixtures/config/requirements/username/main.yaml6
4 files changed, 60 insertions, 0 deletions
diff --git a/tests/fixtures/config/requirements/username/git/common-config/zuul.yaml b/tests/fixtures/config/requirements/username/git/common-config/zuul.yaml
new file mode 100644
index 000000000..ca2ff9792
--- /dev/null
+++ b/tests/fixtures/config/requirements/username/git/common-config/zuul.yaml
@@ -0,0 +1,52 @@
+- pipeline:
+ name: pipeline
+ manager: independent
+ source:
+ gerrit
+ trigger:
+ gerrit:
+ - event: comment-added
+ success:
+ gerrit:
+ verified: 1
+ failure:
+ gerrit:
+ verified: -1
+ require:
+ approval:
+ - username: ^(jenkins|zuul)$
+
+- pipeline:
+ name: trigger
+ manager: independent
+ source:
+ gerrit
+ trigger:
+ gerrit:
+ - event: comment-added
+ require-approval:
+ - username: jenkins
+ success:
+ gerrit:
+ verified: 1
+ failure:
+ gerrit:
+ verified: -1
+
+- job:
+ name: project1-job
+
+- job:
+ name: project2-job
+
+- project:
+ name: org/project1
+ pipeline:
+ jobs:
+ - project1-job
+
+- project:
+ name: org/project2
+ trigger:
+ jobs:
+ - project2-job
diff --git a/tests/fixtures/config/requirements/username/git/org_project1/README b/tests/fixtures/config/requirements/username/git/org_project1/README
new file mode 100644
index 000000000..9daeafb98
--- /dev/null
+++ b/tests/fixtures/config/requirements/username/git/org_project1/README
@@ -0,0 +1 @@
+test
diff --git a/tests/fixtures/config/requirements/username/git/org_project2/README b/tests/fixtures/config/requirements/username/git/org_project2/README
new file mode 100644
index 000000000..9daeafb98
--- /dev/null
+++ b/tests/fixtures/config/requirements/username/git/org_project2/README
@@ -0,0 +1 @@
+test
diff --git a/tests/fixtures/config/requirements/username/main.yaml b/tests/fixtures/config/requirements/username/main.yaml
new file mode 100644
index 000000000..a22ed5c60
--- /dev/null
+++ b/tests/fixtures/config/requirements/username/main.yaml
@@ -0,0 +1,6 @@
+- tenant:
+ name: tenant-one
+ source:
+ gerrit:
+ config-repos:
+ - common-config