Add new test to check that all nodes has updates.mirantis.com for all nodes

PROD-36010

Change-Id: I60e7ed358b510fff30a2f3c8f72a71235e578a3d
diff --git a/test_set/cvp-sanity/tests/test_packet_checker.py b/test_set/cvp-sanity/tests/test_packet_checker.py
index f72275d..53ddee6 100644
--- a/test_set/cvp-sanity/tests/test_packet_checker.py
+++ b/test_set/cvp-sanity/tests/test_packet_checker.py
@@ -185,3 +185,24 @@
         "{}".format(
             group, json.dumps(modules_with_different_versions, indent=4))
     )
+
+
+@pytest.mark.full
+def test_restricted_updates_repo(local_salt_client):
+    restricted_repo_enabled = local_salt_client.pillar_get(
+        tgt="I@salt:master",
+        param='_param:updates_mirantis_version',
+        expr_form='compound')
+    if not restricted_repo_enabled:
+        pytest.skip("This env doesn't required the restricted ubuntu repo")
+
+    repos_by_nodes=local_salt_client.cmd(
+        tgt="*",
+        param="apt-cache policy |grep updates.mirantis.com"
+        )
+
+    assert all(repos_by_nodes.values()), \
+        "Next nodes don't have updates.mirantis.com in sources.list: {}".\
+            format({node for node, repo
+                   in repos_by_nodes.items()
+                   if not repo})
\ No newline at end of file