summaryrefslogtreecommitdiff
path: root/tests/fixtures/config/requirements
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@gmail.com>2016-11-23 14:27:18 +1100
committerJamie Lennox <jamielennox@gmail.com>2016-11-29 16:04:08 +1100
commitb59a73f6e97e5af2e84a142b228b895b897e0399 (patch)
treea226fcae26b2ca231345a836ddc5bd8541bc72e0 /tests/fixtures/config/requirements
parent878ea836902fc5e2658caf1d945d9d0de707b687 (diff)
downloadzuul-b59a73f6e97e5af2e84a142b228b895b897e0399.tar.gz
Re-enable requirement-newer-than tests
Re-enable the requirement-newer-than layout tests that ensure a specific user within a specific time approved a request. Change-Id: I8ae870257db06e3e9958e151bcf4791c87f4ec71
Diffstat (limited to 'tests/fixtures/config/requirements')
-rw-r--r--tests/fixtures/config/requirements/newer-than/git/common-config/zuul.yaml54
-rw-r--r--tests/fixtures/config/requirements/newer-than/git/org_project1/README1
-rw-r--r--tests/fixtures/config/requirements/newer-than/git/org_project2/README1
-rw-r--r--tests/fixtures/config/requirements/newer-than/main.yaml6
4 files changed, 62 insertions, 0 deletions
diff --git a/tests/fixtures/config/requirements/newer-than/git/common-config/zuul.yaml b/tests/fixtures/config/requirements/newer-than/git/common-config/zuul.yaml
new file mode 100644
index 000000000..cd76afd5b
--- /dev/null
+++ b/tests/fixtures/config/requirements/newer-than/git/common-config/zuul.yaml
@@ -0,0 +1,54 @@
+- pipeline:
+ name: pipeline
+ manager: independent
+ source:
+ gerrit
+ trigger:
+ gerrit:
+ - event: comment-added
+ success:
+ gerrit:
+ verified: 1
+ failure:
+ gerrit:
+ verified: -1
+ require:
+ approval:
+ - username: jenkins
+ newer-than: 48h
+
+- pipeline:
+ name: trigger
+ manager: independent
+ source:
+ gerrit
+ trigger:
+ gerrit:
+ - event: comment-added
+ require-approval:
+ - username: jenkins
+ newer-than: 48h
+ 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/newer-than/git/org_project1/README b/tests/fixtures/config/requirements/newer-than/git/org_project1/README
new file mode 100644
index 000000000..9daeafb98
--- /dev/null
+++ b/tests/fixtures/config/requirements/newer-than/git/org_project1/README
@@ -0,0 +1 @@
+test
diff --git a/tests/fixtures/config/requirements/newer-than/git/org_project2/README b/tests/fixtures/config/requirements/newer-than/git/org_project2/README
new file mode 100644
index 000000000..9daeafb98
--- /dev/null
+++ b/tests/fixtures/config/requirements/newer-than/git/org_project2/README
@@ -0,0 +1 @@
+test
diff --git a/tests/fixtures/config/requirements/newer-than/main.yaml b/tests/fixtures/config/requirements/newer-than/main.yaml
new file mode 100644
index 000000000..a22ed5c60
--- /dev/null
+++ b/tests/fixtures/config/requirements/newer-than/main.yaml
@@ -0,0 +1,6 @@
+- tenant:
+ name: tenant-one
+ source:
+ gerrit:
+ config-repos:
+ - common-config