Sha256: df939f9ef4c712b3c71c0155267aa81d63350e25e0c8b9b5955536f8af5eab4e
Contents?: true
Size: 1.82 KB
Versions: 14
Compression:
Stored size: 1.82 KB
Contents
# frozen_string_literal: true require 'yaml' module Gitlab module QA module Scenario module Test module Integration class SAML < Scenario::Template attr_reader :gitlab_name, :spec_suite, :saml_component def configure(gitlab, saml) raise NotImplementedError end def before_perform(release) # no-op end def perform(release, *rspec_args) # rubocop:disable Metrics/AbcSize release = QA::Release.new(release) before_perform(release) Component::Gitlab.perform do |gitlab| gitlab.release = release gitlab.network = Runtime::Env.docker_network gitlab.name = gitlab_name gitlab.set_accept_insecure_certs if saml_component Component::SAML.perform do |saml| saml.network = Runtime::Env.docker_network configure(gitlab, saml) saml.instance do run_specs(gitlab, release, *rspec_args) end end else configure(gitlab, nil) run_specs(gitlab, release, *rspec_args) end end end def run_specs(gitlab, release, *rspec_args) gitlab.instance do Runtime::Logger.info("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
Version data entries
14 entries across 14 versions & 1 rubygems