This commit is contained in:
Viktor Liu
2025-07-02 19:34:36 +02:00
parent 6ed846ae29
commit f56075ca15
9 changed files with 309 additions and 96 deletions
+2 -5
View File
@@ -660,7 +660,7 @@ func TestDefaultManagerSquashRulesWithPortRestrictions(t *testing.T) {
}
manager := &DefaultManager{}
rules, _ := manager.squashAcceptRules(networkMap)
rules := manager.squashAcceptRules(networkMap)
assert.Equal(t, tt.expectedCount, len(rules), tt.description)
@@ -818,9 +818,6 @@ func TestDefaultManagerEnableSSHRules(t *testing.T) {
acl.ApplyFiltering(networkMap, false)
expectedRules := 3
if fw.IsStateful() {
expectedRules = 3 // 2 inbound rules + SSH rule
}
expectedRules := 2
assert.Equal(t, expectedRules, len(acl.peerRulesPairs))
}