Migrate cvp-sanity to Python3
* use print function from future
* convert dict keys and values to list
* do not use bunch imports
* fix requirements mismatch
Related: PROD-33849
Change-Id: Ifecc3a9dcdcfe3243f7dcf2c709a80e9a7c765a1
diff --git a/test_set/cvp-sanity/tests/test_mounts.py b/test_set/cvp-sanity/tests/test_mounts.py
index cc6f201..3f025dd 100644
--- a/test_set/cvp-sanity/tests/test_mounts.py
+++ b/test_set/cvp-sanity/tests/test_mounts.py
@@ -18,7 +18,7 @@
# Let's exclude cmp, kvm, ceph OSD nodes, mon, cid, k8s-ctl, k8s-cmp nodes
# These nodes will have different mounts and this is expected
- exclude_nodes = local_salt_client.test_ping(
+ exclude_nodes = list(local_salt_client.test_ping(
tgt="I@nova:compute or "
"I@ceph:osd or "
"I@salt:control or "
@@ -26,9 +26,9 @@
"I@kubernetes:* and not I@etcd:* or "
"I@docker:host and not I@prometheus:server and not I@kubernetes:* or "
"I@gerrit:client and I@kubernetes:pool and not I@salt:master",
- expr_form='compound').keys()
+ expr_form='compound').keys())
- if len(mounts_by_nodes.keys()) < 2:
+ if len(list(mounts_by_nodes.keys())) < 2:
pytest.skip("Nothing to compare - only 1 node")
result = {}