Renamed folder with tests to make them consistent with cvp-runner.groovy
and CVP jobs in cluster Jenkins
Return rsync service into inconsistency_rule
Related-Task: #PROD-23604(PROD:23604)
Change-Id: I94afe350bd1d9c184bafe8e9e270aeb4c6c24c50
diff --git a/test_set/cvp-sanity/tests/test_default_gateway.py b/test_set/cvp-sanity/tests/test_default_gateway.py
new file mode 100644
index 0000000..36ca70e
--- /dev/null
+++ b/test_set/cvp-sanity/tests/test_default_gateway.py
@@ -0,0 +1,23 @@
+import json
+import pytest
+import os
+import utils
+
+
+def test_check_default_gateways(local_salt_client, nodes_in_group):
+ netstat_info = local_salt_client.cmd(
+ "L@"+','.join(nodes_in_group), 'cmd.run', ['ip r | sed -n 1p'], expr_form='compound')
+
+ gateways = {}
+ nodes = netstat_info.keys()
+
+ for node in nodes:
+ if netstat_info[node] not in gateways:
+ gateways[netstat_info[node]] = [node]
+ else:
+ gateways[netstat_info[node]].append(node)
+
+ assert len(gateways.keys()) == 1, \
+ "There were found few gateways: {gw}".format(
+ gw=json.dumps(gateways, indent=4)
+ )