summaryrefslogtreecommitdiffstats
path: root/tests/bugs/glusterd
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2018-09-03 16:26:56 +0530
committerSanju Rakonde <srakonde@redhat.com>2018-09-08 19:07:06 +0530
commit44e4db05a953a6f231c62225b462470cacb16bd4 (patch)
tree1a831a569a154c6fde8eb259a0ab98d86d59ddc3 /tests/bugs/glusterd
parenta880d6f6aa7a2979df8aa32b58f716ef0c578d3f (diff)
glusterd: avoid using glusterd's working directory as a brick
Adding checks for avoiding glusterd's working directory used as a brick for volume creation. fixes: bz#853601 Change-Id: I4b16a05f752e92216aa628f542a4fdbf59b3c669 Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'tests/bugs/glusterd')
-rw-r--r--tests/bugs/glusterd/optimized-basic-testcases.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/bugs/glusterd/optimized-basic-testcases.t b/tests/bugs/glusterd/optimized-basic-testcases.t
index b9fba4cdefb..dd98a65fa9a 100644
--- a/tests/bugs/glusterd/optimized-basic-testcases.t
+++ b/tests/bugs/glusterd/optimized-basic-testcases.t
@@ -270,4 +270,13 @@ pkill glusterfsd;
TEST glusterd
TEST $CLI volume status $V1
+#bug-853601 - Avoid using /var/lib/glusterd as a brick
+TEST ! $CLI volume create "test" $H0:/var/lib/glusterd
+TEST ! $CLI volume create "test" $H0:/var/lib/glusterd force
+TEST ! $CLI volume create "test" $H0:/var/lib/glusterd/abc
+TEST ! $CLI volume create "test" $H0:/var/lib/glusterd/abc force
+mkdir -p /xyz/var/lib/glusterd/abc
+TEST $CLI volume create "test" $H0:/xyz/var/lib/glusterd/abc
+EXPECT 'Created' volinfo_field "test" 'Status';
+
cleanup