summaryrefslogtreecommitdiffstats
path: root/tests/functional/nfs_ganesha/test_nfs_ganesha_acls.py
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2019-12-09 19:36:23 +0530
committerBala Konda Reddy M <bmekala@redhat.com>2019-12-18 10:11:45 +0000
commitbdc29bccfda390fd3cc2953b43a8653f7653c56f (patch)
treebadda443fc5bf3027658d80dd604d2eaf0830546 /tests/functional/nfs_ganesha/test_nfs_ganesha_acls.py
parent0eaf8c8edf16e99bf9f2dea22ced6655ef99587b (diff)
[py2to3] Add py3 support in 'tests/functional/nfs_ganesha'
Change-Id: I7a76e0c2e491caffd7ba1b648b47c4c6a687c89a Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
Diffstat (limited to 'tests/functional/nfs_ganesha/test_nfs_ganesha_acls.py')
-rw-r--r--tests/functional/nfs_ganesha/test_nfs_ganesha_acls.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/functional/nfs_ganesha/test_nfs_ganesha_acls.py b/tests/functional/nfs_ganesha/test_nfs_ganesha_acls.py
index 249b24d79..5921f3b90 100644
--- a/tests/functional/nfs_ganesha/test_nfs_ganesha_acls.py
+++ b/tests/functional/nfs_ganesha/test_nfs_ganesha_acls.py
@@ -26,7 +26,7 @@ from glustolibs.gluster.nfs_ganesha_ops import (
from glustolibs.gluster.nfs_ganesha_libs import (
NfsGaneshaClusterSetupClass,
wait_for_nfs_ganesha_volume_to_get_unexported)
-from glustolibs.gluster.gluster_base_class import runs_on, GlusterBaseClass
+from glustolibs.gluster.gluster_base_class import runs_on
from glustolibs.gluster.exceptions import ExecutionError
import time
import re
@@ -45,7 +45,7 @@ class TestNfsGaneshaAcls(NfsGaneshaClusterSetupClass):
"""
Setup nfs-ganesha if not exists.
"""
- NfsGaneshaClusterSetupClass.setUpClass.im_func(cls)
+ cls.get_super_method(cls, 'setUpClass')()
# Setup nfs-ganesha
ret = cls.setup_nfs_ganesha()
@@ -57,7 +57,7 @@ class TestNfsGaneshaAcls(NfsGaneshaClusterSetupClass):
"""
Setup Volume
"""
- GlusterBaseClass.setUp.im_func(self)
+ self.get_super_method(self, 'setUp')()
# Setup and mount volume
g.log.info("Starting to setip and mount volume %s", self.volname)
@@ -152,7 +152,3 @@ class TestNfsGaneshaAcls(NfsGaneshaClusterSetupClass):
g.log.info("Successfull unmount and cleanup of volume")
else:
raise ExecutionError("Failed to unmount and cleanup volume")
-
- @classmethod
- def tearDownClass(cls):
- NfsGaneshaClusterSetupClass.tearDownClass.im_func(cls)