Skip to content

This PR is to add comments to TestCreateFusePersistentVolumeClaim in pkg\ddc\jindo\create_volume_test.go #5110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 7 additions & 1 deletion pkg/ddc/jindo/create_volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ func TestCreateFusePersistentVolume(t *testing.T) {
t.Errorf("fail to create the pv")
}
}

// TestCreateFusePersistentVolumeClaim tests the creation of a PersistentVolumeClaim for Jindo Fuse.
// It sets up a JindoEngine instance, creates a DaemonSet and Dataset, and then calls the createFusePersistentVolumeClaim method.
// It verifies that the PersistentVolumeClaim is created successfully and checks if the label for runtime fuse generation is set correctly.
// It uses a fake client to simulate the Kubernetes API interactions and checks the results against expected values.
// It also ensures that the PersistentVolumeClaim is associated with the correct DaemonSet and Dataset.
// The test checks for the correct number of PersistentVolumeClaims created and verifies the label for runtime fuse generation.
// If any assertions fail, it reports an error with a descriptive message.
func TestCreateFusePersistentVolumeClaim(t *testing.T) {
runtimeInfo, err := base.BuildRuntimeInfo("hbase", "fluid", common.JindoRuntime)
if err != nil {
Expand Down
Loading