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
75fa2f0a
Commit
75fa2f0a
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Changed SSL test.
parent
79850ef7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_ssl.py
+8
-5
8 additions, 5 deletions
tests/test_ssl.py
with
8 additions
and
5 deletions
tests/test_ssl.py
+
8
−
5
View file @
75fa2f0a
...
...
@@ -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
:
...
...
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