diff options
-rw-r--r-- | 42/regr/spec_files/client1.vol | 12 | ||||
-rw-r--r-- | 42/regr/spec_files/server1.vol | 26 | ||||
-rwxr-xr-x | 42/regr/testcase | 20 |
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 |