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

Fixed standard output messages when testing

parent 2e8f090d
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ def checkIdP(sp,idp,test): ...@@ -85,7 +85,7 @@ def checkIdP(sp,idp,test):
with open("%s/%s/%s---%s.html" % (ECCS2HTMLDIR,DAY,fqdn_idp,fqdn_sp),"w") as html: with open("%s/%s/%s---%s.html" % (ECCS2HTMLDIR,DAY,fqdn_idp,fqdn_sp),"w") as html:
html.write(page_source) html.write(page_source)
else: else:
print("[page_source of %s]\n%s" % (fqdn_idp,page_source)) print("\n[page_source of '%s' for sp '%s']\n%s" % (fqdn_idp,fqdn_sp,page_source))
except TimeoutException as e: except TimeoutException as e:
if (test is not True): if (test is not True):
...@@ -93,7 +93,7 @@ def checkIdP(sp,idp,test): ...@@ -93,7 +93,7 @@ def checkIdP(sp,idp,test):
with open("%s/%s/%s---%s.html" % (ECCS2HTMLDIR,DAY,fqdn_idp,fqdn_sp),"w") as html: with open("%s/%s/%s---%s.html" % (ECCS2HTMLDIR,DAY,fqdn_idp,fqdn_sp),"w") as html:
html.write("") html.write("")
else: else:
print("[page_source of %s]\nNo source code" % (fqdn_idp)) print("\n[page_source of '%s' for sp '%s']\nNo source code" % (fqdn_idp,fqdn_sp))
return (idp['entityID'],wayfless_url,check_time,"(failed)","Timeout") return (idp['entityID'],wayfless_url,check_time,"(failed)","Timeout")
except Exception as e: except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment