@@ -76,6 +76,15 @@ class ReleaseHandoffTest(unittest.TestCase):
|
||||
self.assertEqual(queue.drain(), 'occupied')
|
||||
docker.assert_not_called()
|
||||
|
||||
def test_ready_demand_waits_for_owner_to_start_testing(self):
|
||||
record = {'id': 'task', 'typeId': '1b7f1bb1-72c2-4106-b305-85604cf6d7e2', 'url': 'https://example.test/task',
|
||||
'status': {'id': h.coordinator.WAIT_TEST}}
|
||||
plan = {'task': 'task', 'items': [{'task': 'task'}]}
|
||||
with patch.object(h.coordinator, 'task', return_value=record), patch.object(h.coordinator, 'add_comment'), \
|
||||
patch.object(h.coordinator.hfx, 'hifox') as cli:
|
||||
h.coordinator.publish_candidate(plan, dict(sha='a'*40, bundle='b'*64, url='https://example.test'), '1')
|
||||
cli.assert_not_called()
|
||||
|
||||
def test_owner_approval_is_bound_to_exact_preview_and_parent(self):
|
||||
with tempfile.TemporaryDirectory() as tmp, patch.object(h, 'DIRECTORY', Path(tmp)):
|
||||
saved = {'content': 'reviewed scope', 'comment': 'preview', 'plan': {'frozen': True}}
|
||||
|
||||
Reference in New Issue
Block a user