aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-28 18:45:18 -0500
committerGitHub <noreply@github.com>2022-02-28 18:45:18 -0500
commitcff448be2d10283e956fada480a063aa346f4a67 (patch)
tree0df5b67905dbb2cfc440fb8ae880b70687cba24c /test
parent49d511b6ee88ceff70cc6786c467bed39da35a61 (diff)
parentca980c2e024bd33f4be3a33bb1dbb22c86bfe072 (diff)
downloadpodman-cff448be2d10283e956fada480a063aa346f4a67.tar.gz
podman-cff448be2d10283e956fada480a063aa346f4a67.tar.bz2
podman-cff448be2d10283e956fada480a063aa346f4a67.zip
Merge pull request #13357 from Romain-Geissler-1A/backport-connection-implies-remote
Option --url and --connection should imply --remote.
Diffstat (limited to 'test')
-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 748377e4b..582efa058 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -126,6 +126,17 @@ See 'podman version --help'" "podman version --remote"
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