Sha256: 88b0a9e1c1dc51d7be7b4e829f0681cd9d39a1abb85896460a596f93bdd60657

Contents?: true

Size: 1.35 KB

Versions: 10

Compression:

Stored size: 1.35 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)
              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]
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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