[CVP,Q4] Add logging for salt-api requests/responses
Change-Id: I0dd73c60cc4364ce5962ddb2520390ad3ee32f06
Related-PROD: PROD-30482
diff --git a/test_set/cvp-sanity/tests/test_k8s.py b/test_set/cvp-sanity/tests/test_k8s.py
index 97c3490..1404225 100644
--- a/test_set/cvp-sanity/tests/test_k8s.py
+++ b/test_set/cvp-sanity/tests/test_k8s.py
@@ -1,6 +1,7 @@
import pytest
import json
import os
+import logging
def test_k8s_get_cs_status(local_salt_client):
@@ -139,9 +140,9 @@
hostname = 'https://docker-dev-virtual.docker.mirantis.net/artifactory/webapp/'
response = os.system('curl -s --insecure {} > /dev/null'.format(hostname))
if response == 0:
- print '{} is AVAILABLE'.format(hostname)
+ logging.info('{} is AVAILABLE'.format(hostname))
else:
- print '{} IS NOT AVAILABLE'.format(hostname)
+ logging.error('{} IS NOT AVAILABLE'.format(hostname))
def test_k8s_dashboard_available(local_salt_client):