Skip to content

Commit

Permalink
fix(kube_pod_tolerations): test duplicate toleration
Browse files Browse the repository at this point in the history
  • Loading branch information
RiRa12621 committed Nov 21, 2024
1 parent 170bbd4 commit 20f3023
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/store/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2114,6 +2114,12 @@ func TestPodStore(t *testing.T) {
Operator: v1.TolerationOpEqual,
Value: "value3",
},
{
// Duplicate toleration, to ensure that doesn't result in a duplicate metric
Key: "key3",
Operator: v1.TolerationOpEqual,
Value: "value3",
},
{
// an empty toleration to ensure that an empty toleration does not result in a metric
},
Expand Down

0 comments on commit 20f3023

Please sign in to comment.