summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-08 17:21:55 -0400
committerGitHub <noreply@github.com>2020-09-08 17:21:55 -0400
commit814784c5e6b9795d62a2c7624bc8884bd1011287 (patch)
tree37600307c94d3902c02c4c24a73231c31f1c6bf2 /test/system
parente180de8b3c64809e5312867c6e70dfcca704539b (diff)
parentea71f613e6cf0a346535372e6e68fbcc9a364b66 (diff)
downloadpodman-814784c5e6b9795d62a2c7624bc8884bd1011287.tar.gz
podman-814784c5e6b9795d62a2c7624bc8884bd1011287.tar.bz2
podman-814784c5e6b9795d62a2c7624bc8884bd1011287.zip
Merge pull request #7564 from Luap99/remote-subcmds-usage
Don't setup the Image/ContainerEngine when calling a cmd with subcmds
Diffstat (limited to 'test/system')
-rw-r--r--test/system/001-basic.bats11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats
index a5a3324fb..1d5eb066b 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -69,6 +69,17 @@ function setup() {
is "$output" "Error: unknown flag: --remote" "podman version --remote"
}
+# Check that just calling "podman-remote" prints the usage message even
+# without a running endpoint. Use "podman --remote" for this as this works the same.
+@test "podman-remote: check for command usage message without a running endpoint" {
+ if is_remote; then
+ skip "only applicable on a local run since this requires no endpoint"
+ fi
+
+ run_podman 125 --remote
+ is "$output" "Error: missing command 'podman COMMAND'" "podman remote show usage message without running endpoint"
+}
+
# This is for development only; it's intended to make sure our timeout
# in run_podman continues to work. This test should never run in production
# because it will, by definition, fail.