summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorRomain Geissler <romain.geissler@amadeus.com>2022-02-19 13:57:20 +0000
committerRomain Geissler <romain.geissler@amadeus.com>2022-02-19 14:53:37 +0000
commit23a7f4e0deffb075d24b3e731246269d5a35b748 (patch)
tree05ac787436fe651dcedcb9ebfbf37b8aea6d7970 /test/system
parenta88ea2c68b1ef01077a53b1c568b85667dcbc1e2 (diff)
downloadpodman-23a7f4e0deffb075d24b3e731246269d5a35b748.tar.gz
podman-23a7f4e0deffb075d24b3e731246269d5a35b748.tar.bz2
podman-23a7f4e0deffb075d24b3e731246269d5a35b748.zip
Option --url and --connection should imply --remote.
Closes #13242 Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
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 9b0a71285..721fb4bca 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -108,6 +108,17 @@ function setup() {
if grep -- " --remote " <<<"$output"; then
die "podman --help, with CONTAINER_CONNECTION set, is showing --remote"
fi
+
+ # When it detects --url or --connection, --remote is not an option
+ run_podman --url foobar --help
+ if grep -- " --remote " <<<"$output"; then
+ die "podman --help, with --url set, is showing --remote"
+ fi
+
+ run_podman --connection foobar --help
+ if grep -- " --remote " <<<"$output"; then
+ die "podman --help, with --connection set, is showing --remote"
+ fi
}
# Check that just calling "podman-remote" prints the usage message even