Skip to content

Commit

Permalink
fixup! test(integration): ensure group migration works
Browse files Browse the repository at this point in the history
  • Loading branch information
blizzz committed Dec 7, 2023
1 parent 2adda46 commit cc26f99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/features/Shibboleth.feature
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ Feature: Shibboleth
And The setting "security-wantAssertionsSigned" is set to "1"
And The setting "localGroupsCheckForMigration" is set to '{\"dropAfter\":9223372036854775807,\"groups\":[\"Astrophysics\",\"Students\"]}'
And the local group "Astrophysics" is created
# Initial login so the user is known and belonging to SAML
# Initial login so the user is known and belonging to SAML, directly followed by a logout
And I send a GET request to "http://localhost:8080/index.php/login"
And I should be redirected to "https://localhost:4443/idp/profile/SAML2/Redirect/SSO"
And I send a POST request to "https://localhost:4443/idp/profile/SAML2/Redirect/SSO?execution=e1s1" with the following data
|j_username|j_password|_eventId_proceed|
|student1 |password | |
And The response should be a SAML redirect page that gets submitted
And I should be redirected to "http://localhost:8080/index.php/apps/dashboard/"
#And I should be redirected to "http://localhost:8080/index.php/apps/dashboard/"
And I send a GET request with requesttoken to "http://localhost:8080/index.php/apps/user_saml/saml/sls"
# Set the proper attributes
And The setting "saml-attribute-mapping-email_mapping" is set to "urn:oid:0.9.2342.19200300.100.1.3"
Expand All @@ -158,7 +158,7 @@ Feature: Shibboleth
|j_username|j_password|_eventId_proceed|
|student1 |password | |
And The response should be a SAML redirect page that gets submitted
And I should be redirected to "http://localhost:8080/index.php/apps/dashboard/"
#And I should be redirected to "http://localhost:8080/index.php/apps/dashboard/"
And The user value "groups" should be "Astrophysics,SAML_Students"
And the group backend of "Astrophysics" should be "Database"
And Then the group backend of "Astrophysics" must not be "user_saml"
Expand Down

0 comments on commit cc26f99

Please sign in to comment.