Class: Gitlab::QA::Scenario::Test::Integration::Geo
- Inherits:
-
Gitlab::QA::Scenario::Template
- Object
- Gitlab::QA::Scenario::Template
- Gitlab::QA::Scenario::Test::Integration::Geo
- Defined in:
- lib/gitlab/qa/scenario/test/integration/geo.rb
Constant Summary collapse
- GIT_LFS_VERSION =
'2.5.2'.freeze
Instance Method Summary collapse
-
#perform(release) ⇒ Object
rubocop:disable Lint/MissingCopEnableDirective rubocop:disable Metrics/MethodLength rubocop:disable Metrics/AbcSize.
Methods inherited from Gitlab::QA::Scenario::Template
Instance Method Details
#perform(release) ⇒ Object
rubocop:disable Lint/MissingCopEnableDirective rubocop:disable Metrics/MethodLength rubocop:disable Metrics/AbcSize
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/gitlab/qa/scenario/test/integration/geo.rb', line 14 def perform(release) release = Release.new(release) raise ArgumentError, 'Geo is EE only!' unless release.ee? Runtime::Env.require_license! Component::Gitlab.perform do |primary| primary.release = release primary.name = 'gitlab-primary' primary.network = 'geo' primary.omnibus_config = <<~OMNIBUS geo_primary_role['enable'] = true; postgresql['listen_address'] = '0.0.0.0'; postgresql['trust_auth_cidr_addresses'] = ['0.0.0.0/0','0.0.0.0/0']; postgresql['md5_auth_cidr_addresses'] = ['0.0.0.0/0']; postgresql['max_replication_slots'] = 1; gitlab_rails['db_key_base'] = '4dd58204865eb41bca93bd38131d51cc'; gitlab_rails['monitoring_whitelist'] = ['0.0.0.0/0']; sidekiq['concurrency'] = 2; unicorn['worker_processes'] = 2; OMNIBUS primary.exec_commands = fast_ssh_key_lookup_commands + git_lfs_install_commands primary.instance do Component::Gitlab.perform do |secondary| secondary.release = release secondary.name = 'gitlab-secondary' secondary.network = 'geo' secondary.omnibus_config = <<~OMNIBUS geo_secondary_role['enable'] = true; gitlab_rails['db_key_base'] = '4dd58204865eb41bca93bd38131d51cc'; sidekiq['concurrency'] = 2; unicorn['worker_processes'] = 2; gitlab_rails['monitoring_whitelist'] = ['0.0.0.0/0']; OMNIBUS secondary.exec_commands = fast_ssh_key_lookup_commands + git_lfs_install_commands secondary.act do # TODO, we do not wait for secondary to start because of # https://gitlab.com/gitlab-org/gitlab-ee/issues/3999 # # rubocop:disable Style/Semicolon prepare; start; reconfigure; process_exec_commands # shellout to instance specs puts 'Running Geo primary / secondary specs!' Component::Specs.perform do |specs| specs.suite = 'QA::EE::Scenario::Test::Geo' specs.release = release specs.network = 'geo' specs.args = [ '--primary-address', primary.address, '--primary-name', primary.name, '--secondary-address', secondary.address, '--secondary-name', secondary.name ] end teardown end end end end end |