Re-enable test_crd_check_reconfiguration test
Change-Id: Id4ec8918df4f0fdcb38a64fd6d60649643b4c8fa
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py
index 5f91cc4..fb35d6c 100755
--- a/tests/test_scheduler.py
+++ b/tests/test_scheduler.py
@@ -4218,7 +4218,6 @@
self.assertIn('Build succeeded', A.messages[0])
self.assertIn('Build succeeded', B.messages[0])
- @skip("Disabled for early v3 development")
def _test_crd_check_reconfiguration(self, project1, project2):
"Test cross-repo dependencies re-enqueued in independent pipelines"
@@ -4237,8 +4236,9 @@
# Make sure the items still share a change queue, and the
# first one is not live.
- self.assertEqual(len(self.sched.layout.pipelines['check'].queues), 1)
- queue = self.sched.layout.pipelines['check'].queues[0]
+ tenant = self.sched.abide.tenants.get('tenant-one')
+ self.assertEqual(len(tenant.layout.pipelines['check'].queues), 1)
+ queue = tenant.layout.pipelines['check'].queues[0]
first_item = queue.queue[0]
for item in queue.queue:
self.assertEqual(item.queue, first_item.queue)
@@ -4255,9 +4255,8 @@
self.assertEqual(B.reported, 0)
self.assertEqual(self.history[0].changes, '2,1 1,1')
- self.assertEqual(len(self.sched.layout.pipelines['check'].queues), 0)
+ self.assertEqual(len(tenant.layout.pipelines['check'].queues), 0)
- @skip("Disabled for early v3 development")
def test_crd_check_reconfiguration(self):
self._test_crd_check_reconfiguration('org/project1', 'org/project2')