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
21bdf159
Commit
21bdf159
authored
4 years ago
by
Nicolas KAROLAK
Browse files
Options
Downloads
Patches
Plain Diff
remove success message to ave less verbose output
parent
0dc14b63
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
+1
-9
1 addition, 9 deletions
tests/test_nginx_vhosts.py
with
1 addition
and
9 deletions
tests/test_nginx_vhosts.py
+
1
−
9
View file @
21bdf159
...
...
@@ -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
()
...
...
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