Skip to content
Snippets Groups Projects
Commit 9dc374eb authored by Marco Malavolti's avatar Marco Malavolti
Browse files

Removed useless things

parent 37384aab
No related branches found
No related tags found
No related merge requests found
...@@ -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']\nNo source code" % (label_idp,fqdn_sp)) print("\n[page_source of '%s' for sp '%s']\nNo source code" % (label_idp,fqdn_sp))
return (idp['entityID'],wayfless_url,check_time,"(failed)","Timeout") return (idp['entityID'],wayfless_url,check_time,"(failed)","Timeout")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment