Reconfigure GitLab docker image to be able to use non-production EE_LICENSE
What does this MR do?
A bit of background - We'd like to switch to use ee_license (activation code in the future) that's generated on staging, so that it doesn't pollute production database, and we have more flexibilities with writing more new tests. Ref: https://gitlab.com/gitlab-org/gitlab-qa/-/issues/657+ So this MR:
-
Address https://gitlab.com/gitlab-org/gitlab-qa/-/issues/659+
- This MR allows tests to configure
gitlab_rails['env']
ingitlab.rb
file from different entries, and combine them together to write to the file
- This MR allows tests to configure
-
Add a
test_license_mode
variable to enable GitLab install to be able to use license/activation code generated on staging environment. -
Remove
Test::Integration::CloudActivation
test scenario- As we now config GitLab via
test_license_mode
variable, we don't need special config for cloud_activation suite.
- As we now config GitLab via
Next Step
Once the MR is merged, we need to follow steps below
- Update CI variables in
gitlab-qa
project- Update
TEST_LICENSE_MODE
totrue
- Update
EE_LICENSE
to a staging license (value available in QA vault)
- Update
- Update CI variables in
gitlab-qa-mirror
project- Update
TEST_LICENSE_MODE
totrue
- Update
EE_LICENSE
to a staging license (value available in QA vault)
- Update
Testing pipeline result:
Pipeline result with new EE_LICENSE
value and TEST_LICENSE_MODE
set to true
- https://gitlab.com/gitlab-org/gitlab-qa/-/pipelines/452862392