Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/ddc/alluxio/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading