Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/ddc/alluxio/create_volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ import (
"k8s.io/apimachinery/pkg/runtime"
)

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