diff --git a/pkg/ddc/alluxio/metadata_test.go b/pkg/ddc/alluxio/metadata_test.go index d0eeabe7c14..2c489f5c892 100644 --- a/pkg/ddc/alluxio/metadata_test.go +++ b/pkg/ddc/alluxio/metadata_test.go @@ -215,6 +215,12 @@ func TestSyncMetadata(t *testing.T) { wrappedUnhookQueryMetaDataInfoIntoFile() } +// TestSyncMetadataWithoutMaster tests the SyncMetadata method of AlluxioEngine when no master node is available. +// It verifies that runtime phases (Master/Worker/Fuse) and dataset phase are correctly updated to NotReady/Failed states. +// Paramaters: +// - t (*testing.T): Go testing framework's test handler for reporting failures and logging +// Returns: +// - None (test assertions are made through t.Errorf/t.Fatal on failure) func TestSyncMetadataWithoutMaster(t *testing.T) { var statefulsetInputs = []appsv1.StatefulSet{}