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_rabbit_cluster.py b/test_set/cvp-sanity/tests/test_rabbit_cluster.py
index f90c54f..d3375f3 100644
--- a/test_set/cvp-sanity/tests/test_rabbit_cluster.py
+++ b/test_set/cvp-sanity/tests/test_rabbit_cluster.py
@@ -38,7 +38,7 @@
running_nodes_count = 0
# rabbitmqctl cluster_status output contains
# 3 * # of nodes 'rabbit@' entries + 1
- running_nodes_count = (rabbit_actual_data[node].count('rabbit@') - 1)/3
+ running_nodes_count = (rabbit_actual_data[node].count('rabbit@') - 1)//3
# update control dictionary with values
# {node:actual_cluster_size_for_node}
if required_cluster_size_dict[node] != running_nodes_count:
@@ -48,5 +48,5 @@
"RabbitMQ cluster is probably "
"broken - the cluster size for each node should be ({}),\nbut the "
"following nodes have other values:\n{}".format(
- len(required_cluster_size_dict.keys()), control_dict)
+ len(list(required_cluster_size_dict.keys())), control_dict)
)