CLOUDSTACK-6726: Fixing BVT test case test_network.py

This commit is contained in:
Gaurav Aradhye 2014-05-27 14:37:07 +05:30 committed by Girish Shilamkar
parent 26fa623ffd
commit 3e3dc73271

View File

@ -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):