Merge pull request #1561 from sanju1010/startport

CLOUDSTACK-9388: Remove string conversion in assertion statementRemove string convertion in Assertion statement, since the start port parameter in listFirewallAPI response is of type integer

Test Result:
=========
"Checking firewall rules deletion after static NAT disable ... === TestName: test_01_firewall_rules_port_fw | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 1 test in 153.974s

OK

* pr/1561:
  CLOUDSTACK-9388: Remove string conversion in assertion statement

Signed-off-by: Will Stevens <williamstevens@gmail.com>
This commit is contained in:
Will Stevens 2016-05-26 15:53:01 -04:00
commit ecac28ba4e
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ class TestNATRules(cloudstackTestCase):
)
self.assertEqual(
firewall_response[0].startport,
str(self.services["firewall_rule"]["startport"]),
self.services["firewall_rule"]["startport"],
"Firewall rule is not with specific port"
)