Skip to content

Commit

Permalink
Revert "datapath/linux/route: fix CI expectations for rule string for…
Browse files Browse the repository at this point in the history
…mat"

This reverts commit cbf09e7.

Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm committed Apr 1, 2023
1 parent 368ec8e commit 53fef54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/datapath/linux/route/route_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,36 +185,36 @@ func (p *RouteSuitePrivileged) TestRule_String(c *C) {
From: fakeIP,
To: fakeIP2,
},
wantStr: "0: from 10.10.10.10/32 to 1.1.1.1/32 lookup 0 proto unspec",
wantStr: "0: from 10.10.10.10/32 to 1.1.1.1/32 lookup 0",
},
{
name: "contains priority",
rule: Rule{
Priority: 1,
},
wantStr: "1: from all to all lookup 0 proto unspec",
wantStr: "1: from all to all lookup 0",
},
{
name: "contains table",
rule: Rule{
Table: 1,
},
wantStr: "0: from all to all lookup 1 proto unspec",
wantStr: "0: from all to all lookup 1",
},
{
name: "contains mark and mask",
rule: Rule{
Mark: 1,
Mask: 1,
},
wantStr: "0: from all to all lookup 0 mark 0x1 mask 0x1 proto unspec",
wantStr: "0: from all to all lookup 0 mark 0x1 mask 0x1",
},
{
name: "main table",
rule: Rule{
Table: unix.RT_TABLE_MAIN,
},
wantStr: "0: from all to all lookup main proto unspec",
wantStr: "0: from all to all lookup main",
},
}
for _, tt := range tests {
Expand Down

0 comments on commit 53fef54

Please sign in to comment.