summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-22 14:30:39 -0400
committerGitHub <noreply@github.com>2021-09-22 14:30:39 -0400
commitaa628b82b1c2f04fb3a9a9207bb6d6bddb497fbb (patch)
treede569da7d6e8d0c064de34f56231a860d5d91298 /test/e2e
parent420ff1da921e284b80ac3724408a21bba102a533 (diff)
parentdb44addf973671f3bbe420ebe1a63d01ef39d60c (diff)
downloadpodman-aa628b82b1c2f04fb3a9a9207bb6d6bddb497fbb.tar.gz
podman-aa628b82b1c2f04fb3a9a9207bb6d6bddb497fbb.tar.bz2
podman-aa628b82b1c2f04fb3a9a9207bb6d6bddb497fbb.zip
Merge pull request #11689 from Luap99/con-state
sync container state before reading the healthcheck
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/healthcheck_run_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/healthcheck_run_test.go b/test/e2e/healthcheck_run_test.go
index 87f042ed9..1445a634b 100644
--- a/test/e2e/healthcheck_run_test.go
+++ b/test/e2e/healthcheck_run_test.go
@@ -214,5 +214,12 @@ var _ = Describe("Podman healthcheck run", func() {
inspect = podmanTest.InspectContainer("hc")
Expect(inspect[0].State.Healthcheck.Status).To(Equal(define.HealthCheckHealthy))
+
+ // Test podman ps --filter heath is working (#11687)
+ ps := podmanTest.Podman([]string{"ps", "--filter", "health=healthy"})
+ ps.WaitWithDefaultTimeout()
+ Expect(ps).Should(Exit(0))
+ Expect(len(ps.OutputToStringArray())).To(Equal(2))
+ Expect(ps.OutputToString()).To(ContainSubstring("hc"))
})
})