From 02942191041fe9604eaa1d042e1cda3425af66d1 Mon Sep 17 00:00:00 2001 From: shylesh Date: Mon, 26 Dec 2011 20:14:30 +0530 Subject: BUG:764030-Checks for last brick removal Change-Id: Ia96db34270a112fce69644e907c27fae65bbfc58 BUG: 764030 Signed-off-by: shylesh --- dvm/764030/testcase | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 dvm/764030/testcase diff --git a/dvm/764030/testcase b/dvm/764030/testcase new file mode 100755 index 0000000..6db9aca --- /dev/null +++ b/dvm/764030/testcase @@ -0,0 +1,15 @@ +#!/bin/bash + +source $cwd/regression_helpers + + +$GLUSTERFSDIR/gluster volume create $global_bug_id\ + $(hostname):$EXPORT_DIR/$global_bug_id/brick1 \ + $(hostname):$EXPORT_DIR/$global_bug_id/brick2 2>/dev/null 1>/dev/null + +$GLUSTERFSDIR/gluster --mode=script volume remove-brick $global_bug_id\ + $(hostname):$EXPORT_DIR/$global_bug_id/brick1 \ + $(hostname):$EXPORT_DIR/$global_bug_id/brick2 \ + | grep 'Deleting all the bricks of the volume is not allowed' 1>/dev/null + +exit $? -- cgit