summaryrefslogtreecommitdiffstats
path: root/445/regr
diff options
context:
space:
mode:
Diffstat (limited to '445/regr')
-rw-r--r--445/regr/spec_files/client1.vol23
-rw-r--r--445/regr/spec_files/server1.vol23
-rw-r--r--445/regr/spec_files/server2.vol23
-rwxr-xr-x445/regr/testcase32
4 files changed, 101 insertions, 0 deletions
diff --git a/445/regr/spec_files/client1.vol b/445/regr/spec_files/client1.vol
new file mode 100644
index 0000000..3af2442
--- /dev/null
+++ b/445/regr/spec_files/client1.vol
@@ -0,0 +1,23 @@
+volume remote1
+ type protocol/client
+ option transport-type tcp/client
+ option remote-port 9352
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+volume remote2
+ type protocol/client
+ option transport-type tcp/client
+ option remote-port 9353
+ option remote-host 127.0.0.1
+ option remote-subvolume brick
+end-volume
+
+
+volume replica
+ type cluster/replicate
+ subvolumes remote1 remote2
+end-volume
+
+
diff --git a/445/regr/spec_files/server1.vol b/445/regr/spec_files/server1.vol
new file mode 100644
index 0000000..3c92afd
--- /dev/null
+++ b/445/regr/spec_files/server1.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /home/laks/workpath/regression/445/regr/export/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/server
+ option listen-port 9352
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/445/regr/spec_files/server2.vol b/445/regr/spec_files/server2.vol
new file mode 100644
index 0000000..c7c89dd
--- /dev/null
+++ b/445/regr/spec_files/server2.vol
@@ -0,0 +1,23 @@
+volume posix
+ type storage/posix
+ option directory /home/laks/workpath/regression/445/regr/export/export2
+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/server
+ option listen-port 9353
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume
diff --git a/445/regr/testcase b/445/regr/testcase
new file mode 100755
index 0000000..5b90126
--- /dev/null
+++ b/445/regr/testcase
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+description="# Bug 445 - Transport endpoint is not connected "
+comments="# Touching a file works, writing actual data to it doesn't."
+
+
+source ../../init
+
+start_glusterfs
+
+sleep 2
+echo "this is file content" > $MOUNTDIR/client1/testing.txt
+
+retval=$?
+
+
+
+if [ $retval -eq 0 ]
+then
+ ok $description
+ comment $comments
+
+else
+ not_ok $description
+ comment $comments
+
+fi
+
+
+rm $MOUNTDIR/client1/testing.txt >/dev/null
+cleanup_glusterfs
+