Skip to content

Commit

Permalink
proxy/iptables: Improve the sorting logic in TestOverallIPTablesRules…
Browse files Browse the repository at this point in the history
…WithMultipleServices

The test was sorting the iptables output so as to not depend on the
order that services get processed in, but this meant it wasn't
checking the relative ordering of rules (and in fact, the ordering of
the rules in the "expected" string was wrong, in a way that would
break things if the rules had actually been generated in that order).

Add a more complicated sorting function that sorts services
alphabetically while preserving the ordering of rules within each
service.
  • Loading branch information
danwinship authored and Antonio Ojea committed Nov 12, 2021
1 parent 38c9923 commit 438fe5a
Showing 1 changed file with 414 additions and 10 deletions.

0 comments on commit 438fe5a

Please sign in to comment.