diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/basic.t | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/basic.t b/tests/basic.t index 9d01154..8514cfb 100755 --- a/tests/basic.t +++ b/tests/basic.t @@ -39,7 +39,7 @@ function cleanup() echo -e "\nRunning test cleanup ..." # Block delete - gluster-block delete ${VOLNAME}/${BLKNAME} + gluster-block delete ${VOLNAME}/${BLKNAME} --json-pretty gluster --mode=script vol stop ${VOLNAME} gluster --mode=script vol del ${VOLNAME} @@ -85,4 +85,18 @@ TEST gluster-block list ${VOLNAME} # Block info TEST gluster-block info ${VOLNAME}/${BLKNAME} +# Block delete +gluster-block delete ${VOLNAME}/${BLKNAME} + +echo -e "\n*** JSON responses ***\n" + +# Block create and expect json response +TEST gluster-block create ${VOLNAME}/${BLKNAME} ha 1 ${HOST} 1GiB --json-pretty + +# Block list and expect json response +TEST gluster-block list ${VOLNAME} --json-pretty + +# Block info and expect json response +TEST gluster-block info ${VOLNAME}/${BLKNAME} --json-pretty + cleanup; |