Skip to content

Commit d607007

Browse files
Add comments to TestCreateFusePersistentVolume in pkg/ddc/jindo/create_volume_test.go (#4958)
Signed-off-by: MCAdam221840186 <221840186@smail.nju.edu.cn>
1 parent 6df6616 commit d607007

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkg/ddc/jindo/create_volume_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ func TestCreateVolume(t *testing.T) {
116116
}
117117
}
118118

119+
// TestCreateFusePersistentVolume tests the createFusePersistentVolume method of the JindoEngine.
120+
// It verifies that a PersistentVolume can be successfully created based on the given runtime and dataset.
121+
// The test flow includes:
122+
// - Building a RuntimeInfo instance
123+
// - Creating a test Dataset object
124+
// - Initializing the JindoEngine with a fake client
125+
// - Executing the createFusePersistentVolume method
126+
// - Checking that exactly one PersistentVolume has been created
119127
func TestCreateFusePersistentVolume(t *testing.T) {
120128
runtimeInfo, err := base.BuildRuntimeInfo("hbase", "fluid", common.JindoRuntime)
121129
if err != nil {

0 commit comments

Comments
 (0)