Skip to content

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:

  1. Group SAML is an EE feature. So you would need EE License installed on your GDK.
  2. 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

  1. 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
  1. 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

Conformity

Edited by Sanad Liaquat

Merge request reports

Loading