Skip to content

Commit

Permalink
build: unit test was not compiling (see kubernetes-sigs#243)
Browse files Browse the repository at this point in the history
Signed-off-by: Hunter Gregory <[email protected]>
  • Loading branch information
huntergregory committed Aug 8, 2024
1 parent 88a9549 commit 90df795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/policy-assistant/pkg/matcher/simplifier_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func RunSimplifierTests() {
Priority: 5,
Verdict: Deny,
},
Name: "anp",
RuleName: "anp",
}
banpAllowAll := &PeerMatcherAdmin{
PodPeerMatcher: &PodPeerMatcher{
Expand All @@ -147,7 +147,7 @@ func RunSimplifierTests() {
PolicyKind: BaselineAdminNetworkPolicy,
Verdict: Allow,
},
Name: "banp",
RuleName: "banp",
}
Expect(Simplify([]PeerMatcher{all, allOnTCP80, ip, allPodsAllPorts, banpAllowAll, allPodsTCP103, anpDenyAll})).To(Equal([]PeerMatcher{banpAllowAll, anpDenyAll, all}))

Expand Down

0 comments on commit 90df795

Please sign in to comment.