diff options
Diffstat (limited to 'tests/functional/quota/test_negative_quota.py')
-rw-r--r-- | tests/functional/quota/test_negative_quota.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/functional/quota/test_negative_quota.py b/tests/functional/quota/test_negative_quota.py index d1bb807ff..d420dd153 100644 --- a/tests/functional/quota/test_negative_quota.py +++ b/tests/functional/quota/test_negative_quota.py @@ -18,9 +18,9 @@ import uuid from glusto.core import Glusto as g from glustolibs.gluster.gluster_base_class import (GlusterBaseClass, runs_on) -from glustolibs.gluster.quota_ops import (enable_quota, - set_quota_soft_timeout, - set_quota_hard_timeout) +from glustolibs.gluster.quota_ops import (quota_enable, + quota_set_soft_timeout, + quota_set_hard_timeout) from glustolibs.gluster.exceptions import ExecutionError @@ -91,7 +91,7 @@ class TestNegativeQuota(GlusterBaseClass): """ g.log.info("enabling quota for %s volume", self.volname) - ret, _, _ = enable_quota(self.mnode, self.volname) + ret, _, _ = quota_enable(self.mnode, self.volname) self.assertEqual(ret, 0, "Error in enabling quota") # test to disable quota by spell mistake @@ -117,14 +117,14 @@ class TestNegativeQuota(GlusterBaseClass): """ This testcase try to enable soft/hard timeouts by giving huge value , all cases has to return false """ - ret, _, err = enable_quota(self.mnode, self.volname) + ret, _, err = quota_enable(self.mnode, self.volname) self.assertEqual(ret, 0, "Error in enabling quota for %s" % (self.volname)) # now try to enable timeout with more time time_in_secs = 100 * 60 * 60 g.log.info("Setting up soft timeout with %d secs", time_in_secs) - ret, _, err = set_quota_soft_timeout(self.mnode, + ret, _, err = quota_set_soft_timeout(self.mnode, self.volname, str(time_in_secs)) errmsg = ("quota command failed : '%d' in " @@ -135,7 +135,7 @@ class TestNegativeQuota(GlusterBaseClass): # now try to enable hard timeout with more time g.log.info("Setting up hard timeout with %d secs", time_in_secs) - ret, _, err = set_quota_hard_timeout(self.mnode, + ret, _, err = quota_set_hard_timeout(self.mnode, self.volname, str(time_in_secs)) errmsg = ("quota command failed : '%d' in " |