File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,14 @@ func TestSyncMetadataWithoutMaster(t *testing.T) {
349349 }
350350}
351351
352+ // TestShouldSyncMetadata tests the behavior of the shouldSyncMetadata method.
353+ // This test verifies whether metadata synchronization is correctly determined
354+ // under different Dataset and AlluxioRuntime configurations.
355+ // Test cases include:
356+ // 1. A Dataset with metadata already synced should not trigger synchronization.
357+ // 2. A Dataset with an empty UfsTotal should trigger synchronization by default.
358+ // 3. A Dataset with AutoSync enabled should trigger synchronization.
359+ // 4. A Dataset with AutoSync disabled should not trigger synchronization.
352360func TestShouldSyncMetadata (t * testing.T ) {
353361 datasetInputs := []datav1alpha1.Dataset {
354362 {
You can’t perform that action at this time.
0 commit comments