Method: Gitlab::QA::Runtime::Env#require_gcs_with_cdn_environment!

Defined in:
lib/gitlab/qa/runtime/env.rb

#require_gcs_with_cdn_environment!Object



299
300
301
302
303
304
305
306
307
# File 'lib/gitlab/qa/runtime/env.rb', line 299

def require_gcs_with_cdn_environment!
  %w[GOOGLE_CDN_JSON_KEY GCS_CDN_BUCKET_NAME GOOGLE_CDN_LB GOOGLE_CDN_SIGNURL_KEY
    GOOGLE_CDN_SIGNURL_KEY_NAME].each do |env_key|
    unless ENV.key?(env_key)
      raise ArgumentError,
        "Environment variable #{env_key} must be set to run GCS with CDN enabled scenario"
    end
  end
end