aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-07-18 17:12:30 +0000
committerGitHub <noreply@github.com>2022-07-18 17:12:30 +0000
commitd890c4d98edcd2ed6f5f26bb19ed2282cea1cb46 (patch)
tree006f1ef9d3a9aa1f45d8b9eeff10346b839ff6a1 /test
parent5201ea8e4176dfc6cfd2816e5cf1c3fa0adf9587 (diff)
parent18c0c19aa91a0cb0c493c415d5b2b4c3627ad5e9 (diff)
downloadpodman-d890c4d98edcd2ed6f5f26bb19ed2282cea1cb46.tar.gz
podman-d890c4d98edcd2ed6f5f26bb19ed2282cea1cb46.tar.bz2
podman-d890c4d98edcd2ed6f5f26bb19ed2282cea1cb46.zip
Merge pull request #14947 from rhatdan/root
Add --host and -H as equivalent options to --url
Diffstat (limited to 'test')
-rw-r--r--test/system/250-systemd.bats19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats
index fc3c33975..70ae76eb8 100644
--- a/test/system/250-systemd.bats
+++ b/test/system/250-systemd.bats
@@ -400,4 +400,23 @@ EOF
run_podman rm -f -t 0 $cname
}
+@test "podman-system-service containers --host" {
+ skip_if_remote "N/A under podman-remote"
+
+ SERVICE_NAME=podman-service-$(random_string)
+ port=$(random_free_port)
+ URL=tcp://127.0.0.1:$port
+
+ systemd-run --unit=$SERVICE_NAME $PODMAN system service $URL --time=0
+ wait_for_port 127.0.0.1 $port
+
+ run_podman --host $URL run --rm $IMAGE true
+ run_podman -H $URL run --rm $IMAGE true
+
+ systemctl stop $SERVICE_NAME
+
+ # Make sure the option is actually connecting
+ run_podman 125 --host $URL run --rm $IMAGE true
+ assert "$output" =~ "Cannot connect to Podman.*connection refused"
+}
# vim: filetype=sh