Skip to content

Commit

Permalink
Add notation to TestBindToDataset in pkg\ddc\jindo\dataset_test.go. (#…
Browse files Browse the repository at this point in the history
…4550)

Signed-off-by: JunyuWu <[email protected]>
  • Loading branch information
idiotgoose authored Mar 11, 2025
1 parent c78d613 commit 6a7a98f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ddc/jindo/dataset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ func TestUpdateDatasetStatus(t *testing.T) {
}
}

// TestBindToDataset tests the BindToDataset method of JindoEngine to verify whether it can correctly bind the dataset to the runtime
// and update the dataset's cache state and HCFS status. The test creates mock Dataset and JindoRuntime objects,
// uses a fake client to simulate operations, and finally checks if the dataset's Phase, CacheStates, and HCFSStatus match the expected results.
func TestBindToDataset(t *testing.T) {
testDatasetInputs := []*datav1alpha1.Dataset{
{
Expand Down

0 comments on commit 6a7a98f

Please sign in to comment.