From 21bdf1592231d516f0f8ad9d3fd22803bc4a4491 Mon Sep 17 00:00:00 2001
From: Nicolas KAROLAK <nicolas@karolak.fr>
Date: Mon, 6 Apr 2020 09:14:06 +0000
Subject: [PATCH] remove success message to ave less verbose output

---
 tests/test_nginx_vhosts.py | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/tests/test_nginx_vhosts.py b/tests/test_nginx_vhosts.py
index ea0cd1a1..69331ca4 100755
--- a/tests/test_nginx_vhosts.py
+++ b/tests/test_nginx_vhosts.py
@@ -119,8 +119,6 @@ def test_vhost(
                     ip_warning = None
                 else:
                     u.warning(ip_warning)
-            else:
-                u.success("domain: resolve to 127.0.0.1")
             # test url
             req_error = False
             try:
@@ -145,8 +143,6 @@ def test_vhost(
                 if req_time > 10000:
                     u.warning(f"status: {code}, {req_time}ms")
                     warnings += 1
-                else:
-                    u.success(f"status: {code}, {req_time}ms")
                 if "mediaserver" in name and wowza_dir:
                     # test /streaming url
                     try:
@@ -168,8 +164,6 @@ def test_vhost(
                     elif req_time > 10000:
                         u.warning(f"streaming: {code}, {req_time}ms")
                         warnings += 1
-                    else:
-                        u.success(f"streaming: {code}, {req_time}ms")
             tested += 1
 
             if ip_warning:
@@ -177,6 +171,7 @@ def test_vhost(
 
             if ip_error or req_error:
                 errors += 1
+
     return tested, warnings, errors
 
 
@@ -191,10 +186,7 @@ def main():
     # check that Wowza is installed
     wowza_dir = "/usr/local/WowzaStreamingEngine"
     if not Path(wowza_dir).exists():
-        u.info(f"wowza is not installed ('wowza_dir' does not exist).")
         wowza_dir = None
-    else:
-        u.info("wowza is installed, /streaming/ will be tested on mediaserver vhosts.")
 
     # get envsetup conf
     conf = u.load_conf()
-- 
GitLab