Merge "Add assertion to test_create_security_group_rule_with_invalid_ports"

This commit is contained in:
Jenkins 2016-05-30 16:42:26 +00:00 committed by Gerrit Code Review
commit df6c026ec3

View File

@ -153,6 +153,7 @@ class NegativeSecGroupTest(base.BaseSecGroupTest):
# Create rule for icmp protocol with invalid ports
states = [(1, 256, 'Invalid value for ICMP code'),
(-1, 25, 'Invalid value'),
(None, 6, 'ICMP type (port-range-min) is missing'),
(300, 1, 'Invalid value for ICMP type')]
for pmin, pmax, msg in states: