summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-983317.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-983317.t')
-rw-r--r--tests/bugs/bug-983317.t25
1 files changed, 25 insertions, 0 deletions
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;