From efb0b9b2d2aec2f30f6da716e17b013a733cd036 Mon Sep 17 00:00:00 2001 From: win10true <2606804330@qq.com> Date: Sat, 12 Apr 2025 23:14:56 +0800 Subject: [PATCH] Add Notation to TestSyncMetadataInternal in pkg\ddc\alluxio\metadata_test.go Signed-off-by: win10true <2606804330@qq.com> --- pkg/ddc/alluxio/metadata_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/ddc/alluxio/metadata_test.go b/pkg/ddc/alluxio/metadata_test.go index dc01f2d2711..df434c62146 100644 --- a/pkg/ddc/alluxio/metadata_test.go +++ b/pkg/ddc/alluxio/metadata_test.go @@ -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{ {