Skip to content
Snippets Groups Projects
Commit e78f19a162c5 authored by Robert Marshall's avatar Robert Marshall
Browse files

Stub QA_BRANCH environment variable in rspec


- Stub a value for QA_BRANCH in build_facts rspec tests to prevent
  failures when running pipelines with alternative QA_BRANCH values

Signed-off-by: default avatarRobert Marshall <rmarshall@gitlab.com>
parent 1e0599e327a7
No related branches found
No related tags found
1 merge request!72Intermediate build for testing purposes
......@@ -74,6 +74,7 @@
allow(Build::GitlabImage).to receive(:gitlab_registry_image_address).and_return('registry.gitlab.com/gitlab-org/build/omnibus-gitlab-mirror/gitlab-ee:14.6.2-rfbranch.450066356.c97110ad-0')
stub_env_var('QA_IMAGE', 'gitlab/gitlab-ee-qa:nightly')
stub_env_var('QA_BRANCH', 'testapalooza')
stub_env_var('QA_TESTS', '')
stub_env_var('ALLURE_JOB_NAME', '')
stub_env_var('GITLAB_QA_OPTIONS', '')
......@@ -81,7 +82,7 @@
it 'returns correct variables' do
result = %w[
QA_BRANCH=master
QA_BRANCH=testapalooza
QA_RELEASE=registry.gitlab.com/gitlab-org/build/omnibus-gitlab-mirror/gitlab-ee:14.6.2-rfbranch.450066356.c97110ad-0
QA_IMAGE=gitlab/gitlab-ee-qa:nightly
QA_TESTS=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment