We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a89517 commit 7a5430dCopy full SHA for 7a5430d
1 file changed
pkg/ddc/juicefs/dataset_test.go
@@ -101,6 +101,11 @@ func TestUpdateCacheOfDataset(t *testing.T) {
101
}
102
103
104
+// TestUpdateDatasetStatus is a test function that verifies the behavior of the UpdateDatasetStatus method in the JuiceFSEngine.
105
+// It tests the function with different dataset phases (Bound, Failed, None) and ensures that the dataset status is updated correctly.
106
+// The function creates a fake client with test datasets and runtime objects, then calls UpdateDatasetStatus with each phase.
107
+// It checks if the dataset status matches the expected result after each update.
108
+// If any of the checks fail, the test will report an error.
109
func TestUpdateDatasetStatus(t *testing.T) {
110
testDatasetInputs := []*datav1alpha1.Dataset{
111
{
0 commit comments