@@ -20,20 +20,22 @@ from utils import getLogger, getIdPContacts, getDriver
...
@@ -20,20 +20,22 @@ from utils import getLogger, getIdPContacts, getDriver
"""
"""
This script use Selenium and Chromium to select the IdP to check from a Shibboleth SP with the Shibboleth Embedded Discovery Service installed and configured to answer to all eduGAIN IdPs.
The script works with 2 SPs that using Shibboleth Embedded Discovery Service to allow IdP selection on their login page.
The SPs used to check an IdP will be SP24(IDEM) and Attribute Viewer (SWITCH).
The script has been written to simulate an user that inserts the IdP's entityID into the EDS search box and press "Enter" to load its Login Page. The Login Page MUST presents the fields "username" and "password" to pass the check on each SP involved into the test.
The check will be passed when both SPs will return the authentication page of the IdP checked.
If the IdP Login page presente the fields for both selected SP the test is passed, otherwise it is failed.
"""
"""
# The function check that the IdP recognized the SP by presenting its Login page.
# If the IdP Login page contains "username" and "password" fields, than the test is passed.
defcheckIdP(sp,idp):
defcheckIdP(sp,idp):
# Chromedriver MUST be instanced here to avoid problems with SESSION
# Chromedriver MUST be instanced here to avoid problems with SESSION