mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fixing missing attribute issue in test_stopped_vm.py
This commit is contained in:
parent
0b6996bef6
commit
291b3ceea5
@ -528,7 +528,7 @@ class TestDeployVM(cloudstackTestCase):
|
|||||||
startvm=False,
|
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.assertEqual(response[0], PASS, response[1])
|
||||||
|
|
||||||
self.debug("Deploying instance in the account: %s" %
|
self.debug("Deploying instance in the account: %s" %
|
||||||
@ -974,7 +974,7 @@ class TestRouterStateAfterDeploy(cloudstackTestCase):
|
|||||||
startvm=False
|
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.assertEqual(response[0], PASS, response[1])
|
||||||
self.debug("Checking the router state after VM deployment")
|
self.debug("Checking the router state after VM deployment")
|
||||||
routers = Router.list(
|
routers = Router.list(
|
||||||
@ -1001,7 +1001,7 @@ class TestRouterStateAfterDeploy(cloudstackTestCase):
|
|||||||
startvm=True
|
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.assertEqual(response[0], PASS, response[1])
|
||||||
self.debug("Checking the router state after VM deployment")
|
self.debug("Checking the router state after VM deployment")
|
||||||
routers = Router.list(
|
routers = Router.list(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user