Class: Gitlab::QA::Scenario::Test::Integration::Chaos
- Inherits:
-
Praefect
- Object
- Gitlab::QA::Scenario::Template
- GitalyCluster
- Praefect
- Gitlab::QA::Scenario::Test::Integration::Chaos
- Defined in:
- lib/gitlab/qa/scenario/test/integration/chaos.rb
Instance Attribute Summary
Attributes inherited from Praefect
Attributes inherited from GitalyCluster
#config, #gitlab_name, #name, #spec_suite
Instance Method Summary collapse
-
#initialize ⇒ Chaos
constructor
A new instance of Chaos.
- #perform(release, *rspec_args) ⇒ Object
Methods inherited from Praefect
Methods inherited from Gitlab::QA::Scenario::Template
Constructor Details
#initialize ⇒ Chaos
Returns a new instance of Chaos.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/gitlab/qa/scenario/test/integration/chaos.rb', line 9 def initialize super @praefect_addr = "chaos.test" @database_addr = "chaos.test" @primary_node_addr = "chaos.test" @primary_node_port = 8076 @secondary_node_addr = "chaos.test" @secondary_node_port = 8077 @tertiary_node_addr = "chaos.test" @tertiary_node_port = 8078 end |
Instance Method Details
#perform(release, *rspec_args) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gitlab/qa/scenario/test/integration/chaos.rb', line 22 def perform(release, *rspec_args) @chaos_node = Component::Chaos.new.tap(&:start) run_gitaly_cluster(release, rspec_args) ensure @chaos_node&.teardown @praefect_node&.teardown @sql_node&.teardown @gitaly_primary_node&.teardown @gitaly_secondary_node&.teardown @gitaly_tertiary_node&.teardown end |