Fixing missing attribute issue in test_stopped_vm.py

This commit is contained in:
Gaurav Aradhye 2014-07-30 18:54:09 +05:30 committed by Girish Shilamkar
parent 0b6996bef6
commit 291b3ceea5

View File

@ -528,7 +528,7 @@ class TestDeployVM(cloudstackTestCase):
startvm=False,
)
response = self.virtual_machine.getState(self.apiclient, VirtualMachine.STOPPED)
response = self.virtual_machine_1.getState(self.apiclient, VirtualMachine.STOPPED)
self.assertEqual(response[0], PASS, response[1])
self.debug("Deploying instance in the account: %s" %
@ -974,7 +974,7 @@ class TestRouterStateAfterDeploy(cloudstackTestCase):
startvm=False
)
response = self.virtual_machine.getState(self.apiclient, VirtualMachine.STOPPED)
response = self.virtual_machine_1.getState(self.apiclient, VirtualMachine.STOPPED)
self.assertEqual(response[0], PASS, response[1])
self.debug("Checking the router state after VM deployment")
routers = Router.list(
@ -1001,7 +1001,7 @@ class TestRouterStateAfterDeploy(cloudstackTestCase):
startvm=True
)
response = self.virtual_machine.getState(self.apiclient, VirtualMachine.RUNNING)
response = self.virtual_machine_2.getState(self.apiclient, VirtualMachine.RUNNING)
self.assertEqual(response[0], PASS, response[1])
self.debug("Checking the router state after VM deployment")
routers = Router.list(