Class: Gitlab::QA::Scenario::Test::Integration::SSHTunnel
- Inherits:
- 
      Gitlab::QA::Scenario::Template
      
        - Object
- Gitlab::QA::Scenario::Template
- Gitlab::QA::Scenario::Test::Integration::SSHTunnel
 
- Defined in:
- lib/gitlab/qa/scenario/test/integration/ssh_tunnel.rb
Instance Method Summary collapse
- 
  
    
      #perform(release, *rspec_args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    rubocop:disable Metrics/AbcSize. 
Methods inherited from Gitlab::QA::Scenario::Template
Instance Method Details
#perform(release, *rspec_args) ⇒ Object
rubocop:disable Metrics/AbcSize
| 10 11 12 13 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 | # File 'lib/gitlab/qa/scenario/test/integration/ssh_tunnel.rb', line 10 def perform(release, *rspec_args) Runtime::Env.override_default_password! Runtime::Env.require_ssh_tunnel! Component::Gitlab.perform do |gitlab| gitlab.release = release gitlab.network = 'test' Component::InternetTunnel.perform do |tunnel_gitlab| Component::InternetTunnel.perform do |tunnel_registry| tunnel_gitlab.gitlab_hostname = gitlab.hostname tunnel_gitlab.network = 'test' tunnel_registry.gitlab_hostname = gitlab.hostname tunnel_registry.network = 'test' gitlab.omnibus_config = <<~OMNIBUS external_url '#{tunnel_gitlab.url}'; nginx['listen_port'] = 80; nginx['listen_https'] = false; gitlab_rails['initial_root_password'] = '#{Runtime::Env.require_initial_password!}'; registry_external_url '#{tunnel_registry.url}'; registry_nginx['listen_port'] = 80; registry_nginx['listen_https'] = false; OMNIBUS tunnel_gitlab.instance do tunnel_registry.instance do gitlab.instance do Component::Specs.perform do |specs| specs.suite = 'Test::Integration::SSHTunnel' specs.release = gitlab.release specs.network = gitlab.network specs.args = [tunnel_gitlab.url, *rspec_args] end end end end end end end end |