Sha256: 06452eeb0d5871f7d559635c314e8ae43f606696be9bb2ba04b60c5c94c5ce34
Contents?: true
Size: 1.7 KB
Versions: 54
Compression:
Stored size: 1.7 KB
Contents
require 'yaml' module Gitlab module QA module Scenario module Test module Integration class SMTP < Scenario::Template def initialize @gitlab_name = 'gitlab-smtp' @spec_suite = 'Test::Integration::SMTP' end attr_reader :gitlab_name, :spec_suite def configure_omnibus(gitlab, mail_hog) gitlab.omnibus_config = <<~OMNIBUS gitlab_rails['smtp_enable'] = true; gitlab_rails['smtp_address'] = '#{mail_hog.hostname}'; gitlab_rails['smtp_port'] = 1025; OMNIBUS end def perform(release, *rspec_args) release = QA::Release.new(release) Component::Gitlab.perform do |gitlab| gitlab.release = release gitlab.network = 'test' gitlab.name = gitlab_name Component::MailHog.perform do |mail_hog| mail_hog.network = gitlab.network mail_hog.set_mailhog_hostname configure_omnibus(gitlab, mail_hog) mail_hog.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
54 entries across 54 versions & 1 rubygems