summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-31 16:45:35 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-04-05 12:48:09 -0400
commit69ace205356171835d920438fe411839c543f073 (patch)
tree8f5308c53db09736908a477e5fc5466702ade2ee /test/system
parent3fae801a3714ac058c5d19edf7f2288c18e84195 (diff)
downloadpodman-69ace205356171835d920438fe411839c543f073.tar.gz
podman-69ace205356171835d920438fe411839c543f073.tar.bz2
podman-69ace205356171835d920438fe411839c543f073.zip
Allow users to override default storage opts with --storage-opt
We define in the man page that this overrides the default storage options, but the code was appending to the existing options. This PR also makes a change to allow users to specify --storage-opt="". This will turn off all storage options. https://github.com/containers/podman/issues/9852 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r--test/system/005-info.bats9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/system/005-info.bats b/test/system/005-info.bats
index 7452c1901..c0af2e937 100644
--- a/test/system/005-info.bats
+++ b/test/system/005-info.bats
@@ -53,4 +53,13 @@ store.imageStore.number | 1
}
+@test "podman info --storage-opt='' " {
+ skip_if_remote "--storage-opt flag is not supported for remote"
+ skip_if_rootless "storage opts are required for rootless running"
+ run_podman --storage-opt='' info
+ # Note this will not work in rootless mode, unless you specify
+ # storage-driver=vfs, until we have kernels that support rootless overlay
+ # mounts.
+ is "$output" ".*graphOptions: {}" "output includes graphOptions: {}"
+}
# vim: filetype=sh