diff options
author | Sri Vignesh <sselvan@redhat.com> | 2020-02-20 17:09:10 +0530 |
---|---|---|
committer | Sri Vignesh <sselvan@redhat.com> | 2020-02-20 13:32:44 +0000 |
commit | 16a3b1f8dd1492fe45861cbd9f3a7d10f988c843 (patch) | |
tree | 50e80fe7757f706c6bff0386881bb0f38655f88c /tests/functional/glusterd/test_volume_status_with_absent_bricks.py | |
parent | df5846416b7ba9c75a8ee6298af5629fabb2aec2 (diff) |
[testfix] Add steps to add peer_probe_servers in cleanup
Change-Id: I0fa6bbacda16fb97d3454a8510a937442b5755a4
Signed-off-by: Sri Vignesh <sselvan@redhat.com>
Diffstat (limited to 'tests/functional/glusterd/test_volume_status_with_absent_bricks.py')
-rw-r--r-- | tests/functional/glusterd/test_volume_status_with_absent_bricks.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/functional/glusterd/test_volume_status_with_absent_bricks.py b/tests/functional/glusterd/test_volume_status_with_absent_bricks.py index 5a3d60485..f47c6b61c 100644 --- a/tests/functional/glusterd/test_volume_status_with_absent_bricks.py +++ b/tests/functional/glusterd/test_volume_status_with_absent_bricks.py @@ -24,6 +24,7 @@ from glustolibs.gluster.exceptions import ExecutionError from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on from glustolibs.gluster.volume_ops import (volume_create, volume_start, volume_status) +from glustolibs.gluster.volume_libs import cleanup_volume from glustolibs.gluster.lib_utils import form_bricks_list @@ -36,10 +37,10 @@ class TestVolumeStatusWithAbsentBricks(GlusterBaseClass): tearDown for every test """ # stopping the volume and Cleaning up the volume - ret = self.cleanup_volume() + ret = cleanup_volume(self.mnode, self.volname) if not ret: - raise ExecutionError("Failed Cleanup the Volume %s" - % self.volname) + raise ExecutionError("Failed to cleanup volume") + g.log.info("Volume deleted successfully : %s", self.volname) # Calling GlusterBaseClass tearDown self.get_super_method(self, 'tearDown')() |