We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26fa623 commit 3e3dc73Copy full SHA for 3e3dc73
1 file changed
test/integration/smoke/test_network.py
@@ -389,12 +389,13 @@ def test_01_port_fwd_on_src_nat(self):
389
390
try:
391
nat_rule.delete(self.apiclient)
392
- list_nat_rule_response = list_nat_rules(
393
- self.apiclient,
394
- id=nat_rule.id
395
- )
396
- except CloudstackAPIException:
397
- 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,
398
+ id=nat_rule.id)
399
400
# Check if the Public SSH port is inaccessible
401
with self.assertRaises(Exception):
0 commit comments