path: root/tests/basic.t
diff options
authorPrasanna Kumar Kalever <>2017-02-22 14:49:55 +0530
committerPrasanna Kumar Kalever <>2017-02-24 14:58:50 +0530
commit9f1c8a5ba49e7cad67b7ebf6e3e119eeb32a7ff0 (patch)
tree4834de8c226e382c0d342be47b19badb17cf2c94 /tests/basic.t
parentc1c22333819f744287fb78fb317ff70fa82beab8 (diff)
cli: change in synopsis for gluster-block commands
from now we will have fixed formats for commands. The new outfit will look like: $ gluster-block help gluster-block (3ba7ec5) usage: gluster-block <command> <volname[/blockname]> [<args>] commands: create <volname/blockname> [ha <count>] <host1[,host2,...]> <size> create block device. list <volname> list available block devices. info <volname/blockname> details about block device. delete <volname/blockname> delete block device. help show this message and exit. version show version info and exit. Example usage: $ gluster-block create volume/blockname 1GiB $ gluster-block create volume/blockname ha 2, 1GiB $ gluster-block list volume $ gluster-block info volume/blockname $ gluster-block delete volume/blockname Change-Id: Idc6b55c26432ed1ac3f002c2a2b3dbb81b180ec2 Signed-off-by: Prasanna Kumar Kalever <>
Diffstat (limited to 'tests/basic.t')
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/basic.t b/tests/basic.t
index c2b381c..9d01154 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 ${BLKNAME} volume ${VOLNAME}
+ gluster-block delete ${VOLNAME}/${BLKNAME}
gluster --mode=script vol stop ${VOLNAME}
gluster --mode=script vol del ${VOLNAME}
@@ -77,12 +77,12 @@ TEST systemctl restart gluster-blockd.service
sleep 1;
# Block create
-TEST gluster-block create ${BLKNAME} volume ${VOLNAME} size 1GiB mpath 1 servers ${HOST}
+TEST gluster-block create ${VOLNAME}/${BLKNAME} ha 1 ${HOST} 1GiB
# Block list
-TEST gluster-block list volume ${VOLNAME}
+TEST gluster-block list ${VOLNAME}
# Block info
-TEST gluster-block info ${BLKNAME} volume ${VOLNAME}
+TEST gluster-block info ${VOLNAME}/${BLKNAME}