summaryrefslogtreecommitdiffstats
path: root/tests/functional/nfs_ganesha/root-squash/test_root_squash_with_glusterd_restart.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/nfs_ganesha/root-squash/test_root_squash_with_glusterd_restart.py')
-rw-r--r--tests/functional/nfs_ganesha/root-squash/test_root_squash_with_glusterd_restart.py30
1 files changed, 5 insertions, 25 deletions
diff --git a/tests/functional/nfs_ganesha/root-squash/test_root_squash_with_glusterd_restart.py b/tests/functional/nfs_ganesha/root-squash/test_root_squash_with_glusterd_restart.py
index 9e2a1197a..5ed925400 100644
--- a/tests/functional/nfs_ganesha/root-squash/test_root_squash_with_glusterd_restart.py
+++ b/tests/functional/nfs_ganesha/root-squash/test_root_squash_with_glusterd_restart.py
@@ -20,14 +20,13 @@
"""
from glusto.core import Glusto as g
from glustolibs.gluster.exceptions import ExecutionError
-from glustolibs.gluster.gluster_base_class import runs_on
+from glustolibs.gluster.gluster_base_class import runs_on, GlusterBaseClass
from glustolibs.gluster.nfs_ganesha_libs import (
- NfsGaneshaClusterSetupClass,
- wait_for_nfs_ganesha_volume_to_get_unexported)
+ wait_for_nfs_ganesha_volume_to_get_unexported)
from glustolibs.io.utils import get_mounts_stat
from glustolibs.gluster.nfs_ganesha_ops import (
- set_root_squash,
- unexport_nfs_ganesha_volume)
+ set_root_squash,
+ unexport_nfs_ganesha_volume)
from glustolibs.gluster.gluster_init import (
is_glusterd_running, restart_glusterd)
from glustolibs.gluster.peer_ops import wait_for_peers_to_connect
@@ -38,21 +37,7 @@ from glustolibs.gluster.glusterfile import set_file_permissions
@runs_on([['replicated', 'distributed', 'distributed-replicated',
'dispersed', 'distributed-dispersed'],
['nfs']])
-class TestNfsGaneshaRootSquash(NfsGaneshaClusterSetupClass):
- @classmethod
- def setUpClass(cls):
- """
- Setup nfs-ganesha if not exists.
- """
- cls.get_super_method(cls, 'setUpClass')()
-
- # Setup nfs-ganesha
- ret = cls.setup_nfs_ganesha()
- if not ret:
- raise ExecutionError("Failed to setup nfs-ganesha cluster "
- "ganesha cluster")
- g.log.info("nfs-ganesha cluster is healthy")
-
+class TestNfsGaneshaRootSquash(GlusterBaseClass):
def setUp(self):
"""
Setup Volume
@@ -183,8 +168,3 @@ class TestNfsGaneshaRootSquash(NfsGaneshaClusterSetupClass):
g.log.info("Successful unmount and cleanup of volume")
else:
raise ExecutionError("Failed to unmount and cleanup volume")
-
- @classmethod
- def tearDownClass(cls):
- cls.get_super_method(cls, 'tearDownClass')(
- delete_nfs_ganesha_cluster=False)