Skip to content

Commit 7f0778c

Browse files
authored
Add notation to TestCreateVolume in pkg/ddc/jindo/create_volume_test.go (#5028)
Signed-off-by: mirakira2023 <1211421320@qq.com>
1 parent b770e19 commit 7f0778c

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
@@ -31,6 +31,14 @@ import (
3131
"k8s.io/apimachinery/pkg/runtime"
3232
)
3333

34+
// TestCreateVolume tests the CreateVolume method of the JindoEngine.
35+
// It verifies that the method correctly creates PersistentVolume (PV) and PersistentVolumeClaim (PVC) resources
36+
// in Kubernetes based on the provided JindoRuntime and Dataset specifications.
37+
// The test checks:
38+
// 1. Successful execution of CreateVolume without errors.
39+
// 2. Correct creation of exactly one PersistentVolume.
40+
// 3. Correct creation of exactly one PersistentVolumeClaim.
41+
// 4. Proper setting of the fuse generation label on the created PVC.
3442
func TestCreateVolume(t *testing.T) {
3543
runtimeInfo, err := base.BuildRuntimeInfo("hbase", "fluid", common.JindoRuntime)
3644
if err != nil {

0 commit comments

Comments
 (0)