-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify sildisco integration tests, removing equivalent scenarios
- Loading branch information
Showing
6 changed files
with
22 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
31 changes: 19 additions & 12 deletions
31
features/Sp1Idp1Sp2Idp2Sp3.feature → features/sildisco.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,40 @@ | ||
Feature: Ensure I can login to Sp1 through Idp1, must login to Sp2 through Idp2 and am already logged in for Sp3. | ||
Feature: SIL IdP discovery (sildisco) module | ||
|
||
Scenario: Login to SP1 through IDP1 | ||
Scenario: Expect discovery page and login prompt | ||
When I go to the SP1 login page | ||
And the url should match "sildisco/disco.php" | ||
And I should see "to continue to SP1" | ||
And I click on the "IDP 1" tile | ||
And I log in using my "IDP 1" credentials | ||
Then I should see my attributes on SP1 | ||
|
||
Scenario: After IDP1 login, go to SP2 through IDP2 | ||
Given I have authenticated with IDP1 for SP1 | ||
When I go to the SP2 login page | ||
Scenario: Skip discovery page with only one approved IdP | ||
Given I go to the SP2 login page | ||
And I log in using my "IDP 2" credentials | ||
Then I should see my attributes on SP2 | ||
|
||
Scenario: After IDP1 login, go directly to SP3 without credentials | ||
Scenario: Skip login prompt with existing authentication session | ||
Given I have authenticated with IDP1 for SP1 | ||
When I go to the SP3 login page | ||
And the url should match "sildisco/disco.php" | ||
And I should see "to continue to SP3" | ||
And I click on the "IDP 1" tile | ||
Then I should see my attributes on SP3 | ||
|
||
Scenario: Logout of IDP1 | ||
Scenario: Skip discovery and login prompt | ||
Given I have authenticated with IDP2 for SP1 | ||
When I go to the SP2 login page | ||
Then I should see my attributes on SP2 | ||
|
||
Scenario: Show discovery AND login prompt with existing session on different IdP | ||
Given I have authenticated with IDP2 for SP1 | ||
When I go to the SP3 login page | ||
And I should see "to continue to SP3" | ||
And I click on the "IDP 1" tile | ||
And I log in using my "IDP 1" credentials | ||
Then I should see my attributes on SP3 | ||
|
||
Scenario: IdP Logout | ||
Given I have authenticated with IDP1 for SP1 | ||
When I log out of IDP1 | ||
Then I should see "You have now been logged out." | ||
|
||
Scenario: Logout of IDP2 | ||
Given I have authenticated with IDP2 for SP2 | ||
When I log out of IDP2 | ||
Then I should see "You have now been logged out." |