Class: Gitlab::QA::Scenario::Test::Integration::ImportWithSMTP
- Inherits:
-
Import
- Object
- Gitlab::QA::Scenario::Template
- Import
- Gitlab::QA::Scenario::Test::Integration::ImportWithSMTP
- 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
-
#orchestrate_mail_hog_server ⇒ Object
readonly
Returns the value of attribute orchestrate_mail_hog_server.
Attributes inherited from Import
#mail_hog_server, #mock_server, #network, #source_gitlab, #spec_suite, #target_gitlab
Instance Method Summary collapse
- #configure_omnibus(gitlab, mail_hog) ⇒ Object
-
#initialize ⇒ ImportWithSMTP
constructor
A new instance of ImportWithSMTP.
Methods inherited from Import
Methods inherited from Gitlab::QA::Scenario::Template
Constructor Details
#initialize ⇒ ImportWithSMTP
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 super @spec_suite = 'Test::Integration::ImportWithSMTP' @orchestrate_mail_hog_server = true end |
Instance Attribute Details
#orchestrate_mail_hog_server ⇒ Object (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 |