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
3 changes: 3 additions & 0 deletions pkg/ddc/juicefs/master_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ func init() {
_ = appsv1.AddToScheme(testScheme)
}

// TestSetupMasterInternal tests the setupMasterInternal function of JuiceFSEngine under various scenarios.
// It covers cases where the Helm release exists, doesn't exist, encounters errors during checking/installation,
// and verifies the correct handling of each situation through mock implementations and hook injections.
func TestSetupMasterInternal(t *testing.T) {
mockExecCheckReleaseCommonFound := func(name string, namespace string) (exist bool, err error) {
return true, nil
Expand Down
Loading