Class: Gitlab::QA::Scenario::Test::Integration::ImportWithSMTP

Inherits:
Import show all
Defined in:
lib/gitlab/qa/scenario/test/integration/import_with_smtp.rb

Overview

Scenario type for testing importers with smtp enabled in target gitlab instance

Instance Attribute Summary collapse

Attributes inherited from Import

#mail_hog_server, #mock_server, #network, #source_gitlab, #spec_suite, #target_gitlab

Instance Method Summary collapse

Methods inherited from Import

#perform

Methods inherited from Gitlab::QA::Scenario::Template

perform, #perform

Constructor Details

#initializeImportWithSMTP

Returns a new instance of ImportWithSMTP.



12
13
14
15
16
# File 'lib/gitlab/qa/scenario/test/integration/import_with_smtp.rb', line 12

def initialize
  @spec_suite = 'Test::Integration::ImportWithSMTP'
  @orchestrate_mail_hog_server = true
  super
end

Instance Attribute Details

#orchestrate_mail_hog_serverObject (readonly)

Returns the value of attribute orchestrate_mail_hog_server.



10
11
12
# File 'lib/gitlab/qa/scenario/test/integration/import_with_smtp.rb', line 10

def orchestrate_mail_hog_server
  @orchestrate_mail_hog_server
end

Instance Method Details

#configure_omnibus(gitlab, mail_hog) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/gitlab/qa/scenario/test/integration/import_with_smtp.rb', line 18

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