From 2598300f666c95653b233383e20ab09e4349529b Mon Sep 17 00:00:00 2001 From: Riya Singhal Date: Mon, 6 Nov 2023 11:57:03 +0530 Subject: [PATCH] cephfs: add test case for ipv6 address Signed-off-by: Riya Singhal --- internal/csi-addons/networkfence/fencing_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/csi-addons/networkfence/fencing_test.go b/internal/csi-addons/networkfence/fencing_test.go index bbe82120d07..40242cf7907 100644 --- a/internal/csi-addons/networkfence/fencing_test.go +++ b/internal/csi-addons/networkfence/fencing_test.go @@ -68,6 +68,11 @@ func TestFetchIP(t *testing.T) { expectedIP: "172.21.9.34", expectedErr: false, }, + { + clientInfo: "client.4305 2001:0db8:85a3:0000:0000:8a2e:0370:7334:0/422650892", + expectedIP: "2001:db8:85a3::8a2e:370:7334", + expectedErr: false, + }, { clientInfo: "", expectedIP: "",