E2E: Add AiGatewayNoLicense Orchestrated Tests
What does this MR do and why?
Relates to https://gitlab.com/gitlab-org/quality/quality-engineering/team-tasks/-/issues/2503
This MR adds new self-managed orchestrated tests to ee/api/3_create/code_suggestions_spec.rb
and ee/browser_ui/3_create/web_ide/code_suggestions_in_web_ide_spec.rb
to verify that code suggestions is not accessible when no license is added to the GitLab instance.
These tests will run in a new job named ai-gateway-no-license
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Check out this branch locally as well as the latest
master
ingitlab-qa
- In your gdk/gitlab directory on this branch, build a QA docker image with a custom tag:
docker build -t registry.gitlab.com/gitlab-org/gitlab/gitlab-ee-qa:your-custom-tag --file ./qa/Dockerfile ./
- Then, tag the latest EE image for the corresponding GitLab image:
docker tag gitlab/gitlab-ee:latest gitlab/gitlab-ee:your-custom-tag
- In
gitlab-qa
, export the following environment variables:
export QA_SKIP_PULL=true
export CHROME_DISABLE_DEV_SHM=true
export GITLAB_QA_ADMIN_ACCESS_TOKEN=<from admin_access_token_seed file in gitlab-qa>
- Run the tests:
exe/gitlab-qa Test::Integration::AiGatewayNoLicense gitlab/gitlab-ee:your-custom-tag
Edited by Valerie Burton