QA: Sign in as an admin account when adding a license
What does this MR do?
When performing LDAP tests the LDAP user can't add a license because it doesn't have admin rights. Rather than create an Admin LDAP user and have to use it for all LDAP tests, this MR uses an admin user to add the license.
By default GDK's root user will be used but it's also possible to specify an admin user via ADMIN_USERNAME
and ADMIN_PASSWORD
environment variables.
The bulk of the code is in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21657. This MR only changes the factory that's used to add a license.
What are the relevant issue numbers?
gitlab-qa#321 (closed) and https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21354
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
EE specific content should be in the top level /ee
folder -
For a paid feature, have we considered GitLab.com plans, how it works for groups, and is there a design for promoting it to users who aren't on the correct plan?
Edited by Mark Lapierre