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 6, 2023
1 parent ed3d22b commit 64cfb18
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/integration/features/Shibboleth.feature
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,14 @@ Feature: Shibboleth
And The setting "saml-attribute-mapping-email_mapping" is set to "urn:oid:0.9.2342.19200300.100.1.3"
And The setting "saml-attribute-mapping-displayName_mapping" is set to "urn:oid:2.5.4.42 urn:oid:2.5.4.4"
And The setting "saml-attribute-mapping-group_mapping" is set to "groups"
# Already logged in on SAML, we should get redirected back to Nextcloud
# Now login in for good
When I send a GET request to "http://localhost:8080/index.php/login"
Then I should be redirected to "http://localhost:8080/index.php/apps/dashboard/"
Then 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 The user value "groups" should be "Astrophysics"
When I execute the background job for class "\OCA\User_SAML\Jobs\MigrateGroups"
Then the group backend of "Astrophysics" should be "user_saml"
Expand Down

0 comments on commit 64cfb18

Please sign in to comment.