policy: update test expectations for merged filter rules
Update test expectations across policy tests to expect merged FilterRule entries instead of separate ones. Tests now expect: - Single FilterRule with combined DstPorts for same source - Reduced matcher counts for exit node tests Updates #3036
This commit is contained in:
parent
0b1727c337
commit
29aa08df0e
3 changed files with 55 additions and 384 deletions
|
|
@ -895,7 +895,7 @@ func TestReduceNodesFromPolicy(t *testing.T) {
|
|||
n(2, "100.64.0.2", "server", "server"),
|
||||
n(3, "100.64.0.3", "exit", "server", "0.0.0.0/0", "::/0"),
|
||||
},
|
||||
wantMatchers: 2,
|
||||
wantMatchers: 1,
|
||||
},
|
||||
{
|
||||
name: "2788-exit-node-0000-route",
|
||||
|
|
@ -938,7 +938,7 @@ func TestReduceNodesFromPolicy(t *testing.T) {
|
|||
n(2, "100.64.0.2", "server", "server"),
|
||||
n(3, "100.64.0.3", "exit", "server", "0.0.0.0/0", "::/0"),
|
||||
},
|
||||
wantMatchers: 2,
|
||||
wantMatchers: 1,
|
||||
},
|
||||
{
|
||||
name: "2788-exit-node-::0-route",
|
||||
|
|
@ -981,7 +981,7 @@ func TestReduceNodesFromPolicy(t *testing.T) {
|
|||
n(2, "100.64.0.2", "server", "server"),
|
||||
n(3, "100.64.0.3", "exit", "server", "0.0.0.0/0", "::/0"),
|
||||
},
|
||||
wantMatchers: 2,
|
||||
wantMatchers: 1,
|
||||
},
|
||||
{
|
||||
name: "2784-split-exit-node-access",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue