diff options
author | Prashanth Pai <ppai@redhat.com> | 2017-12-22 17:14:10 +0530 |
---|---|---|
committer | Prashanth Pai <ppai@redhat.com> | 2017-12-22 18:10:54 +0530 |
commit | b125ff3e83283f231295873118ed7a170f4284d1 (patch) | |
tree | e5a901c86044cb6ab693f7f94c735588fab928dd /test | |
parent | 06bd1688f0df27854b1d1df3e30d19b22f0d6a53 (diff) |
Expose mounting over unix socket
Change-Id: I17078b6d20372c3935f7bcd8c82f55f96096dd87
Signed-off-by: Prashanth Pai <ppai@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/libgfapi-python-tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/libgfapi-python-tests.py b/test/functional/libgfapi-python-tests.py index cf269d3..c209302 100644 --- a/test/functional/libgfapi-python-tests.py +++ b/test/functional/libgfapi-python-tests.py @@ -37,6 +37,8 @@ else: HOST = 'localhost' VOLNAME = 'test' +GLUSTERD_SOCK_FILE = "/var/run/glusterd.socket" + class BinFileOpsTest(unittest.TestCase): @@ -1150,3 +1152,10 @@ class TestVolumeInit(unittest.TestCase): # Unmount the volume vol.umount() self.assertFalse(vol.mounted) + + def test_unix_socket_mount(self): + vol = Volume(GLUSTERD_SOCK_FILE, VOLNAME, proto="unix") + vol.mount() + self.assertTrue(vol.mounted) + vol.umount() + self.assertFalse(vol.mounted) |