Sha256: e5887bcbb4568083e1c056943784e08a4e54484c0eb2cf1217bb87a9b7fb05d9

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 Bytes

Contents

# frozen_string_literal: true

module Gitlab
  module QA
    module Runtime
      module OmnibusConfigurations
        class LicenseMode < Default
          def configuration
            <<~OMNIBUS
              gitlab_rails['env'] = { 'GITLAB_LICENSE_MODE' => 'test', 'CUSTOMER_PORTAL_URL' => '#{customer_portal_url}' }
            OMNIBUS
          end

          private

          # Customer Portal URL that is targeted
          def customer_portal_url
            ENV.fetch('CUSTOMER_PORTAL_URL', 'https://customers.staging.gitlab.com')
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gitlab-qa-8.15.1 lib/gitlab/qa/runtime/omnibus_configurations/license_mode.rb
gitlab-qa-8.15.0 lib/gitlab/qa/runtime/omnibus_configurations/license_mode.rb
gitlab-qa-8.14.1 lib/gitlab/qa/runtime/omnibus_configurations/license_mode.rb
gitlab-qa-8.14.0 lib/gitlab/qa/runtime/omnibus_configurations/license_mode.rb
gitlab-qa-8.13.1 lib/gitlab/qa/runtime/omnibus_configurations/license_mode.rb
gitlab-qa-8.13.0 lib/gitlab/qa/runtime/omnibus_configurations/license_mode.rb
gitlab-qa-8.12.0 lib/gitlab/qa/runtime/omnibus_configurations/license_mode.rb