Sha256: 91d88fbcafa681e2cc20ee7ffcf98b92998e8b0333b7ea83f270ff9e8b6ef313

Contents?: true

Size: 1.56 KB

Versions: 13

Compression:

Stored size: 1.56 KB

Contents

# frozen_string_literal: true

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class RegistryTLS < Scenario::Template
            def perform(release, *rspec_args)
              Component::Gitlab.perform do |gitlab|
                gitlab.release = release
                gitlab.network = Runtime::Env.docker_network
                gitlab.name = 'gitlab'
                gitlab.tls = true

                gitlab.omnibus_configuration << <<~OMNIBUS
                  external_url 'https://#{gitlab.name}.#{gitlab.network}';
                  registry_external_url 'https://#{gitlab.name}.#{gitlab.network}:5050';

                  letsencrypt['enable'] = false;

                  nginx['redirect_http_to_https'] = true;
                  nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.test.crt";
                  nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.test.key";
                  registry_nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.test.crt";
                  registry_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.test.key";
                OMNIBUS

                gitlab.instance do
                  Component::Specs.perform do |specs|
                    specs.suite = 'Test::Integration::RegistryTLS'
                    specs.release = gitlab.release
                    specs.network = gitlab.network
                    specs.args = [gitlab.address, *rspec_args]
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gitlab-qa-14.21.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.20.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.19.2 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.19.1 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.19.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.18.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.17.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.16.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.15.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.14.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.13.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.12.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb
gitlab-qa-14.11.0 lib/gitlab/qa/scenario/test/integration/registry_tls.rb