diff options
author | Tristan Cacqueray <tdecacqu@redhat.com> | 2019-02-19 03:11:47 +0000 |
---|---|---|
committer | Tristan Cacqueray <tdecacqu@redhat.com> | 2019-04-19 00:55:36 +0000 |
commit | 080a6662d4460d30054208195d3645efc6460cd4 (patch) | |
tree | 7217757de55a89c99c52a7eecbd798216ce4429b /tests/unit/test_web.py | |
parent | dc9347c1223e3c7eb0399889d03c5de9e854a836 (diff) | |
download | zuul-080a6662d4460d30054208195d3645efc6460cd4.tar.gz |
web: add triggers information to pipeline list
This change adds trigger name and connection name to the pipeline
list. This can be used by web interface to adjust the display of
project's configuration based on triggers presence.
Change-Id: I9a52ec8ccf08b44c5254f12f3ee1ee6708d66118
Diffstat (limited to 'tests/unit/test_web.py')
-rw-r--r-- | tests/unit/test_web.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/unit/test_web.py b/tests/unit/test_web.py index 19ec83a07..e054ae028 100644 --- a/tests/unit/test_web.py +++ b/tests/unit/test_web.py @@ -480,10 +480,13 @@ class TestWeb(BaseTestWeb): # can we fetch the list of pipelines data = self.get_url('api/tenant/tenant-one/pipelines').json() + gerrit_trigger = {'name': 'gerrit', 'driver': 'gerrit'} + timer_trigger = {'name': 'timer', 'driver': 'timer'} expected_list = [ - {'name': 'check'}, - {'name': 'gate'}, - {'name': 'post'}, + {'name': 'check', 'triggers': [gerrit_trigger]}, + {'name': 'gate', 'triggers': [gerrit_trigger]}, + {'name': 'post', 'triggers': [gerrit_trigger]}, + {'name': 'periodic', 'triggers': [timer_trigger]}, ] self.assertEqual(expected_list, data) |