aboutsummaryrefslogtreecommitdiff
path: root/test/system/001-basic.bats
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-09-09 09:06:18 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-09-15 08:17:15 -0400
commit3508bd22fe355630453d497d905e480974a84b96 (patch)
tree42874103bb7d0329796598fc251e6e8f4fac1bdc /test/system/001-basic.bats
parent4fc18d07a6b206476421ed134f0eeec1221936c2 (diff)
downloadpodman-3508bd22fe355630453d497d905e480974a84b96.tar.gz
podman-3508bd22fe355630453d497d905e480974a84b96.tar.bz2
podman-3508bd22fe355630453d497d905e480974a84b96.zip
Add support for podman context as alias to podman system connection
Alias podman --context -> podman --connection podman context use -> podman system connection default podman context rm -> podman system connection rm podman context create -> podman system connection add podman context ls ->podman system connection ls podman context inspect ->podman system connection ls --json (For specified connections) Podman context is a hidden command, but can be used for existing scripts that assume Docker under the covers. 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, 5 insertions, 2 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats
index 378edc013..ba6bde4df 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -56,14 +56,17 @@ function setup() {
@test "podman --context emits reasonable output" {
+ if ! is_remote; then
+ skip "only applicable on podman-remote"
+ fi
# All we care about here is that the command passes
run_podman --context=default version
# This one must fail
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"
+ "Error: failed to resolve active destination: \"swarm\" service destination not found" \
+ "--context=swarm should fail"
}
@test "podman can pull an image" {