Skip to content

Commit ed4530a

Browse files
committed
<fix>[securitygroup]: update test to verify global limit instead of consecutive priority
Resolves: ZSTAC-79067 Change-Id: I88361b5f9bcf7ca6f0f9faccfa0f2e843d06e4cc
1 parent 617cb3e commit ed4530a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/src/test/groovy/org/zstack/test/integration/networkservice/provider/flat/securitygroup/AddSecurityGroupRuleOptimizedCase.groovy

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,16 +531,17 @@ class AddSecurityGroupRuleOptimizedCase extends SubCase {
531531
}
532532
}
533533

534-
SecurityGroupRuleAO rule_82 = new SecurityGroupRuleAO()
535-
rule_82.type = "Ingress"
536-
rule_82.protocol = "TCP"
537-
rule_82.dstPortRange = 82
534+
// ZSTAC-79067: non-consecutive priorities are now allowed, verify global limit instead
535+
SecurityGroupRuleAO rule_over_limit = new SecurityGroupRuleAO()
536+
rule_over_limit.type = "Ingress"
537+
rule_over_limit.protocol = "TCP"
538+
rule_over_limit.dstPortRange = 82
538539

539540
expect(AssertionError) {
540541
addSecurityGroupRule {
541542
securityGroupUuid = sg3.uuid
542-
rules = [rule_82]
543-
priority = 82
543+
rules = [rule_over_limit]
544+
priority = 101
544545
}
545546
}
546547
}

0 commit comments

Comments
 (0)