summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/bug-1120647.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs/bug-1120647.t b/tests/bugs/bug-1120647.t
new file mode 100644
index 00000000000..4670faa79d4
--- /dev/null
+++ b/tests/bugs/bug-1120647.t
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+. $(dirname $0)/../include.rc
+. $(dirname $0)/../volume.rc
+
+cleanup;
+
+TEST glusterd
+TEST pidof glusterd
+TEST $CLI volume create $V0 replica 2 $H0:$B0/brick{1..4}
+TEST $CLI volume start $V0
+TEST $CLI volume remove-brick $V0 $H0:$B0/brick{3..4} start
+EXPECT_WITHIN 10 "completed" remove_brick_status_completed_field "$V0 $H0:$B0/brick{3..4}"
+TEST $CLI volume remove-brick $V0 $H0:$B0/brick{3..4} commit
+TEST $CLI volume remove-brick $V0 replica 1 $H0:$B0/brick2 force
+
+cleanup;