Remove warnings from salt output
Warnings from salt commands in output break the json format and
tests fail. Better if we disable them
Related-Bug: PROD-36738
Change-Id: Ibda04f0cb0c0dc6457ffe09b4f9d267d60f9dcbb
diff --git a/test_set/cvp-sanity/tests/test_nodes.py b/test_set/cvp-sanity/tests/test_nodes.py
index 481b331..fcda68c 100644
--- a/test_set/cvp-sanity/tests/test_nodes.py
+++ b/test_set/cvp-sanity/tests/test_nodes.py
@@ -7,7 +7,7 @@
def test_minions_status(local_salt_client):
result = local_salt_client.cmd(
tgt='salt:master',
- param='salt-run manage.status timeout=10 --out=json',
+ param='salt-run manage.status timeout=10 --out=json --log-level=error',
expr_form='pillar', check_status=True)
statuses = {}
try:
diff --git a/test_set/cvp-sanity/tests/test_salt_master.py b/test_set/cvp-sanity/tests/test_salt_master.py
index 691da0a..96f6264 100644
--- a/test_set/cvp-sanity/tests/test_salt_master.py
+++ b/test_set/cvp-sanity/tests/test_salt_master.py
@@ -34,7 +34,7 @@
expr_form='pillar', check_status=True)
salt = list(local_salt_client.cmd(
tgt='salt:master',
- param='salt-run manage.status timeout=10 --out=json',
+ param='salt-run manage.status timeout=10 --out=json --log-level=error',
expr_form='pillar', check_status=True).values())[0] or {}
reclass_warnings = reclass[list(reclass.keys())[0]].split('{\n "base":')[0]
if reclass_warnings: