summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinayak Hegde <vinayak@gluster.com>2009-11-02 04:32:54 -0800
committerVijay Bellur <vijay@gluster.com>2009-11-02 21:59:42 +0530
commitef2cb1ebbf16bdc965c93a3f0a7bbe944e2fb011 (patch)
treed92e172d784fa88ca1debe444c9425fb6735b05b
parent72f39274bb69d82fd6267496133ef054ef67d344 (diff)
Regression testcase for bug-42
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--42/regr/spec_files/client1.vol12
-rw-r--r--42/regr/spec_files/server1.vol26
-rwxr-xr-x42/regr/testcase20
3 files changed, 58 insertions, 0 deletions
diff --git a/42/regr/spec_files/client1.vol b/42/regr/spec_files/client1.vol
new file mode 100644
index 0000000..26a56ad
--- /dev/null
+++ b/42/regr/spec_files/client1.vol
@@ -0,0 +1,12 @@
+volume remote1
+ type protocol/client
+ option transport-type tcp
+ option remote-host 127.0.0.1
+ option remote-port 9329
+ option username user2
+ option password system
+ option remote-subvolume brick
+end-volume
+
+
+
diff --git a/42/regr/spec_files/server1.vol b/42/regr/spec_files/server1.vol
new file mode 100644
index 0000000..da706a8
--- /dev/null
+++ b/42/regr/spec_files/server1.vol
@@ -0,0 +1,26 @@
+volume posix
+ type storage/posix
+ option directory /jbod/regr/42/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 9329
+ option auth.addr.brick.allow *
+ option auth.login.brick.allow user1
+ option auth.login.user1.password system
+ subvolumes brick
+end-volume
+
diff --git a/42/regr/testcase b/42/regr/testcase
new file mode 100755
index 0000000..e381b2d
--- /dev/null
+++ b/42/regr/testcase
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+bugid=$(pwd | cut -d '/' -f 4)
+
+description="# ($bugid) auth.login and auth.addr cannot be used in conjunction with each other"
+comments="# It is addr only authentication when both login & addr are both specified"
+
+source ../../init
+start_glusterfs
+
+sleep 5
+
+if [ $(mount | grep "$MOUNTDIR/client1" | wc -l) -ne 0 ];then
+ not_ok $description
+ comment $comments
+else
+ ok $description
+fi
+
+cleanup_glusterfs \ No newline at end of file