Skip to content

Commit d0be7f1

Browse files
authored
Add comments to TestGenerateJindoValueFile in /pkg/ddc/jindo/master_internal_test.go. (#4630)
Signed-off-by: Henry Qi <[email protected]>
1 parent 819b35a commit d0be7f1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/ddc/jindo/master_internal_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,15 @@ func TestSetupMasterInternal(t *testing.T) {
160160
wrappedUnhookInstallRelease()
161161
}
162162

163+
// TestGenerateJindoValueFile tests the functionality of generating Jindo value files for Fluid's JindoRuntime.
164+
// This test creates a mock environment with a JindoRuntime instance and associated Dataset,
165+
// then verifies that the engine can properly generate configuration values without errors.
166+
// The test covers:
167+
// - Setting up a JindoRuntime with specific tiered storage configuration
168+
// - Creating a fake client with test objects
169+
// - Building runtime information
170+
// - Configuring port allocation
171+
// - Validating the value file generation process
163172
func TestGenerateJindoValueFile(t *testing.T) {
164173
jindoruntime := &datav1alpha1.JindoRuntime{
165174
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)