class Gitlab::QA::Scenario::Test::Integration::SMTP
Attributes
gitlab_name[R]
spec_suite[R]
Public Class Methods
new()
click to toggle source
# File lib/gitlab/qa/scenario/test/integration/smtp.rb, line 9 def initialize @gitlab_name = 'gitlab-smtp' @spec_suite = 'Test::Integration::SMTP' end
Public Instance Methods
configure_omnibus(gitlab, mail_hog)
click to toggle source
# File lib/gitlab/qa/scenario/test/integration/smtp.rb, line 16 def configure_omnibus(gitlab, mail_hog) gitlab.omnibus_configuration << <<~OMNIBUS gitlab_rails['smtp_enable'] = true; gitlab_rails['smtp_address'] = '#{mail_hog.hostname}'; gitlab_rails['smtp_port'] = 1025; OMNIBUS end
perform(release, *rspec_args)
click to toggle source
# File lib/gitlab/qa/scenario/test/integration/smtp.rb, line 24 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