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_contrail.py b/test_set/cvp-sanity/tests/test_contrail.py
index 01142b8..9a4e3ee 100644
--- a/test_set/cvp-sanity/tests/test_contrail.py
+++ b/test_set/cvp-sanity/tests/test_contrail.py
@@ -86,10 +86,10 @@
if 'contrail-vrouter-nodemgr' in line:
actual_vrouter_count += 1
- assert actual_vrouter_count == len(cs.keys()),\
+ assert actual_vrouter_count == len(list(cs.keys())),\
'The length of vRouters {} differs' \
' from the length of compute nodes {}'.format(actual_vrouter_count,
- len(cs.keys()))
+ len(list(cs.keys())))
@pytest.mark.smoke
def test_public_ui_contrail(local_salt_client, ctl_nodes_pillar, check_openstack):