summaryrefslogtreecommitdiffstats
path: root/tests/bugs/glusterd/bug-1102656.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/glusterd/bug-1102656.t')
-rw-r--r--tests/bugs/glusterd/bug-1102656.t20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs/glusterd/bug-1102656.t b/tests/bugs/glusterd/bug-1102656.t
new file mode 100644
index 00000000000..e80f4930a63
--- /dev/null
+++ b/tests/bugs/glusterd/bug-1102656.t
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+. $(dirname $0)/../../include.rc
+
+cleanup;
+
+TEST glusterd
+TEST pidof glusterd
+TEST $CLI volume create $V0 replica 2 $H0:$B0/brick0 $H0:$B0/brick1
+TEST $CLI volume start $V0
+EXPECT_WITHIN $PROCESS_UP_TIMEOUT 'Started' volinfo_field $V0 'Status';
+
+TEST $CLI volume top $V0 open
+TEST ! $CLI volume top $V0 open brick $H0:/tmp/brick
+TEST $CLI volume top $V0 read
+
+TEST $CLI volume status
+TEST $CLI volume stop $V0
+EXPECT_WITHIN $PROCESS_UP_TIMEOUT 'Stopped' volinfo_field $V0 'Status';
+cleanup;