mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6726: Fixing BVT test case test_network.py
This commit is contained in:
parent
26fa623ffd
commit
3e3dc73271
@ -389,12 +389,13 @@ class TestPortForwarding(cloudstackTestCase):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
nat_rule.delete(self.apiclient)
|
nat_rule.delete(self.apiclient)
|
||||||
list_nat_rule_response = list_nat_rules(
|
except Exception as e:
|
||||||
self.apiclient,
|
self.fail("NAT Rule Deletion Failed: %s" % e)
|
||||||
id=nat_rule.id
|
|
||||||
)
|
# NAT rule listing should fail as the nat rule does not exist
|
||||||
except CloudstackAPIException:
|
with self.assertRaises(Exception):
|
||||||
self.fail("Nat Rule Deletion or Listing Failed")
|
list_nat_rules(self.apiclient,
|
||||||
|
id=nat_rule.id)
|
||||||
|
|
||||||
# Check if the Public SSH port is inaccessible
|
# Check if the Public SSH port is inaccessible
|
||||||
with self.assertRaises(Exception):
|
with self.assertRaises(Exception):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user