summaryrefslogtreecommitdiff
path: root/pkg/spec/storage_test.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-04-23 16:08:48 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-05-01 10:19:05 -0400
commit13451cab5c20b8f28602debbb382e1351930e2d5 (patch)
treea9dd531a995129637af66dce7a97c585f45da134 /pkg/spec/storage_test.go
parent70beb57faa1cfb1a2e9be411628477bc1618c3cf (diff)
downloadpodman-13451cab5c20b8f28602debbb382e1351930e2d5.tar.gz
podman-13451cab5c20b8f28602debbb382e1351930e2d5.tar.bz2
podman-13451cab5c20b8f28602debbb382e1351930e2d5.zip
Hit a number of to-do comments in unified volumes code
As part of this, move bind mount option validity parsing and modification (adding e.g. rbind on bind mounts that are missing it), which requires test changes (expected values have changed). Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'pkg/spec/storage_test.go')
-rw-r--r--pkg/spec/storage_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/storage_test.go b/pkg/spec/storage_test.go
index 4d96a2de6..2439efb6f 100644
--- a/pkg/spec/storage_test.go
+++ b/pkg/spec/storage_test.go
@@ -13,7 +13,7 @@ func TestGetVolumeMountsOneVolume(t *testing.T) {
Destination: "/foobar",
Type: "bind",
Source: "/tmp",
- Options: []string{"ro", "rbind", "rprivate"},
+ Options: []string{"ro"},
}
config := CreateConfig{
Volumes: []string{"/tmp:/foobar:ro"},