From d2c78b658902616f880c2d85bf2cff9bd55cb36f Mon Sep 17 00:00:00 2001 From: Derek Carr Date: Tue, 25 Aug 2020 12:03:00 -0400 Subject: [PATCH] Verify running mirror pod has running containers --- test/e2e_node/mirror_pod_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/e2e_node/mirror_pod_test.go b/test/e2e_node/mirror_pod_test.go index 7b7c200a6e0..c9e058723dc 100644 --- a/test/e2e_node/mirror_pod_test.go +++ b/test/e2e_node/mirror_pod_test.go @@ -192,6 +192,11 @@ func checkMirrorPodRunning(cl clientset.Interface, name, namespace string) error if pod.Status.Phase != v1.PodRunning { return fmt.Errorf("expected the mirror pod %q to be running, got %q", name, pod.Status.Phase) } + for i := range pod.Status.ContainerStatuses { + if pod.Status.ContainerStatuses[i].State.Running == nil { + return fmt.Errorf("expected the mirror pod %q with container %q to be running", name, pod.Status.ContainerStatuses[i].Name) + } + } return validateMirrorPod(cl, pod) }