Repository navigation
Functional Testing
This is done through codeception acceptance tests in conjunction with a phantomjs container (headless).
Once your containers are up, in your VM run ...
> docker-compose run --rm browser_test /data/codecept run
Or, if you need to run just one of the tests, run ...
> docker-compose run --rm browser_test /data/codecept run tests/acceptance/<the name of the Cept.php file>
If a test fails, then the logouts at the end of the test will not have run. Because of that, you will need to restart your phantomjs container to kill the sessions before trying to run the test again. docker-compose restart phantomjs
The tests are found in .../development/codeception/tests/acceptance. They are similar to the manual tests listed below.
(Remember, output for failed tests can be found in the container's /data/tests/_output folder)
Main SP authenticates through Main Idp. Third SP is also authenticated. Second SP must re-authenticate.
- Kill all your cookies for ssp*
- Browse to http://ssp-sp1.local:8081/module.php/core/authenticate.php
- Click on ssp-hub
- This should redirect to http://ssp-hub.local/module.php/sildisco/disco.php?entityID=ssp-hub.local&...
- Select IdP 1
- This should redirect to http://ssp-idp1.local:8085/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "a" as the password (without the quotation marks).
- This should return you to the main SP at http://ssp-sp1.local:8081/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.
- Browse to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub
- This should get you to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.
- Browse to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub
- This should redirect to http://ssp-idp2.local:8086/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "b" as the password.
- This should get you to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes (but there are none).
- Browse to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub
- This should get you to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.
Second SP authenticates through Second Idp. Main SP is forced to discovery page but is also authenticated. Third SP must re-authenticate.
- Kill all your cookies for ssp*
- Browse to http://ssp-sp2.local:8082/module.php/core/authenticate.php
- Click on ssp-hub
- This should redirect to http://ssp-idp2.local:8086/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "b" as the password.
- This should get you to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes (but there are none).
- Browse to http://ssp-sp1.local:8081/module.php/core/authenticate.php
- Click on ssp-hub
- This should redirect to http://ssp-hub.local/module.php/sildisco/disco.php?entityID=ssp-hub.local&...
- Select IdP 2
- This should return you to the main SP at http://ssp-sp1.local:8081/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes (but there are none).
- Browse to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub
- This should redirect to http://ssp-idp1.local:8085/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "a" as the password.
- This should get you to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.
Third SP authenticates through Main Idp. Main SP is forced to discovery page but is also authenticated. Second SP must re-authenticate.
- Kill all your cookies for ssp*
- Browse to http://ssp-sp3.local:8083/module.php/core/authenticate.php
- Click on ssp-hub
- This should redirect to http://ssp-idp1.local:8085/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "a" as the password.
- This should get you to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.
- Browse to http://ssp-sp1.local:8081/module.php/core/authenticate.php?as=ssp-hub
- This should redirect to http://ssp-hub.local/module.php/sildisco/disco.php?entityID=ssp-hub.local&...
- Select IdP 1
- This should get you to http://ssp-sp1.local:8081/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.
- Browse to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub
- This should redirect to http://ssp-idp2.local:8086/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "b" as the password.
- This should get you to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes (but there are none).
Main SP authenticates through Second Idp. Second SP is also authenticated. Third SP must re-authenticate.
- Kill all your cookies for ssp*
- Browse to http://ssp-sp1.local:8081/module.php/core/authenticate.php
- Click on ssp-hub
- This should redirect to http://ssp-hub.local/module.php/sildisco/disco.php?entityID=ssp-hub.local&...
- Select IdP 2
- This should redirect to http://ssp-idp2.local:8086/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "b" as the password
- This should return you to the main SP at http://ssp-sp1.local:8081/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes (but there are none).
- Browse to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub
- This should get you to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.
- Browse to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub
- This should redirect to http://ssp-idp1.local:8085/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "a" as the password.
- This should get you to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.
- Browse to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub
- This should get you to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.
Second SP authenticates through Second Idp. Main SP is forced to discovery page, chooses main IdP and must authenticate.
- Kill all your cookies for ssp*
- Browse to http://ssp-sp2.local:8082/module.php/core/authenticate.php
- Click on ssp-hub
- This should redirect to http://ssp-idp2.local:8086/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "b" as the password.
- This should get you to http://ssp-sp2.local:8082/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes (but there are none).
- Browse to http://ssp-sp1.local:8081/module.php/core/authenticate.php
- Click on ssp-hub
- This should redirect to http://ssp-hub.local/module.php/sildisco/disco.php?entityID=ssp-hub.local&...
- Select IdP 1
- This should redirect to http://ssp-idp1.local:8085/module.php/core/loginuserpass.php?AuthState=...
- Login as admin using "a" as the password.
- This should get you to http://ssp-sp3.local:8083/module.php/core/authenticate.php?as=ssp-hub and show your saml attributes.