From 43896e998a205f4b3de37ce9eafc7555a7818ebe Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 29 Jan 2024 18:00:13 +0100 Subject: [PATCH] fixup! tests(groups): test keeping local groups /wo mapping --- tests/integration/features/Shibboleth.feature | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration/features/Shibboleth.feature b/tests/integration/features/Shibboleth.feature index c924b685b..fdad153f9 100644 --- a/tests/integration/features/Shibboleth.feature +++ b/tests/integration/features/Shibboleth.feature @@ -432,7 +432,17 @@ 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 local group "Archaeologists" is created + # 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 send a GET request with requesttoken to "http://localhost:8080/index.php/apps/user_saml/saml/sls" + And the cookies are cleared And the user "student1" is added to the group "Archaeologists" + # Now for the actual test When I send a GET request to "http://localhost:8080/index.php/login" 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