From c080403393987f807b9ca81be140618fa5e994f1 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Mon, 30 Jun 2014 10:33:25 +0530 Subject: cli/glusterd: Support of volume get for a specific volume option This patch introduces a cli command to display a specific volume option/all volume options of a specific volume with the following usage: Usage: volume get Change-Id: Ic88edb33c5509d7a37cd5ade6341e45e3cdbf59d BUG: 983317 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/8305 Reviewed-by: Kaushal M Tested-by: Gluster Build System --- tests/bugs/bug-983317.t | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/bugs/bug-983317.t (limited to 'tests/bugs') diff --git a/tests/bugs/bug-983317.t b/tests/bugs/bug-983317.t new file mode 100644 index 00000000000..7355cbaafd1 --- /dev/null +++ b/tests/bugs/bug-983317.t @@ -0,0 +1,25 @@ +#!/bin/bash + +. $(dirname $0)/../include.rc +. $(dirname $0)/../volume.rc + +cleanup; +TEST glusterd +TEST pidof glusterd + +TEST $CLI volume create $V0 $H0:$B0/$V0 + +# Set a volume option +TEST $CLI volume set $V0 open-behind on +TEST $CLI volume start $V0 + +# Execute volume get without having an explicit option, this should fail +TEST ! $CLI volume get $V0 + +# Execute volume get with an explicit option +TEST $CLI volume get $V0 open-behind + +# Execute volume get with 'all" +TEST $CLI volume get $V0 all + +cleanup; -- cgit