Skip to content

Latest commit

 

History

History
132 lines (106 loc) · 8.27 KB

functional_testing.md

File metadata and controls

132 lines (106 loc) · 8.27 KB

Automated Testing

This is done through behat acceptance tests

Once your containers are up, in your VM run ...

> docker compose run --rm test /data/run-integration-tests.sh

Or, if you need to run just one of the tests, run ...

> docker compose run --rm test bash

then

$ vendor/bin/behat features/mfa.feature:7

The tests are found in /features. They are similar to the manual tests listed below.

Manual Testing

See Local Testing for instructions to set up your local development environment.

Main SP authenticates through Main Idp. Third SP is also authenticated. Second SP must re-authenticate.

Ensure main SP goes to discovery page and can login through the main IdP

Ensure third SP is also authenticated

Ensure second SP is forced to authenticate

Ensure third SP is still authenticated

Second SP authenticates through Second Idp. Main SP is forced to discovery page but is also authenticated. Third SP must re-authenticate.

Ensure second SP can login through the second IdP

Ensure main SP goes to discovery page but is authenticated

Ensure third SP is forced to authenticate

Third SP authenticates through Main Idp. Main SP is forced to discovery page but is also authenticated. Second SP must re-authenticate.

Ensure third SP can login through the main IdP

Ensure main SP goes to discovery page but is authenticated

Ensure second SP is forced to authenticate

Main SP authenticates through Second Idp. Second SP is also authenticated. Third SP must re-authenticate.

Ensure main SP goes to discovery page and can login through the second IdP

Ensure second SP is also authenticated

Ensure third SP is forced to authenticate

Ensure second SP is still authenticated

Second SP authenticates through Second Idp. Main SP is forced to discovery page, chooses main IdP and must authenticate.

Ensure second SP can login through the second IdP

Ensure main SP goes to discovery page and must authenticate when choosing the main Idp