Sha256: de48e199b094b482c5e378916693c989bce9c08dfb58894f1bba44ca7900a2f0

Contents?: true

Size: 1.37 KB

Versions: 39

Compression:

Stored size: 1.37 KB

Contents

require 'yaml'

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

            def configure(gitlab, saml)
              raise NotImplementedError
            end

            def before_perform(release)
              # no-op
            end

            def perform(release, *rspec_args)
              release = Release.new(release)
              before_perform(release)

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

                Component::SAML.perform do |saml|
                  saml.network = 'test'
                  configure(gitlab, saml)

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

                      Component::Specs.perform do |specs|
                        specs.suite = spec_suite
                        specs.release = release
                        specs.network = gitlab.network
                        specs.args = [gitlab.address, *rspec_args]
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
gitlab-qa-4.18.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.17.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.16.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.15.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.14.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.13.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.12.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.11.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.10.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.9.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.8.1 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.8.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.7.1 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.7.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.6.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.5.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.4.0 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.3.3 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.3.2 lib/gitlab/qa/scenario/test/integration/saml.rb
gitlab-qa-4.2.2 lib/gitlab/qa/scenario/test/integration/saml.rb