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 /test/kpod_run.bats | |
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 'test/kpod_run.bats')
-rw-r--r-- | test/kpod_run.bats | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/kpod_run.bats b/test/kpod_run.bats index 626a838b9..5f5377a5e 100644 --- a/test/kpod_run.bats +++ b/test/kpod_run.bats @@ -120,3 +120,18 @@ IMAGE="docker.io/library/fedora:latest" [ "$output" = 100 ] } + +@test "kpod run with volume flag" { + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -v ${MOUNT_PATH}:/run/test ${FEDORA_MINIMAL} cat /proc/self/mountinfo | grep '${MOUNT_PATH} /run/test rw,relatime'" + echo $output + [ "$status" -eq 0 ] + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -v ${MOUNT_PATH}:/run/test:ro ${FEDORA_MINIMAL} cat /proc/self/mountinfo | grep '${MOUNT_PATH} /run/test ro,relatime'" + echo $output + [ "$status" -eq 0 ] + #run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -v ${MOUNT_PATH}:/run/test:shared ${FEDORA_MINIMAL} cat /proc/self/mountinfo | grep '${MOUNT_PATH} /run/test rw,relatime shared:'" + #echo $output + #[ "$status" -eq 0 ] + #run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -v ${MOUNT_PATH}:/run/test:rslave ${FEDORA_MINIMAL} cat /proc/self/mountinfo | grep '${MOUNT_PATH} /run/test rw,relatime master:'" + #echo $output + #[ "$status" -eq 0 ] +} |