From fb35274b8079d679f84e938cd66253ea3f2ada08 Mon Sep 17 00:00:00 2001 From: junyu hou <221220151@smail.nju.edu.cn> Date: Fri, 30 May 2025 00:21:51 +0800 Subject: [PATCH] add comment for TestGetDaemonset in utils_test.go Signed-off-by: junyu hou <221220151@smail.nju.edu.cn> --- pkg/ddc/alluxio/utils_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/ddc/alluxio/utils_test.go b/pkg/ddc/alluxio/utils_test.go index 6136bc2644e..cc6af9b3e0b 100644 --- a/pkg/ddc/alluxio/utils_test.go +++ b/pkg/ddc/alluxio/utils_test.go @@ -622,6 +622,10 @@ func TestGetMasterStatefulset(t *testing.T) { } } +// TestGetDaemonset is a unit test for the AlluxioEngine.getDaemonset method. +// It uses a fake Kubernetes client to simulate an AlluxioRuntime and a corresponding DaemonSet object, +// verifying whether getDaemonset correctly retrieves the expected DaemonSet based on the provided name and namespace. +// The test checks both the returned object and error status to ensure functional correctness and robustness. func TestGetDaemonset(t *testing.T) { type fields struct { runtime *datav1alpha1.AlluxioRuntime