Skip to content
Closed
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
5 changes: 5 additions & 0 deletions pkg/ddc/alluxio/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,11 @@ func TestRestoreMetadataInternal(t *testing.T) {
wrappedUnhookQueryMetaDataInfoIntoFile()
}

// TestSyncMetadataInternal tests the syncMetadataInternal function of the AlluxioEngine.
// It simulates the behavior of syncing metadata for datasets and verifies that the
// expected metadata (e.g., UfsTotal and FileNum) is correctly updated in the dataset's status.
// The test uses a fake client to mimic interactions with a Kubernetes cluster and validates
// the results by comparing the dataset's status fields with the expected values.
func TestSyncMetadataInternal(t *testing.T) {
datasetInputs := []datav1alpha1.Dataset{
{
Expand Down
Loading