Commit d6844d2e authored by Andrejs Cunskis's avatar Andrejs Cunskis

Merge branch 'acunskis-metrics-preprod-env' into 'master'

E2E: Add preprod environment detection

See merge request gitlab-org/gitlab!71563
parents b27841cc 09663329
...@@ -116,11 +116,11 @@ module QA ...@@ -116,11 +116,11 @@ module QA
@merge_request ||= (!!env('CI_MERGE_REQUEST_IID') || !!env('TOP_UPSTREAM_MERGE_REQUEST_IID')).to_s @merge_request ||= (!!env('CI_MERGE_REQUEST_IID') || !!env('TOP_UPSTREAM_MERGE_REQUEST_IID')).to_s
end end
# Test run type from staging, canary or production env # Test run type from staging, canary, preprod or production env
# #
# @return [String>, nil] # @return [String, nil]
def run_type def run_type
return unless %w[staging canary production].include?(project_name) return unless %w[staging canary preprod production].include?(project_name)
@run_type ||= begin @run_type ||= begin
test_subset = if env('NO_ADMIN') == 'true' test_subset = if env('NO_ADMIN') == 'true'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment