summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrashanth Pai <ppai@redhat.com>2015-06-22 14:29:13 +0530
committerPrashanth Pai <ppai@redhat.com>2015-09-16 14:28:44 +0530
commitf99520e231fee40ef29c866ddd3ea5eef538d3b0 (patch)
treeaa88a57329c013ac3dee3389bedb14bc7642a64e
parentf3acbc844a105d342a3133789f01eaf713a981d1 (diff)
functests: Change default host name to localhost
Without this change, user (developer) will have to modify test.conf (tracked by git) every time he has to run functional tests or has to edit /etc/hosts and add entry for 'gfshost' Change-Id: I6d41a657b0cae614513e2925e73138da46ddaf04 Signed-off-by: Prashanth Pai <ppai@redhat.com>
-rw-r--r--doc/markdown/dev_guide.md2
-rw-r--r--test/functional/libgfapi-python-tests.py4
-rw-r--r--test/test.conf2
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/markdown/dev_guide.md b/doc/markdown/dev_guide.md
index 9ac7f1d..8ca72c6 100644
--- a/doc/markdown/dev_guide.md
+++ b/doc/markdown/dev_guide.md
@@ -169,7 +169,7 @@ gluster volume start test
### Important Notes:
#### Definining a hostname
-GlusterFS does not allow for specifiyng `localhost` as a valid hostname when creating a volume. Make sure to set host and volume information in test/test.conf file. The default host is 'gfshost' and default volume name is 'test'.
+GlusterFS does not allow for specifiyng `localhost` as a valid hostname when creating a volume. However, `localhost` can be used to mount a volume. Make sure to set host and volume information in test/test.conf file. The default host is 'localhost' and default volume name is 'test'.
#### Stopping services
For the purpose of running this test, stop the `firewalld` service and disable `selinux`.
diff --git a/test/functional/libgfapi-python-tests.py b/test/functional/libgfapi-python-tests.py
index 87dbfe0..cef0f01 100644
--- a/test/functional/libgfapi-python-tests.py
+++ b/test/functional/libgfapi-python-tests.py
@@ -26,13 +26,13 @@ if config:
try:
HOST = config.get('func_test', 'gfs_host')
except (NoSectionError, NoOptionError):
- HOST = 'gfshost'
+ HOST = 'localhost'
try:
VOLNAME = config.get('func_test', 'gfs_volname')
except (NoSectionError, NoOptionError):
VOLNAME = 'test'
else:
- HOST = 'gfshost'
+ HOST = 'localhost'
VOLNAME = 'test'
diff --git a/test/test.conf b/test/test.conf
index 4bf4dff..8e18f60 100644
--- a/test/test.conf
+++ b/test/test.conf
@@ -1,3 +1,3 @@
[func_test]
-gfs_host = gfshost
+gfs_host = localhost
gfs_volname = test