summaryrefslogtreecommitdiffstats
path: root/15
diff options
context:
space:
mode:
authorVinayak Hegde <vinayak@gluster.com>2009-11-02 02:54:54 -0800
committerVijay Bellur <vijay@gluster.com>2009-11-02 21:38:39 +0530
commit15db7ba84e7a9f31683bc2cadeb960c37b6d9bde (patch)
tree8ff144f95440efd893ce6759d4c88e79fbc8d82c /15
parent37dffe74f0b979225357052c3c56a11d69916006 (diff)
Regression testcase for bug-15
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to '15')
-rw-r--r--15/regr/spec_files/client1.vol8
-rw-r--r--15/regr/spec_files/server1.vol13
-rwxr-xr-x15/regr/testcase20
3 files changed, 41 insertions, 0 deletions
diff --git a/15/regr/spec_files/client1.vol b/15/regr/spec_files/client1.vol
new file mode 100644
index 0000000..2ab9fcd
--- /dev/null
+++ b/15/regr/spec_files/client1.vol
@@ -0,0 +1,8 @@
+volume remote1
+ type protocol/client
+ option transport-type tcp
+ option remote-host 127.0.0.1
+ option remote-port 9315
+ option remote-subvolume brick
+end-volume
+
diff --git a/15/regr/spec_files/server1.vol b/15/regr/spec_files/server1.vol
new file mode 100644
index 0000000..002b428
--- /dev/null
+++ b/15/regr/spec_files/server1.vol
@@ -0,0 +1,13 @@
+volume brick
+ type storage/posix
+ option directory /jbod/regr/15/export1
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp
+ option listen-port 9315
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
+
diff --git a/15/regr/testcase b/15/regr/testcase
new file mode 100755
index 0000000..fe37d18
--- /dev/null
+++ b/15/regr/testcase
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+description="# [ glusterfs 2.0.2 ] - Unclear log message with missing mount point (during client invocation)"
+comments="# dangling volume is printed in the log"
+
+source ../../init
+
+start_glusterfs --no-clients
+
+$($GLUSTERFS --run-id regr.c.$BUGID -f $SPECDIR/client1.vol -l $LOGDIR/$(hostname)-client1.log)
+
+if [ $(grep "Volume is dangling" $LOGDIR/$(hostname)-client1.log | wc -l) -ne 0 ]
+then
+ not_ok $description
+ comment $comments
+else
+ ok $description
+fi
+
+cleanup_glusterfs \ No newline at end of file