mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-7769 - Fixed test_ssvm.py script
This commit is contained in:
parent
97aa02ceb0
commit
b10f0a7990
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user