diff options
| author | Sri Vignesh <sselvan@redhat.com> | 2020-05-11 12:12:59 +0530 |
|---|---|---|
| committer | Bala Konda Reddy M <bala12352@gmail.com> | 2020-05-11 14:39:32 +0000 |
| commit | c6ecdf1b82cc6215c058aeaeeeacc70c0f6d82b0 (patch) | |
| tree | ec293cdd2d409c1f18142b6951bc8978f6a04c38 /tests/functional/dht/test_dht_copy_dir.py | |
| parent | 94dd903a6829041b5791bbc36b309892f4cf3616 (diff) | |
[TestFix][DHT] Moving test steps from teardown class to teardown
Move cases from teardown class to teardown in dht
Change-Id: Id0cf120c6229715521ae19fd4bb00cad553d701f
Signed-off-by: Sri Vignesh <sselvan@redhat.com>
Diffstat (limited to 'tests/functional/dht/test_dht_copy_dir.py')
| -rw-r--r-- | tests/functional/dht/test_dht_copy_dir.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/functional/dht/test_dht_copy_dir.py b/tests/functional/dht/test_dht_copy_dir.py index 60ff4406a..a2308b5c2 100644 --- a/tests/functional/dht/test_dht_copy_dir.py +++ b/tests/functional/dht/test_dht_copy_dir.py @@ -202,17 +202,17 @@ class DhtCopyTest(GlusterBaseClass): raise ExecutionError("Failed to Setup_Volume and Mount_Volume") g.log.info("Successful in Setup Volume and Mount Volume") - @classmethod - def tearDownClass(cls): + def tearDown(self): - # Cleanup Volume - g.log.info("Starting to clean up Volume %s", cls.volname) - ret = cls.unmount_volume_and_cleanup_volume(cls.mounts) + # Unmount and cleanup original volume + g.log.info("Starting to Unmount Volume and Cleanup Volume") + ret = self.unmount_volume_and_cleanup_volume(mounts=self.mounts) if not ret: - raise ExecutionError("Failed to create volume") - g.log.info("Successful in cleaning up Volume %s", cls.volname) + raise ExecutionError("Failed to umount the vol & cleanup Volume") + g.log.info("Successful in umounting the volume and Cleanup") - cls.get_super_method(cls, 'tearDownClass')() + # Calling GlusterBaseClass tearDown + self.get_super_method(self, 'tearDown')() def test_copy_directory(self): |
