Sha256: 88e719984ffa589292547603b529eaa3b00d8095331bba780eeaa555d0d7e52d

Contents?: true

Size: 1.88 KB

Versions: 47

Compression:

Stored size: 1.88 KB

Contents

require 'yaml'

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class Kubernetes < Scenario::Template
            def perform(release, *rspec_args)
              Runtime::Env.require_kubernetes_environment!

              Component::Gitlab.perform do |gitlab|
                gitlab.release = release
                gitlab.network = 'test'

                Component::InternetTunnel.perform do |tunnel_gitlab|
                  Component::InternetTunnel.perform do |tunnel_registry|
                    tunnel_gitlab.gitlab_hostname = gitlab.hostname
                    tunnel_gitlab.network = 'test'
                    tunnel_registry.gitlab_hostname = gitlab.hostname
                    tunnel_registry.network = 'test'

                    gitlab.omnibus_configuration << <<~OMNIBUS
                      external_url '#{tunnel_gitlab.url}';
                      nginx['listen_port'] = 80;
                      nginx['listen_https'] = false;

                      registry_external_url '#{tunnel_registry.url}';
                      registry_nginx['listen_port'] = 80;
                      registry_nginx['listen_https'] = false;
                    OMNIBUS

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

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
gitlab-qa-7.34.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.33.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.32.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.31.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.30.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.29.1 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.29.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.27.2 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.27.1 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.27.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.26.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.25.1 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.25.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.24.6 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.24.5 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.24.4 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.24.3 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.24.2 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.24.1 lib/gitlab/qa/scenario/test/integration/kubernetes.rb
gitlab-qa-7.24.0 lib/gitlab/qa/scenario/test/integration/kubernetes.rb