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