Skip to content

Commit e3b13c8

Browse files
authored
This PR is to add comments to TestSetupMaster in pkg\ddc\alluxio\master_test.go. (#4672)
* Add Notation to UpdateDatasetStatus in pkg\ddc\alluxio\master_test.go. Signed-off-by: fsmpkkk <[email protected]> * Add Notation to TestSetupMaster in pkg\ddc\alluxio\master_test.go. Signed-off-by: fsmpkkk <[email protected]> --------- Signed-off-by: fsmpkkk <[email protected]>
1 parent a753fac commit e3b13c8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/ddc/alluxio/master_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,14 @@ func TestShouldSetupMaster(t *testing.T) {
238238
}
239239
}
240240

241+
// TestSetupMaster tests the SetupMaster function of the AlluxioEngine.
242+
// It initializes a fake Kubernetes client with predefined StatefulSet and AlluxioRuntime objects,
243+
// then verifies whether SetupMaster correctly updates the runtime's status fields.
244+
// The test ensures that:
245+
// 1. The SetupMaster function executes without errors.
246+
// 2. The runtime object is correctly retrieved after execution.
247+
// 3. The runtime's status is properly updated, including the selector,
248+
// configuration map name, and the presence of conditions.。
241249
func TestSetupMaster(t *testing.T) {
242250
statefulSetInputs := []v1.StatefulSet{
243251
{

0 commit comments

Comments
 (0)