summaryrefslogtreecommitdiff
path: root/tests/unit/test_web.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-05-16 21:19:31 +0000
committerGerrit Code Review <review@openstack.org>2019-05-16 21:19:31 +0000
commitf0b569ea7b3da30f4492249723ab51d514fdaaea (patch)
tree0a6023d50618c0ed6d3182857d9a436c11cf313a /tests/unit/test_web.py
parent2a53810318c6c944e79e80a342b7408090fc9c10 (diff)
parenta468918525ca7f82638d37059a5f5568ec3e5bbd (diff)
downloadzuul-f0b569ea7b3da30f4492249723ab51d514fdaaea.tar.gz
Merge "Fix dequeue ref not handling the project name"
Diffstat (limited to 'tests/unit/test_web.py')
-rw-r--r--tests/unit/test_web.py37
1 files changed, 36 insertions, 1 deletions
diff --git a/tests/unit/test_web.py b/tests/unit/test_web.py
index 64a8b6fb7..500ef262a 100644
--- a/tests/unit/test_web.py
+++ b/tests/unit/test_web.py
@@ -655,7 +655,42 @@ class TestWeb(BaseTestWeb):
'name': 'gate',
'queue_name': 'integrated',
'jobs': jobs,
- }]
+ }, {'name': 'post',
+ 'queue_name': None,
+ 'jobs': [[
+ {'abstract': False,
+ 'ansible_version': None,
+ 'attempts': 3,
+ 'branches': [],
+ 'dependencies': [],
+ 'description': None,
+ 'files': [],
+ 'final': False,
+ 'implied_branch': None,
+ 'irrelevant_files': [],
+ 'name': 'project-post',
+ 'parent': 'base',
+ 'post_review': None,
+ 'post_run': [],
+ 'pre_run': [],
+ 'protected': None,
+ 'provides': [],
+ 'required_projects': [],
+ 'requires': [],
+ 'roles': [],
+ 'run': [],
+ 'semaphore': None,
+ 'source_context': {'branch': 'master',
+ 'path': 'zuul.yaml',
+ 'project': 'common-config'},
+ 'tags': [],
+ 'timeout': None,
+ 'variables': {},
+ 'variant_description': '',
+ 'voting': True}
+ ]],
+ }
+ ]
}]
}, data)