Skip to content

Commit fb35274

Browse files
author
junyu hou
committed
add comment for TestGetDaemonset in utils_test.go
Signed-off-by: junyu hou <221220151@smail.nju.edu.cn>
1 parent dabe1ed commit fb35274

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/ddc/alluxio/utils_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,10 @@ func TestGetMasterStatefulset(t *testing.T) {
622622
}
623623
}
624624

625+
// TestGetDaemonset is a unit test for the AlluxioEngine.getDaemonset method.
626+
// It uses a fake Kubernetes client to simulate an AlluxioRuntime and a corresponding DaemonSet object,
627+
// verifying whether getDaemonset correctly retrieves the expected DaemonSet based on the provided name and namespace.
628+
// The test checks both the returned object and error status to ensure functional correctness and robustness.
625629
func TestGetDaemonset(t *testing.T) {
626630
type fields struct {
627631
runtime *datav1alpha1.AlluxioRuntime

0 commit comments

Comments
 (0)