From abd0af5a9b908f737a400076c7199ff7cfe342d4 Mon Sep 17 00:00:00 2001 From: Arnaud Farbos Date: Thu, 5 Sep 2024 16:46:32 -0700 Subject: [PATCH] add test in pkg/health/health_test.go Signed-off-by: Arnaud Farbos --- pkg/health/health_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/health/health_test.go b/pkg/health/health_test.go index 45ff74941..13118be55 100644 --- a/pkg/health/health_test.go +++ b/pkg/health/health_test.go @@ -81,6 +81,7 @@ func TestJob(t *testing.T) { func TestHPA(t *testing.T) { assertAppHealth(t, "./testdata/hpa-v2-healthy.yaml", HealthStatusHealthy) assertAppHealth(t, "./testdata/hpa-v2-degraded.yaml", HealthStatusDegraded) + assertAppHealth(t, "./testdata/hpa-v2-degraded-partially.yaml", HealthStatusDegraded) assertAppHealth(t, "./testdata/hpa-v2-progressing.yaml", HealthStatusProgressing) assertAppHealth(t, "./testdata/hpa-v2beta2-healthy.yaml", HealthStatusHealthy) assertAppHealth(t, "./testdata/hpa-v2beta1-healthy-disabled.yaml", HealthStatusHealthy)