diff --git a/tests/test_ssl.py b/tests/test_ssl.py index ea1fddf69a3ee114c646a0abfc61f8267d15d0ec..f912a0bd1c8f83ef71e8e8080bba86e3dc9b1dee 100755 --- a/tests/test_ssl.py +++ b/tests/test_ssl.py @@ -29,15 +29,18 @@ conf = es_utils.load_conf() all_ok = True conf_servers = ( - 'MS_SERVER_NAME', - 'MONITOR_SERVER_NAME', - 'CM_SERVER_NAME', + ('MS_SERVER_NAME', 'mediaserver'), + ('MONITOR_SERVER_NAME', 'monitor'), + ('CM_SERVER_NAME', 'campusmanager'), ) -for s in conf_servers: +for s, d in conf_servers: v = conf.get(s) + if v == d: + # vhost is using default value (the service is surely not installed) + continue try: - url = "https://%s" % v + url = 'https://%s' % v print('Checking SSL certificate of %s' % url) requests.get(url) except requests.exceptions.SSLError: