summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinayak Hegde <vinayak@gluster.com>2009-12-01 06:03:43 -0800
committerVijay Bellur <vijay@gluster.com>2009-12-01 22:38:50 +0530
commit6d683433c428280325a1b00a3d44b73215c4040e (patch)
treead4335cfe981a5729d01e18637b95531fb9ce877
parentfa8740771e7c82cf0e2e7205d5d7d7ed0e4e71db (diff)
Regression test-case for bug 141.
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--141/regr/spec_files/server1.vol24
-rwxr-xr-x141/regr/testcase18
2 files changed, 42 insertions, 0 deletions
diff --git a/141/regr/spec_files/server1.vol b/141/regr/spec_files/server1.vol
new file mode 100644
index 0000000..43523d9
--- /dev/null
+++ b/141/regr/spec_files/server1.vol
@@ -0,0 +1,24 @@
+volume posix
+ type storage/posix
+ option directory /jbod/regr/141/../141/export1
+end-volume
+
+volume locks
+ type features/locks
+ subvolumes posix
+end-volume
+
+volume brick
+ type performance/io-threads
+ option thread-count 8
+ subvolumes locks
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp
+ option listen-port 9343
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
+
diff --git a/141/regr/testcase b/141/regr/testcase
new file mode 100755
index 0000000..6f1fb15
--- /dev/null
+++ b/141/regr/testcase
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+description="# (141) GF_OPTION_TYPE_PATH should check for presence of ".." in path"
+comments="#Should return EINVAL if ".." is found"
+
+source ../../init
+
+start_glusterfs --no-clients
+
+if [ $(grep "invalid path given" $LOGDIR/$(hostname)-server1.log | wc -l) -ne 0 ];then
+ ok $description
+else
+ not_ok $description
+ comment $comments
+fi
+
+cleanup_glusterfs
+