Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
59a62ae4
Commit
59a62ae4
authored
6 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_nginx_vhosts.py
+2
-2
2 additions, 2 deletions
tests/test_nginx_vhosts.py
with
2 additions
and
2 deletions
tests/test_nginx_vhosts.py
+
2
−
2
View file @
59a62ae4
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment