File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -369,6 +369,22 @@ func TestCheckMasterHealthy(t *testing.T) {
369369 }
370370}
371371
372+ // TestCheckWorkersHealthy validates the health check functionality for Alluxio runtime workers.
373+ // It covers three primary scenarios:
374+ // 1. Unhealthy workers (StatefulSet with readyReplicas < desired replicas)
375+ // 2. Healthy workers (StatefulSet with readyReplicas matching desired count)
376+ // 3. Deprecated worker types (DaemonSet-based workers that should remain unchanged)
377+ //
378+ // The test verifies:
379+ // - Correct error handling based on worker status
380+ // - Proper updates to RuntimeStatus fields (WorkerNumberReady/Available)
381+ // - Appropriate condition updates for worker readiness
382+ // - Idempotency for deprecated worker implementations
383+ //
384+ // Test cases include:
385+ // - Case 1: Workers not ready (0 ready replicas out of 2 desired)
386+ // - Case 2: Workers fully ready (1 ready replica matching desired count)
387+ // - Case 3: Deprecated worker type (no status changes expected)
372388func TestCheckWorkersHealthy (t * testing.T ) {
373389 var statefulSetInputs = []appsv1.StatefulSet {
374390 {
You can’t perform that action at this time.
0 commit comments