diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-15 16:50:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 16:50:49 +0200 |
commit | 3f6fd8a7bd4f4fc3cfbfb1329814a5db016b1a6c (patch) | |
tree | d33390f407abdba102aa0fa7e79baa56791fc8a8 /test | |
parent | 5ac617ae8af1797f8444d89290646692c14c6b1e (diff) | |
parent | 4f857bc10627d950b3363e47cee02ef07618f0ae (diff) | |
download | podman-3f6fd8a7bd4f4fc3cfbfb1329814a5db016b1a6c.tar.gz podman-3f6fd8a7bd4f4fc3cfbfb1329814a5db016b1a6c.tar.bz2 podman-3f6fd8a7bd4f4fc3cfbfb1329814a5db016b1a6c.zip |
Merge pull request #11978 from rhatdan/remote
If CONTAINER_HOST env variable is set default podman --remote=true
Diffstat (limited to 'test')
-rw-r--r-- | test/system/001-basic.bats | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats index 2e5ebe4a3..2de96a01a 100644 --- a/test/system/001-basic.bats +++ b/test/system/001-basic.bats @@ -93,6 +93,15 @@ function setup() { is "$output" "Error: unknown flag: --remote" "podman version --remote" } +@test "podman-remote: defaults" { + if is_remote; then + skip "only applicable on a local run" + fi + + CONTAINER_HOST=foobar run_podman --log-level=info --help + is "$output" ".*defaulting to '--remote=true'" "CONTAINER_HOST sets --remote true" +} + # Check that just calling "podman-remote" prints the usage message even # without a running endpoint. Use "podman --remote" for this as this works the same. @test "podman-remote: check for command usage message without a running endpoint" { |