From 6d683433c428280325a1b00a3d44b73215c4040e Mon Sep 17 00:00:00 2001 From: Vinayak Hegde Date: Tue, 1 Dec 2009 06:03:43 -0800 Subject: Regression test-case for bug 141. Signed-off-by: Vijay Bellur --- 141/regr/spec_files/server1.vol | 24 ++++++++++++++++++++++++ 141/regr/testcase | 18 ++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 141/regr/spec_files/server1.vol create mode 100755 141/regr/testcase 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 + -- cgit