summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi/test_heketi_node_operations.py
diff options
context:
space:
mode:
authorvamahaja <vamahaja@redhat.com>2020-07-14 12:28:53 +0530
committervamahaja <vamahaja@redhat.com>2020-07-14 13:20:59 +0530
commit95cb4148c9ec90d7315a9eb6172751b8b909362f (patch)
treef0eb363d4dd397a71f4d6a68db0f0b62ece19d42 /tests/functional/heketi/test_heketi_node_operations.py
parent6260a8e33244b59ee37d0072f2eae41328134163 (diff)
[TestFix] Fix pytest warnings
Fix consists of - 1. Remove depricated method 'assertEquals'. 2. Add 'junit_family=legacy' to pytest.ini to keep using the legacy version for JUnit XML file. 3. Prepend 'r' for regular expression. Change-Id: I9a804bba3590e33b50aa0c88ded9cf0007afe1e6 Signed-off-by: vamahaja <vamahaja@redhat.com>
Diffstat (limited to 'tests/functional/heketi/test_heketi_node_operations.py')
-rw-r--r--tests/functional/heketi/test_heketi_node_operations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/heketi/test_heketi_node_operations.py b/tests/functional/heketi/test_heketi_node_operations.py
index 1f5e2b04..387bfae4 100644
--- a/tests/functional/heketi/test_heketi_node_operations.py
+++ b/tests/functional/heketi/test_heketi_node_operations.py
@@ -680,7 +680,7 @@ class TestHeketiNodeOperations(baseclass.BaseClass):
for vol in vol_list:
vol_info = h.heketi_volume_expand(
h_node, h_url, vol['id'], '1', json=True)
- self.assertEquals(2, vol_info['size'])
+ self.assertEqual(2, vol_info['size'])
else:
msg = "Invalid vol_operation %s" % vol_operation