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
8 changes: 8 additions & 0 deletions pkg/ddc/alluxio/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,14 @@ func TestSyncMetadataWithoutMaster(t *testing.T) {
}
}

// TestShouldSyncMetadata tests the behavior of the shouldSyncMetadata method.
// This test verifies whether metadata synchronization is correctly determined
// under different Dataset and AlluxioRuntime configurations.
// Test cases include:
// 1. A Dataset with metadata already synced should not trigger synchronization.
// 2. A Dataset with an empty UfsTotal should trigger synchronization by default.
// 3. A Dataset with AutoSync enabled should trigger synchronization.
// 4. A Dataset with AutoSync disabled should not trigger synchronization.
func TestShouldSyncMetadata(t *testing.T) {
datasetInputs := []datav1alpha1.Dataset{
{
Expand Down
Loading