Skip to content
Snippets Groups Projects
Commit 59a62ae4 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Consider 401 responses as OK in Nginx vhost test (refs #27163).

parent 7c38eee3
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ except ImportError:
'''
This script checks for all enabled vhosts in Nginx conf that:
* The response status code is 200 or 403.
* The response status code is 200, 401 or 403.
* The host is resolved as 127.0.0.1.
* The Wowza response is correct on /streaming/ (only for mediaserver vhosts).
'''
......@@ -73,7 +73,7 @@ def test_vhost(ports_info=None, domains=None, resolution_ignored=None, celerity_
req_time = 0
else:
code = req.status_code
if code not in (200, 403) and domain != 'localhost' and code != 404:
if code not in (200, 401, 403) and domain != 'localhost' and code != 404:
sys.stdout.write('\033[91mKO (%s, %sms)\033[0m' % (code, req_time))
req_error = True
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment