summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorAlpha <alpha@pokesplash.net>2015-08-31 01:28:53 -0400
committerPrashanth Pai <ppai@redhat.com>2018-03-28 17:39:15 +0530
commit4fe135300dbb7b7c9f3f0d0676ea76149414fb6b (patch)
treeb77570e5152e195c2c9395d32882c4f65312613e /test/unit
parentb5073b090535744608164e266badba919298f894 (diff)
Disable logging by default
Superusers should not be required to use this API with default settings. Provide a disable_logging method of Volume. Ensure that set_logging gets called with new values. Change-Id: Ia27a682c96d6ca28f85d43f9d8483f08d1dc6367 Signed-off-by: Alpha <alpha@pokesplash.net> Signed-off-by: Prashanth Pai <ppai@redhat.com>
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/gluster/test_gfapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/gluster/test_gfapi.py b/test/unit/gluster/test_gfapi.py
index 4b58597..4216f96 100644
--- a/test/unit/gluster/test_gfapi.py
+++ b/test/unit/gluster/test_gfapi.py
@@ -449,7 +449,7 @@ class TestVolume(unittest.TestCase):
_m_set_logging = Mock(return_value=-1)
with patch("gluster.gfapi.api.glfs_set_logging", _m_set_logging):
self.assertRaises(LibgfapiException, v.set_logging, "/dev/null", 7)
- _m_set_logging.assert_called_once_with(v.fs, None, 7)
+ _m_set_logging.assert_called_once_with(v.fs, "/dev/null", 7)
def test_chmod_success(self):
mock_glfs_chmod = Mock()