Class: Gitlab::QA::Scenario::Test::Integration::Chaos

Inherits:
Praefect show all
Defined in:
lib/gitlab/qa/scenario/test/integration/chaos.rb

Instance Attribute Summary

Attributes inherited from Praefect

#gitlab_name, #spec_suite

Attributes inherited from GitalyCluster

#config, #gitlab_name, #name, #spec_suite

Instance Method Summary collapse

Methods inherited from Praefect

#gitlab_omnibus_configuration

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

perform

Constructor Details

#initializeChaos

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