diff options
author | umohnani8 <umohnani@redhat.com> | 2017-11-27 13:17:42 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-11-29 21:40:12 +0000 |
commit | ad255533d415393ebd119645af5c8b5a6637255f (patch) | |
tree | cce1f2053818a725f7084035a224052ab30699fa /cmd/kpod/spec_test.go | |
parent | cefa782e5067515bc38b5b3688d53f4fd9d0c70b (diff) | |
download | podman-ad255533d415393ebd119645af5c8b5a6637255f.tar.gz podman-ad255533d415393ebd119645af5c8b5a6637255f.tar.bz2 podman-ad255533d415393ebd119645af5c8b5a6637255f.zip |
Fix --volume flag for kpod create and run
Enable the --volume flag to validate user input
and add functionality for :z and :Z options
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes: #84
Approved by: mheon
Diffstat (limited to 'cmd/kpod/spec_test.go')
-rw-r--r-- | cmd/kpod/spec_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/kpod/spec_test.go b/cmd/kpod/spec_test.go index c3de84324..1eedb0e2a 100644 --- a/cmd/kpod/spec_test.go +++ b/cmd/kpod/spec_test.go @@ -18,7 +18,8 @@ func TestCreateConfig_GetVolumeMounts(t *testing.T) { config := createConfig{ volumes: []string{"foobar:/foobar:ro"}, } - specMount := config.GetVolumeMounts() + specMount, err := config.GetVolumeMounts() + assert.NoError(t, err) assert.True(t, reflect.DeepEqual(data, specMount[0])) } |