summaryrefslogtreecommitdiffstats
path: root/tests/bugs/snapshot
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2015-01-21 08:25:23 +0000
committerKaushal M <kaushal@redhat.com>2015-01-28 23:19:06 -0800
commit4493bfd8421116b5f45638b2f839874921f73fb3 (patch)
treea010c27bb2c0f28686cbd08a41394a6500abf20e /tests/bugs/snapshot
parent32c3d4e7a611f64a1f4eebe5711bcb112b94151f (diff)
glusterd/snapshot: Fail snap create even if one brick is down.
In a n-way replication, where n>=3 fail snapshot, even if one brick is down. Also check for glusterd quorum, irrespective of the force option Modified testcase tests/bugs/snapshot/bug-1090042.t because it tested the successful creation of snapshot with force command. Change-Id: I72666f8f1484bd1766b9d6799c20766e4547f6c5 BUG: 1184344 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/9470 Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'tests/bugs/snapshot')
-rwxr-xr-xtests/bugs/snapshot/bug-1090042.t8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/bugs/snapshot/bug-1090042.t b/tests/bugs/snapshot/bug-1090042.t
index b4df8e6cebe..9eb3a9aecc4 100755
--- a/tests/bugs/snapshot/bug-1090042.t
+++ b/tests/bugs/snapshot/bug-1090042.t
@@ -19,12 +19,8 @@ TEST kill_brick $V0 $H0 $L1;
TEST ! $CLI snapshot create ${V0}_snap1 $V0;
TEST ! snapshot_exists 0 ${V0}_snap1;
-#Force snap create should succeed
-TEST $CLI snapshot create ${V0}_snap1 $V0 force;
-TEST snapshot_exists 0 ${V0}_snap1;
-
-#Delete the created snap
-TEST $CLI snapshot delete ${V0}_snap1;
+#With changes introduced in BZ #1184344 force snap create should fail too
+TEST ! $CLI snapshot create ${V0}_snap1 $V0 force;
TEST ! snapshot_exists 0 ${V0}_snap1;
cleanup;