Sha256: aa9711ad8d1cb758d242a9e99e76672eaaf781abb36e65bd8172eab2b38a3746

Contents?: true

Size: 1.47 KB

Versions: 21

Compression:

Stored size: 1.47 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, *rspec_args)
              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, *rspec_args]
                      end
                    end
                  end
                end
              end
            end
            # rubocop:enable Metrics/AbcSize
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
gitlab-qa-4.2.2 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-4.2.1 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-4.2.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-4.1.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-4.0.5 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-4.0.4 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-4.0.3 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-4.0.2 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-4.0.1 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-4.0.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-3.3.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-3.2.3 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-3.2.2 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-3.2.1 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-3.2.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-3.1.1 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-3.1.0 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-3.0.1 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-2.13.1 lib/gitlab/qa/scenario/test/integration/ldap.rb
gitlab-qa-2.13.0 lib/gitlab/qa/scenario/test/integration/ldap.rb