diff --git a/tests/test_nginx_vhosts.py b/tests/test_nginx_vhosts.py index ea0cd1a15e3fde50680365c225c89c37e69add35..69331ca497290e8822d69ccbe60410da96c7fbb1 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()