diff --git a/pkg/plugins/gateway/algorithms/router_test.go b/pkg/plugins/gateway/algorithms/router_test.go index 5fb2fd95..55b1bf9b 100644 --- a/pkg/plugins/gateway/algorithms/router_test.go +++ b/pkg/plugins/gateway/algorithms/router_test.go @@ -106,6 +106,10 @@ func TestWithIPPods(t *testing.T) { Type: v1.PodReady, Status: v1.ConditionTrue, }, + { + Type: v1.ContainersReady, + Status: v1.ConditionTrue, + }, }, }, }, @@ -121,6 +125,10 @@ func TestWithIPPods(t *testing.T) { Type: v1.PodReady, Status: v1.ConditionTrue, }, + { + Type: v1.ContainersReady, + Status: v1.ConditionTrue, + }, }, }, }, @@ -182,6 +190,10 @@ func TestSelectRandomPod(t *testing.T) { Type: v1.PodReady, Status: v1.ConditionTrue, }, + { + Type: v1.ContainersReady, + Status: v1.ConditionTrue, + }, }, }, }, @@ -199,6 +211,10 @@ func TestSelectRandomPod(t *testing.T) { Type: v1.PodReady, Status: v1.ConditionTrue, }, + { + Type: v1.ContainersReady, + Status: v1.ConditionTrue, + }, }, }, }, @@ -210,6 +226,10 @@ func TestSelectRandomPod(t *testing.T) { Type: v1.PodReady, Status: v1.ConditionTrue, }, + { + Type: v1.ContainersReady, + Status: v1.ConditionTrue, + }, }, }, }, @@ -221,6 +241,10 @@ func TestSelectRandomPod(t *testing.T) { Type: v1.PodReady, Status: v1.ConditionTrue, }, + { + Type: v1.ContainersReady, + Status: v1.ConditionTrue, + }, }, }, },