summaryrefslogtreecommitdiff
path: root/test/system/001-basic.bats
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-31 10:59:03 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-04-05 12:41:47 -0400
commitc6a21a38b3c799f966e0a0bac2cc740f79526382 (patch)
tree2c0eb8c6545e4318e781d6183111cea9861e5156 /test/system/001-basic.bats
parent3fae801a3714ac058c5d19edf7f2288c18e84195 (diff)
downloadpodman-c6a21a38b3c799f966e0a0bac2cc740f79526382.tar.gz
podman-c6a21a38b3c799f966e0a0bac2cc740f79526382.tar.bz2
podman-c6a21a38b3c799f966e0a0bac2cc740f79526382.zip
Add support for podman --context default
This is a noop but helps with scripting and docker-compose. Fixes: https://github.com/containers/podman/issues/9806 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/system/001-basic.bats')
-rw-r--r--test/system/001-basic.bats7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats
index d276cfda1..081bb1171 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -10,6 +10,13 @@ function setup() {
:
}
+@test "podman --context emits reasonable output" {
+ run_podman 125 --context=swarm version
+ is "$output" "Error: Podman does not support swarm, the only --context value allowed is \"default\"" "--context=default or fail"
+
+ run_podman --context=default version
+}
+
@test "podman version emits reasonable output" {
run_podman version