Skip to content

Add a SecureVersion instance

What does this MR do and why?

As per gitlab-org/quality/quality-engineering/team-tasks#3071 (closed)

It is envisaged that this will be kicked off by the pipeline at gitlab-org/quality/ci/secure-testing/version-matrix!1 (merged)

This adds an "instance" to allow the use of a specified image, but it also runs a rails command to disable the security version check modal on login.

An EE license is required, as this targets Secure functionality.

A project URL and project name for import are needed. See test step below.

What this does:

  • Spins up an instance of given version
  • Disables security modal (for older versions)
  • Sets license
  • Sets up a runner
  • Imports a project
  • Checks that the project pipeline has been successful, if so this job passes

It works outside of the GitLab E2E RSpec framework.

How to set up and validate locally

NOTE: If your license was created for testing, use the GITLAB_LICENSE_MODE variable:

GITLAB_LICENSE_MODE=test EE_LICENSE=$(cat ~/path/to/gitlab-team-member-license) PROJECT_URL='https://gitlab.com/gitlab-org/quality/ci/secure-testing/secure-matrix-test.git' PROJECT_NAME='secure-matrix-test' ./exe/gitlab-qa Test::Instance::SecureVersion gitlab/gitlab-ee:16.5.0-ee.0

In particular note that the token (on runner create) and License values are masked.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Will Meek

Merge request reports

Loading