Add group managed accounts spec
What does this MR do?
Adds e2e tests for Group managed accounts and updates existing tests for stability.
How to run these tests against the GDK:
- Group SAML is an EE feature. So you would need EE License installed on your GDK.
- Setup SAML as an OmniAuth provider by updating these setting in your
config/gitlab.yml
file:
omniauth:
enabled: true
allow_single_sign_on: ["saml"]
block_auto_created_users: false
providers:
- { name: 'group_saml' }
Restart the GDK
- Run SimpleSAML in a docker container (update localhost and port if necessary):
docker run --name=group_saml_qa_idp -p 8080:8080 -p 8443:8443 \
-e SIMPLESAMLPHP_SP_ENTITY_ID=http://localhost:3000/groups/zebra_1 \
-e SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://localhost:3000/groups/zebra_1/-/saml/callback \
-d jamedjo/test-saml-idp
- Run the tests from the
<path_to_gdk>/gitlab/qa
directory:
GITLAB_SANDBOX_NAME="zebra_1" QA_DEBUG=true CHROME_HEADLESS=false bin/qa Test::Instance http://localhost:3000 qa/specs/features/ee/browser_ui/1_manage/group/group_saml_sso_spec.rb --tag orchestrated
- Closes gitlab-org/quality/testcases#242 (closed)
- Closes #34434 (closed)
- Closes https://gitlab.com/gitlab-org/quality/nightly/issues/140
Conformity
Edited by Sanad Liaquat