Skip to content

Commit 349ebd2

Browse files
This PR is to add comments to TestCreateVolume in pkg\ddc\alluxio\create_volume_test.go. (#4766)
* Add comments to TestCreateVolume in pkg/ddc/alluxio/create_volume_test.go Signed-off-by: WangXu <2069625874@qq.com> * the second commit Signed-off-by: WangXu <2069625874@qq.com> * the third commit Signed-off-by: WangXu <2069625874@qq.com> * the fourth commit Signed-off-by: WangXu <2069625874@qq.com> --------- Signed-off-by: WangXu <2069625874@qq.com>
1 parent b16eb30 commit 349ebd2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/ddc/alluxio/create_volume_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ import (
2828
"k8s.io/apimachinery/pkg/runtime"
2929
)
3030

31+
// TestCreateVolume tests the CreateVolume function of the AlluxioEngine.
32+
// It verifies that the function successfully creates a PersistentVolume (PV)
33+
// and a PersistentVolumeClaim (PVC) for the given dataset. The test sets up
34+
// a fake Kubernetes client with a mock dataset and checks if exactly one PV
35+
// and one PVC are created after the function execution
3136
func TestCreateVolume(t *testing.T) {
3237
runtimeInfo, err := base.BuildRuntimeInfo("hbase", "fluid", "alluxio")
3338
if err != nil {

0 commit comments

Comments
 (0)