Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Connectivity Check
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
edugain
eduGAIN Connectivity Check
Commits
9dc374eb
Commit
9dc374eb
authored
4 years ago
by
Marco Malavolti
Browse files
Options
Downloads
Patches
Plain Diff
Removed useless things
parent
37384aab
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
eccs2.py
+2
-4
2 additions, 4 deletions
eccs2.py
with
2 additions
and
4 deletions
eccs2.py
+
2
−
4
View file @
9dc374eb
...
@@ -7,7 +7,7 @@ import re
...
@@ -7,7 +7,7 @@ import re
import
requests
import
requests
import
sys
import
sys
from
eccs2properties
import
DAY
,
ECCS2HTMLDIR
,
ECCS2OUTPUTDIR
,
ECCS2RESULTSLOG
,
ECCS2SPS
,
ECCS2SELENIUMDEBUG
,
ROBOTS_USER_AGENT
,
ECCS2REQUESTSTIMEOUT
,
FEDS_DISABLED_DICT
,
IDPS_DISABLED_DICT
from
eccs2properties
import
DAY
,
ECCS2HTMLDIR
,
ECCS2OUTPUTDIR
,
ECCS2RESULTSLOG
,
ECCS2SPS
,
ECCS2SELENIUMDEBUG
,
ROBOTS_USER_AGENT
,
ECCS2REQUESTSTIMEOUT
,
FEDS_DISABLED_DICT
,
IDPS_DISABLED_DICT
,
ECCS2SELENIUMPAGELOADTIMEOUT
from
pathlib
import
Path
from
pathlib
import
Path
from
selenium.common.exceptions
import
TimeoutException
from
selenium.common.exceptions
import
TimeoutException
from
urllib3.util
import
parse_url
from
urllib3.util
import
parse_url
...
@@ -47,8 +47,6 @@ def checkIdP(sp,idp,test):
...
@@ -47,8 +47,6 @@ def checkIdP(sp,idp,test):
return
None
return
None
# Configure Blacklists
# Configure Blacklists
#federations_disabled_list = FEDS_DISABLED_LIST
#idps_disabled_list = IDPS_DISABLED_LIST
federations_disabled_dict
=
FEDS_DISABLED_DICT
federations_disabled_dict
=
FEDS_DISABLED_DICT
idps_disabled_dict
=
IDPS_DISABLED_DICT
idps_disabled_dict
=
IDPS_DISABLED_DICT
...
@@ -97,7 +95,7 @@ def checkIdP(sp,idp,test):
...
@@ -97,7 +95,7 @@ def checkIdP(sp,idp,test):
if
(
test
is
not
True
):
if
(
test
is
not
True
):
# Put an empty string into the page_source file
# Put an empty string into the page_source file
with
open
(
"
%s/%s/%s---%s.html
"
%
(
ECCS2HTMLDIR
,
DAY
,
label_idp
,
fqdn_sp
),
"
w
"
)
as
html
:
with
open
(
"
%s/%s/%s---%s.html
"
%
(
ECCS2HTMLDIR
,
DAY
,
label_idp
,
fqdn_sp
),
"
w
"
)
as
html
:
html
.
write
(
"
"
)
html
.
write
(
"
<html><h1>The IdP Login page was not loaded within %d seconds.</h1></html>
"
%
ECCS2SELENIUMPAGELOADTIMEOUT
)
else
:
else
:
print
(
"
\n
[page_source of
'
%s
'
for sp
'
%s
'
]
\n
No source code
"
%
(
label_idp
,
fqdn_sp
))
print
(
"
\n
[page_source of
'
%s
'
for sp
'
%s
'
]
\n
No source code
"
%
(
label_idp
,
fqdn_sp
))
return
(
idp
[
'
entityID
'
],
wayfless_url
,
check_time
,
"
(failed)
"
,
"
Timeout
"
)
return
(
idp
[
'
entityID
'
],
wayfless_url
,
check_time
,
"
(failed)
"
,
"
Timeout
"
)
...
...
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