From 229a7517380f10d969b50fc0a17ea2ad6ea9fffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Varl=C4=B1?= Date: Tue, 26 Nov 2024 15:54:57 +0000 Subject: [PATCH] Add comment to consistency test on `MountpointPodNameFor` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Burak Varlı --- pkg/podmounter/mppod/mppod_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/podmounter/mppod/mppod_test.go b/pkg/podmounter/mppod/mppod_test.go index 0c686918..f24a5d7b 100644 --- a/pkg/podmounter/mppod/mppod_test.go +++ b/pkg/podmounter/mppod/mppod_test.go @@ -21,6 +21,7 @@ func TestGeneratingMountpointPodName(t *testing.T) { Spec: corev1.PersistentVolumeClaimSpec{VolumeName: "test-vol"}, } + // Ensure `MountpointPodNameFor` returns a consistent output for the same Pod and PVC. assert.Equals(t, mppod.MountpointPodNameFor(string(pod.UID), pvc.Spec.VolumeName), mppod.MountpointPodNameFor(string(pod.UID), pvc.Spec.VolumeName))