From f5d90b8a7012aff081cfdc33c09b957c646da149 Mon Sep 17 00:00:00 2001 From: Marco Malavolti <marco.malavolti@garr.it> Date: Tue, 18 Feb 2020 13:24:59 +0100 Subject: [PATCH] Added .gitgnore and small change on script --- .gitignore | 2 ++ eccs2.py | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f90d43f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +selenium_chromedriver.log +*.swp diff --git a/eccs2.py b/eccs2.py index 8ad07c4..d9bb4e9 100755 --- a/eccs2.py +++ b/eccs2.py @@ -109,7 +109,14 @@ if __name__=="__main__": #listIdPs = getIdPs() for idp in listIdPs: + result = [] for sp in sps: - print("IdP '%s' on SP '%s' results into: %s" % (idp, sp, checkIdP(driver,sp,idp))) + result.append(checkIdP(driver,sp,idp)) + + # se tutti e 2 i check sono andati bene, allora l'IdP รจ OK, altrimenti no. + if (result[0] == result[1] == "OK"): + print("IdP '%s' results into: OK" % (idp)) + else: + print("IdP '%s' results into: NOT OK" % (idp)) driver.close() -- GitLab