summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-21 15:21:37 -0500
committerGitHub <noreply@github.com>2022-02-21 15:21:37 -0500
commitb3963e7081d00c99a49c5bac36a94d3ed9b6655e (patch)
tree3b6e5d6c346666ba16d928535168637dc7c361a6 /test
parent62ff0409fafcd1980318939eed1df465bdf723a5 (diff)
parent23a7f4e0deffb075d24b3e731246269d5a35b748 (diff)
downloadpodman-b3963e7081d00c99a49c5bac36a94d3ed9b6655e.tar.gz
podman-b3963e7081d00c99a49c5bac36a94d3ed9b6655e.tar.bz2
podman-b3963e7081d00c99a49c5bac36a94d3ed9b6655e.zip
Merge pull request #13296 from Romain-Geissler-1A/url-and-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