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
5 changes: 5 additions & 0 deletions pkg/ddc/alluxio/health_check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ func TestCheckRuntimeHealthy(t *testing.T) {
}
}

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