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:
|
||||
nat_rule.delete(self.apiclient)
|
||||
list_nat_rule_response = list_nat_rules(
|
||||
self.apiclient,
|
||||
id=nat_rule.id
|
||||
)
|
||||
except CloudstackAPIException:
|
||||
self.fail("Nat Rule Deletion or Listing Failed")
|
||||
except Exception as e:
|
||||
self.fail("NAT Rule Deletion Failed: %s" % e)
|
||||
|
||||
# NAT rule listing should fail as the nat rule does not exist
|
||||
with self.assertRaises(Exception):
|
||||
list_nat_rules(self.apiclient,
|
||||
id=nat_rule.id)
|
||||
|
||||
# Check if the Public SSH port is inaccessible
|
||||
with self.assertRaises(Exception):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user