summaryrefslogtreecommitdiff
path: root/test/e2e/play_kube_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-09-10 11:19:59 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-09-10 11:20:01 -0400
commit4fbc5b8fe75b3d486a97c013af7a6b085292b46a (patch)
treea31f855d21de2c3837821a1fa4c7fb386672c177 /test/e2e/play_kube_test.go
parente6046224ea88cad9286303456562b4a24ad9cf9b (diff)
downloadpodman-4fbc5b8fe75b3d486a97c013af7a6b085292b46a.tar.gz
podman-4fbc5b8fe75b3d486a97c013af7a6b085292b46a.tar.bz2
podman-4fbc5b8fe75b3d486a97c013af7a6b085292b46a.zip
Stop outputting 'healthy' on healthcheck
We should only print unhealthy if the check fails. Currently this is filling logs when users are running lots of healthchecks. Improves: https://github.com/containers/podman/issues/11157 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/play_kube_test.go')
-rw-r--r--test/e2e/play_kube_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go
index fa30f068c..07f2e65f4 100644
--- a/test/e2e/play_kube_test.go
+++ b/test/e2e/play_kube_test.go
@@ -12,6 +12,7 @@ import (
"time"
"github.com/containers/common/pkg/config"
+ "github.com/containers/podman/v3/libpod/define"
"github.com/containers/podman/v3/pkg/util"
. "github.com/containers/podman/v3/test/utils"
"github.com/containers/storage/pkg/stringid"
@@ -1209,7 +1210,7 @@ var _ = Describe("Podman play kube", func() {
hc := podmanTest.Podman([]string{"healthcheck", "run", "liveness-unhealthy-probe-pod-0-alpine"})
hc.WaitWithDefaultTimeout()
hcoutput := hc.OutputToString()
- Expect(hcoutput).To(ContainSubstring("unhealthy"))
+ Expect(hcoutput).To(ContainSubstring(define.HealthCheckUnhealthy))
})
It("podman play kube fail with nonexistent authfile", func() {