summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSushil Gupta <susgupta@redhat.com>2020-12-01 17:09:46 +0530
committerVaibhav Mahajan <vamahaja@redhat.com>2020-12-01 12:04:50 +0000
commit3f0af17da98880664e01f8ac472dde653482127a (patch)
treeb30a178a50afb42de2e7afe3c8f4354f39b1b3f1
parent161ffb5e9541738383c973e4a4c6f6ce9bbbb7b6 (diff)
[TestFix] Fix clean-up for heketi node operation
Signed-off-by: Sushil Gupta <susgupta@redhat.com> Change-Id: I2b1ed22c0a74d29e1cf50e469377ee188d3ea347
-rw-r--r--tests/functional/provisioning/test_dev_path_mapping_block.py4
-rw-r--r--tests/functional/provisioning/test_dev_path_mapping_file.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional/provisioning/test_dev_path_mapping_block.py b/tests/functional/provisioning/test_dev_path_mapping_block.py
index 21caf85..b0955f5 100644
--- a/tests/functional/provisioning/test_dev_path_mapping_block.py
+++ b/tests/functional/provisioning/test_dev_path_mapping_block.py
@@ -32,11 +32,11 @@ class TestDevPathMapping(baseclass.GlusterBlockBaseClass):
# Disable 4th and other nodes
for node_id in h_nodes_list[3:]:
- heketi_ops.heketi_node_disable(
- self.h_node, self.h_server, node_id)
self.addCleanup(
heketi_ops.heketi_node_enable,
self.h_node, self.h_server, node_id)
+ heketi_ops.heketi_node_disable(
+ self.h_node, self.h_server, node_id)
h_info = heketi_ops.heketi_node_info(
self.h_node, self.h_server, h_nodes_list[0], json=True)
diff --git a/tests/functional/provisioning/test_dev_path_mapping_file.py b/tests/functional/provisioning/test_dev_path_mapping_file.py
index 8d237a9..741ad51 100644
--- a/tests/functional/provisioning/test_dev_path_mapping_file.py
+++ b/tests/functional/provisioning/test_dev_path_mapping_file.py
@@ -33,11 +33,11 @@ class TestDevPathMapping(baseclass.BaseClass):
# Disable 4th and other nodes
for node_id in h_nodes_list[3:]:
- heketi_ops.heketi_node_disable(
- self.h_node, self.h_server, node_id)
self.addCleanup(
heketi_ops.heketi_node_enable,
self.h_node, self.h_server, node_id)
+ heketi_ops.heketi_node_disable(
+ self.h_node, self.h_server, node_id)
h_info = heketi_ops.heketi_node_info(
self.h_node, self.h_server, h_nodes_list[0], json=True)