From: Steven Hardy Date: Mon, 1 Jul 2013 10:27:26 +0000 (+0100) Subject: tests : remove duplicate suspend tests X-Git-Tag: 2014.1~400^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5432d07d43ac31abdf32c0bed8fbb15a64bf44e6;p=openstack-build%2Fheat-build.git tests : remove duplicate suspend tests A previous patch erroneously introduced two copies of the same tests, remove the stackServiceTest duplicates as they already exist in the stackServiceSuspendResumeTest testcase. Change-Id: Iec00fd8dbe0d0bc6b2718b03cc4fe40b9ba481c3 --- diff --git a/heat/tests/test_engine_service.py b/heat/tests/test_engine_service.py index 6a90b9c6..b524aed2 100644 --- a/heat/tests/test_engine_service.py +++ b/heat/tests/test_engine_service.py @@ -1228,32 +1228,3 @@ class stackServiceTest(HeatTestCase): sl = self.eng.show_stack(self.ctx, None) self.assertEqual(len(sl), 0) - - def test_stack_suspend(self): - stack_name = 'service_suspend_test_stack' - stack = get_wordpress_stack(stack_name, self.ctx) - sid = stack.store() - s = db_api.stack_get(self.ctx, sid) - - self.m.StubOutWithMock(parser.Stack, 'load') - parser.Stack.load(self.ctx, stack=s).AndReturn(stack) - - self.m.StubOutWithMock(service.EngineService, '_start_in_thread') - service.EngineService._start_in_thread(sid, - mox.IgnoreArg(), - stack).AndReturn(None) - self.m.ReplayAll() - - result = self.eng.stack_suspend(self.ctx, stack.identifier()) - self.assertEqual(result, None) - self.m.VerifyAll() - - def test_stack_suspend_nonexist(self): - stack_name = 'service_suspend_nonexist_test_stack' - stack = get_wordpress_stack(stack_name, self.ctx) - - self.m.ReplayAll() - - self.assertRaises(exception.StackNotFound, - self.eng.stack_suspend, self.ctx, stack.identifier()) - self.m.VerifyAll()