From 20f30233bdadffe070eced5e6445a7dfecf01fcd Mon Sep 17 00:00:00 2001 From: Rick Rackow Date: Thu, 21 Nov 2024 17:49:07 +0100 Subject: [PATCH] fix(kube_pod_tolerations): test duplicate toleration --- internal/store/pod_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/store/pod_test.go b/internal/store/pod_test.go index 8645e8707..3ba2875d0 100644 --- a/internal/store/pod_test.go +++ b/internal/store/pod_test.go @@ -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 },