move test_disable_at to simple_layout
Change-Id: Ie2ec2da4b4ad80ccede5c26f66a51b8b761ed724
diff --git a/tests/unit/test_scheduler.py b/tests/unit/test_scheduler.py
index a721887..7f7cc81 100755
--- a/tests/unit/test_scheduler.py
+++ b/tests/unit/test_scheduler.py
@@ -4428,13 +4428,11 @@
event.change_number = '2'
source.getChange(event, True)
+ @simple_layout('layouts/disable_at.yaml')
def test_disable_at(self):
"Test a pipeline will only report to the disabled trigger when failing"
- self.updateConfigLayout('layout-disabled-at')
- self.sched.reconfigure(self.config)
-
- tenant = self.sched.abide.tenants.get('openstack')
+ tenant = self.sched.abide.tenants.get('tenant-one')
self.assertEqual(3, tenant.layout.pipelines['check'].disable_at)
self.assertEqual(
0, tenant.layout.pipelines['check']._consecutive_failures)
@@ -4532,7 +4530,7 @@
# comes out of disabled
self.sched.reconfigure(self.config)
- tenant = self.sched.abide.tenants.get('openstack')
+ tenant = self.sched.abide.tenants.get('tenant-one')
self.assertEqual(3, tenant.layout.pipelines['check'].disable_at)
self.assertEqual(