Skip to content

Commit 8a89517

Browse files
authored
Add Notation to TestCheckMasterHealthy in pkg\ddc\alluxio\health_check_test.go (#4617)
Signed-off-by: BaideBear <3345180277@qq.com>
1 parent a69998c commit 8a89517

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/ddc/alluxio/health_check_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ func TestCheckRuntimeHealthy(t *testing.T) {
242242
}
243243
}
244244

245+
// TestCheckMasterHealthy is a test function that verifies the health status of master nodes
246+
// in a simulated Kubernetes environment. It uses fake clients to create test StatefulSets
247+
// and AlluxioRuntime objects, and checks if the master nodes are healthy based on predefined
248+
// conditions. The test cases include scenarios for different engines (HBase and Spark) with
249+
// expected outcomes for error presence and master phase status.
245250
func TestCheckMasterHealthy(t *testing.T) {
246251
var statefulsetInputs = []appsv1.StatefulSet{
247252
{

0 commit comments

Comments
 (0)