summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvamahaja <vamahaja@redhat.com>2020-01-07 18:14:48 +0530
committerVaibhav Mahajan <vamahaja@redhat.com>2020-01-13 12:11:49 +0000
commit225ac295bf630189fac4c51d4a359c6024f23625 (patch)
treed0af17f9ea378b8299a8c6d54ac6d2495cb83eea
parent9caf2d117c0fea33ff883addba39998c827945bc (diff)
[py2to3] Fix dict.values() py3 incompatibilities
Change-Id: Ibb96e961b1501ef696858a5eec80422471e877fd Signed-off-by: vamahaja <vamahaja@redhat.com>
-rw-r--r--tests/functional/heketi/test_block_volumes_heketi.py2
-rw-r--r--tests/functional/heketi/test_heketi_device_operations.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/heketi/test_block_volumes_heketi.py b/tests/functional/heketi/test_block_volumes_heketi.py
index 19b9790..1e78180 100644
--- a/tests/functional/heketi/test_block_volumes_heketi.py
+++ b/tests/functional/heketi/test_block_volumes_heketi.py
@@ -110,7 +110,7 @@ class TestBlockVolumeOps(BaseClass):
volumes = heketi_blockvolume_list(
self.heketi_client_node, self.heketi_server_url, json=True)
- existing_vol_ids = volumes.values()[0]
+ existing_vol_ids = list(volumes.values())[0]
for vol_id in created_vol_ids:
self.assertIn(vol_id, existing_vol_ids,
"Block vol with '%s' ID is absent in the "
diff --git a/tests/functional/heketi/test_heketi_device_operations.py b/tests/functional/heketi/test_heketi_device_operations.py
index 4091294..cae880c 100644
--- a/tests/functional/heketi/test_heketi_device_operations.py
+++ b/tests/functional/heketi/test_heketi_device_operations.py
@@ -178,7 +178,7 @@ class TestHeketiDeviceOperations(BaseClass):
def test_device_remove_operation(self, delete_device):
"""Validate remove/delete device using heketi-cli"""
- gluster_server_0 = g.config["gluster_servers"].values()[0]
+ gluster_server_0 = list(g.config["gluster_servers"].values())[0]
try:
device_name = gluster_server_0["additional_devices"][0]
except (KeyError, IndexError):