Class: Gitlab::QA::Scenario::Test::Integration::ClientSSL
- Inherits:
-
Gitlab::QA::Scenario::Template
- Object
- Gitlab::QA::Scenario::Template
- Gitlab::QA::Scenario::Test::Integration::ClientSSL
- Defined in:
- lib/gitlab/qa/scenario/test/integration/client_ssl.rb
Instance Method Summary collapse
- #gitlab_omnibus ⇒ Object
-
#initialize ⇒ ClientSSL
constructor
A new instance of ClientSSL.
- #perform(release, *rspec_args) ⇒ Object
Methods inherited from Gitlab::QA::Scenario::Template
Constructor Details
#initialize ⇒ ClientSSL
Returns a new instance of ClientSSL.
9 10 11 12 13 14 15 |
# File 'lib/gitlab/qa/scenario/test/integration/client_ssl.rb', line 9 def initialize @gitlab_name = 'gitlab' @spec_suite = 'Test::Instance::All' @network = Runtime::Env.docker_network @env = {} @tag = 'client_ssl' end |
Instance Method Details
#gitlab_omnibus ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/gitlab/qa/scenario/test/integration/client_ssl.rb', line 47 def gitlab_omnibus <<~OMNIBUS external_url 'https://#{@gitlab_name}.#{@network}'; letsencrypt['enable'] = false; nginx['ssl_certificate'] = '/etc/gitlab/ssl/gitlab.test.crt'; nginx['ssl_certificate_key'] = '/etc/gitlab/ssl/gitlab.test.key'; nginx['ssl_verify_client'] = 'on'; nginx['ssl_client_certificate'] = '/etc/gitlab/trusted-certs/ca.pem'; nginx['ssl_verify_depth'] = '2'; OMNIBUS end |
#perform(release, *rspec_args) ⇒ Object
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 |
# File 'lib/gitlab/qa/scenario/test/integration/client_ssl.rb', line 17 def perform(release, *rspec_args) Component::Gitlab.perform do |gitlab| gitlab.release = QA::Release.new(release) gitlab.name = @gitlab_name gitlab.network = @network gitlab.skip_availability_check = true gitlab.omnibus_configuration << gitlab_omnibus gitlab.tls = true gitlab.instance do Runtime::Logger.info('Running Client SSL specs!') if @tag rspec_args << "--" unless rspec_args.include?('--') rspec_args << "--tag" << @tag end Component::Specs.perform do |specs| specs.suite = @spec_suite specs.release = gitlab.release specs.network = gitlab.network specs.args = [gitlab.address, *rspec_args] specs.env = @env end end end end |