From 9f1c8a5ba49e7cad67b7ebf6e3e119eeb32a7ff0 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Wed, 22 Feb 2017 14:49:55 +0530 Subject: 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 [] commands: create [ha ] create block device. list list available block devices. info details about block device. delete delete block device. help show this message and exit. version show version info and exit. Example usage: $ gluster-block create volume/blockname 192.168.0.1 1GiB $ gluster-block create volume/blockname ha 2 192.168.0.1,192.168.0.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 --- tests/basic.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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} cleanup; -- cgit