Skip to content

Commit

Permalink
chore: remove sensitive message of IP (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
wu8685 committed Sep 25, 2023
1 parent c600d0b commit f6ae06a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pkg/controllers/ruleset/processor/rules/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ func TestWebhookCase1(t *testing.T) {
<-finish
}()
targets := map[string]*corev1.Pod{
"test-pod-a": (&podTemplate{Name: "test-pod-a", Ip: "11.166.170.58"}).GetPod(),
"test-pod-b": (&podTemplate{Name: "test-pod-b", Ip: "11.166.170.59"}).GetPod(),
"test-pod-c": (&podTemplate{Name: "test-pod-c", Ip: "11.166.170.60"}).GetPod(),
"test-pod-a": (&podTemplate{Name: "test-pod-a", Ip: "1.1.1.58"}).GetPod(),
"test-pod-b": (&podTemplate{Name: "test-pod-b", Ip: "1.1.1.59"}).GetPod(),
"test-pod-c": (&podTemplate{Name: "test-pod-c", Ip: "1.1.1.60"}).GetPod(),
}
subjects := sets.NewString("test-pod-a", "test-pod-b")
g := gomega.NewGomegaWithT(t)
Expand All @@ -107,9 +107,9 @@ func TestWebhookCase2(t *testing.T) {
<-finish
}()
targets := map[string]*corev1.Pod{
"test-pod-a": (&podTemplate{Name: "test-pod-a", Ip: "11.166.170.58"}).GetPod(),
"test-pod-b": (&podTemplate{Name: "test-pod-b", Ip: "11.166.170.59"}).GetPod(),
"test-pod-c": (&podTemplate{Name: "test-pod-c", Ip: "11.166.170.60"}).GetPod(),
"test-pod-a": (&podTemplate{Name: "test-pod-a", Ip: "1.1.1.58"}).GetPod(),
"test-pod-b": (&podTemplate{Name: "test-pod-b", Ip: "1.1.1.59"}).GetPod(),
"test-pod-c": (&podTemplate{Name: "test-pod-c", Ip: "1.1.1.60"}).GetPod(),
}
subjects := sets.NewString("test-pod-a")
g := gomega.NewGomegaWithT(t)
Expand All @@ -130,9 +130,9 @@ func TestWebhookCase3(t *testing.T) {
<-finish
}()
targets := map[string]*corev1.Pod{
"test-pod-a": (&podTemplate{Name: "test-pod-a", Ip: "11.166.170.58"}).GetPod(),
"test-pod-b": (&podTemplate{Name: "test-pod-b", Ip: "11.166.170.59"}).GetPod(),
"test-pod-c": (&podTemplate{Name: "test-pod-c", Ip: "11.166.170.60"}).GetPod(),
"test-pod-a": (&podTemplate{Name: "test-pod-a", Ip: "1.1.1.58"}).GetPod(),
"test-pod-b": (&podTemplate{Name: "test-pod-b", Ip: "1.1.1.59"}).GetPod(),
"test-pod-c": (&podTemplate{Name: "test-pod-c", Ip: "1.1.1.60"}).GetPod(),
}
subjects := sets.NewString("test-pod-a", "test-pod-b", "test-pod-c")
g := gomega.NewGomegaWithT(t)
Expand Down

0 comments on commit f6ae06a

Please sign in to comment.