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_single_vip.py b/test_set/cvp-sanity/tests/test_single_vip.py
new file mode 100644
index 0000000..29bdb88
--- /dev/null
+++ b/test_set/cvp-sanity/tests/test_single_vip.py
@@ -0,0 +1,24 @@
+import pytest
+import utils
+import os
+from collections import Counter
+
+
+def test_single_vip(local_salt_client, nodes_in_group):
+ local_salt_client.cmd("L@"+','.join(nodes_in_group), 'saltutil.sync_all', expr_form='compound')
+ nodes_list = local_salt_client.cmd(
+ "L@"+','.join(nodes_in_group), 'grains.item', ['ipv4'], expr_form='compound')
+
+ ipv4_list = []
+
+ for node in nodes_list:
+ ipv4_list.extend(nodes_list.get(node).get('ipv4'))
+
+ cnt = Counter(ipv4_list)
+
+ for ip in cnt:
+ if ip == '127.0.0.1':
+ continue
+ elif cnt[ip] > 1:
+ assert "VIP IP duplicate found " \
+ "\n{}".format(ipv4_list)