aboutsummaryrefslogtreecommitdiff
path: root/test/compose
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-07-05 13:50:35 +0000
committerGitHub <noreply@github.com>2022-07-05 13:50:35 +0000
commit340eeed0cb20855f1e6d2670704cfe67df3314f6 (patch)
tree8fa91b359c7def9238c3835d55e7c00179896707 /test/compose
parent2c9f0753da6486b7ed2ef3b37b65ae0b9ca6d3fe (diff)
parent5633ef1d15c17fa2e0249710c7591da777cd7b5e (diff)
downloadpodman-340eeed0cb20855f1e6d2670704cfe67df3314f6.tar.gz
podman-340eeed0cb20855f1e6d2670704cfe67df3314f6.tar.bz2
podman-340eeed0cb20855f1e6d2670704cfe67df3314f6.zip
Merge pull request #14626 from jakecorrenti/disable-docker-compose-health-check
Docker-compose disable healthcheck properly handled
Diffstat (limited to 'test/compose')
-rw-r--r--test/compose/disable_healthcheck/docker-compose.yml10
-rw-r--r--test/compose/disable_healthcheck/tests.sh2
2 files changed, 12 insertions, 0 deletions
diff --git a/test/compose/disable_healthcheck/docker-compose.yml b/test/compose/disable_healthcheck/docker-compose.yml
new file mode 100644
index 000000000..1f608c895
--- /dev/null
+++ b/test/compose/disable_healthcheck/docker-compose.yml
@@ -0,0 +1,10 @@
+version: "3.7"
+services:
+ noHc:
+ image: alpine
+ container_name: noHc
+ ports:
+ - "4000:80"
+ restart: unless-stopped
+ healthcheck:
+ disable: true
diff --git a/test/compose/disable_healthcheck/tests.sh b/test/compose/disable_healthcheck/tests.sh
new file mode 100644
index 000000000..2460a687e
--- /dev/null
+++ b/test/compose/disable_healthcheck/tests.sh
@@ -0,0 +1,2 @@
+podman inspect --format='{{.Config.Healthcheck.Test}}' noHc
+like $output "[NONE]" "$testname: healthcheck properly disabled"