diff options
author | Vinayak Hegde <vinayak@gluster.com> | 2009-11-09 21:30:32 -0800 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2009-11-11 18:07:16 +0530 |
commit | ce54a222a4ce8ae72758592a1be20e9e9d6a3a64 (patch) | |
tree | ecded485ebf1da1250845a14b661e494dfdc03df | |
parent | ef2cb1ebbf16bdc965c93a3f0a7bbe944e2fb011 (diff) |
Regression testcase for bug-26
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r-- | 26/regr/spec_files/client1.vol | 9 | ||||
-rw-r--r-- | 26/regr/spec_files/server1.vol | 24 | ||||
-rwxr-xr-x | 26/regr/testcase | 27 |
3 files changed, 60 insertions, 0 deletions
diff --git a/26/regr/spec_files/client1.vol b/26/regr/spec_files/client1.vol new file mode 100644 index 0000000..b92da11 --- /dev/null +++ b/26/regr/spec_files/client1.vol @@ -0,0 +1,9 @@ +volume client1 + type protocol/client + option transport-type tcp + option remote-port 9320 + option remote-host 127.0.0.1 + option remote-subvolume brick +end-volume + + diff --git a/26/regr/spec_files/server1.vol b/26/regr/spec_files/server1.vol new file mode 100644 index 0000000..cf254c7 --- /dev/null +++ b/26/regr/spec_files/server1.vol @@ -0,0 +1,24 @@ +volume posix + type storage/posix + option directory /jbod/regr/26/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 9320 + option auth.addr.brick.allow * + subvolumes brick +end-volume + diff --git a/26/regr/testcase b/26/regr/testcase new file mode 100755 index 0000000..f76bc06 --- /dev/null +++ b/26/regr/testcase @@ -0,0 +1,27 @@ +#!/bin/bash + +description="# (26) Version mismatch not handled correctly" +comments="# Tried connecting 2.0.2 client with different version server" + +source ../../init + +start_glusterfs --no-clients + +/opt/glusterfs/2.0.2/sbin/glusterfs -f $SPECDIR/client1.vol -l $LOGDIR/$(hostname)-client1.log $MOUNTDIR/client1 + +sleep 5 + +for var in `seq 1 100`; do + ls $MOUNTDIR/client1 2> tmpfile + if [ $(grep "Transport endpoint is not connected" tmpfile | wc -l) -ne 0 ];then + not_ok $description + comment $comments + break + fi +done +rm tmpfile + +[ $var -eq 100 ] && ok $description + +umount -l $MOUNTDIR/client1 +cleanup_glusterfs |