]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
tests : remove duplicate suspend tests
authorSteven Hardy <shardy@redhat.com>
Mon, 1 Jul 2013 10:27:26 +0000 (11:27 +0100)
committerSteven Hardy <shardy@redhat.com>
Mon, 1 Jul 2013 10:35:50 +0000 (11:35 +0100)
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

heat/tests/test_engine_service.py

index 6a90b9c67a157c5444029f58a9b703e37c201df4..b524aed25ae885a1c70b3dd6a5b11f0323d972c1 100644 (file)
@@ -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()