Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/173831
Change subject: (WIP) test Zuul gate configuration (WIP)
......................................................................
(WIP) test Zuul gate configuration (WIP)
Zuul tests to:
* verifiy there is no non voting job in the gate-and-submit pipeline
* all projects have a gate-and-submit entry (FIXME: if there is only non
voting jobs in the test pipeline, the gate can be missing.
Change-Id: Idcbe01988e54581b3c70a3159547fc51734968e9
---
M tests/test_zuul_layout.py
1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/integration/config
refs/changes/31/173831/1
diff --git a/tests/test_zuul_layout.py b/tests/test_zuul_layout.py
index 972dd9d..5623214 100644
--- a/tests/test_zuul_layout.py
+++ b/tests/test_zuul_layout.py
@@ -102,6 +102,21 @@
# Tests
+ def test_only_voting_jobs_in_gate(self):
+ gate = self.getPipeline('gate-and-submit')
+ non_voting = list()
+ for gated_project in gate.getProjects():
+ for job in gate.getJobTree(gated_project).getJobs():
+ if not job.voting:
+ non_voting.append(job.name)
+ self.assertListEqual([], non_voting)
+
+ def test_projects_have_gate_and_submit_pipeline(self):
+ self.maxDiff = None
+ all_projects = self.getProjectsNames()
+ gates = self.getPipelineProjectsNames('gate-and-submit')
+ self.assertListEqual(gates, all_projects)
+
def test_mw_repos_have_composer_validate_job(self):
mw_repos = (
'^mediawiki/core$',
--
To view, visit https://gerrit.wikimedia.org/r/173831
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idcbe01988e54581b3c70a3159547fc51734968e9
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits