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 @@ -510,6 +510,14 @@ func TestShouldSyncMetadata(t *testing.T) {
510510 }
511511}
512512
513+ // TestShouldRestoreMetadata tests the shouldRestoreMetadata function of the AlluxioEngine.
514+ // It creates a set of test datasets and initializes a fake client with these datasets.
515+ // Then, it creates two AlluxioEngine instances with different configurations and checks
516+ // if the shouldRestoreMetadata function returns the expected results for each instance.
517+ // The test cases include:
518+ // - An engine with a dataset that has a DataRestoreLocation specified, expecting shouldRestoreMetadata to return true.
519+ // - An engine with a dataset that does not have a DataRestoreLocation specified, expecting shouldRestoreMetadata to return false.
520+ // If the function does not return the expected result or an error occurs, the test will fail.
513521func TestShouldRestoreMetadata (t * testing.T ) {
514522 datasetInputs := []datav1alpha1.Dataset {
515523 {
You can’t perform that action at this time.
0 commit comments