summaryrefslogtreecommitdiffstats
path: root/tests/bugs/glusterd/bug-958790.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/glusterd/bug-958790.t')
-rw-r--r--tests/bugs/glusterd/bug-958790.t21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs/glusterd/bug-958790.t b/tests/bugs/glusterd/bug-958790.t
new file mode 100644
index 00000000000..39be0a19137
--- /dev/null
+++ b/tests/bugs/glusterd/bug-958790.t
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+. $(dirname $0)/../../include.rc
+. $(dirname $0)/../../volume.rc
+
+cleanup;
+
+TEST glusterd;
+TEST pidof glusterd;
+TEST $CLI volume info;
+
+touch $GLUSTERD_WORKDIR/groups/test
+echo "read-ahead=off" > $GLUSTERD_WORKDIR/groups/test
+echo "open-behind=off" >> $GLUSTERD_WORKDIR/groups/test
+
+TEST $CLI volume create $V0 $H0:$B0/${V0}{1,2};
+TEST $CLI volume set $V0 group test
+EXPECT "off" volume_option $V0 performance.read-ahead
+EXPECT "off" volume_option $V0 performance.open-behind
+
+cleanup;