Sha256: d6e5c4a0d29810db114a5e058fb6f41c1b4352cea08b22ee51aa12753e702c7f

Contents?: true

Size: 1.44 KB

Versions: 8

Compression:

Stored size: 1.44 KB

Contents

require 'yaml'

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class LDAP < Scenario::Template
            attr_reader :gitlab_name, :spec_suite, :tls

            def configure(gitlab, ldap)
              raise NotImplementedError
            end

            # rubocop:disable Metrics/AbcSize
            def perform(release)
              Component::Gitlab.perform do |gitlab|
                gitlab.release = release
                gitlab.name = gitlab_name
                gitlab.network = 'test'
                gitlab.tls = tls

                Component::LDAP.perform do |ldap|
                  ldap.name = 'ldap-server'
                  ldap.network = 'test'
                  ldap.set_gitlab_credentials
                  ldap.tls = tls

                  configure(gitlab, ldap)

                  ldap.instance do
                    gitlab.instance do
                      puts "Running #{spec_suite} specs!"

                      Component::Specs.perform do |specs|
                        specs.suite = spec_suite
                        specs.release = gitlab.release
                        specs.network = gitlab.network
                        specs.args = [gitlab.address]
                      end
                    end
                  end
                end
              end
            end
            # rubocop:enable Metrics/AbcSize
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gitlab-qa-2.11.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-2.10.1 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-2.10.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-2.9.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-2.8.1 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-2.8.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-2.7.3 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-2.7.2 lib/gitlab/qa/scenario/test/integration/ldap.rb