CLOUDSTACK-7769 - Fixed test_ssvm.py script

This commit is contained in:
Chandan Purushothama 2014-10-22 12:09:52 -07:00 committed by Sangeetha Hariharan
parent 97aa02ceb0
commit b10f0a7990

View File

@ -157,8 +157,16 @@ class TestSSVMs(cloudstackTestCase):
"Check list response returns a valid list"
)
iprange = ipranges_response[0]
self.assertEqual(
#Fetch corresponding Physical Network of SSVM's Zone
listphyntwk = PhysicalNetwork.list(
self.apiclient,
zoneid=ssvm.zoneid
)
# Execute the following assertion in all zones except EIP-ELB Zones
if not (self.zone.networktype.lower() == 'basic' and isinstance(NetScaler.list(self.apiclient,physicalnetworkid=listphyntwk[0].id), list) is True):
self.assertEqual(
ssvm.gateway,
iprange.gateway,
"Check gateway with that of corresponding ip range"
@ -274,7 +282,15 @@ class TestSSVMs(cloudstackTestCase):
)
iprange = ipranges_response[0]
self.assertEqual(
#Fetch corresponding Physical Network of SSVM's Zone
listphyntwk = PhysicalNetwork.list(
self.apiclient,
zoneid=cpvm.zoneid
)
# Execute the following assertion in all zones except EIP-ELB Zones
if not (self.zone.networktype.lower() == 'basic' and isinstance(NetScaler.list(self.apiclient,physicalnetworkid=listphyntwk[0].id), list) is True):
self.assertEqual(
cpvm.gateway,
iprange.gateway,
"Check gateway with that of corresponding ip range"