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.
7 8 9 10 11 12 13 |
# File 'lib/gitlab/qa/scenario/test/integration/client_ssl.rb', line 7 def initialize @gitlab_name = 'gitlab' @spec_suite = 'Test::Instance::All' @network = 'test' @env = {} @tag = 'client_ssl' end |
Instance Method Details
#gitlab_omnibus ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/gitlab/qa/scenario/test/integration/client_ssl.rb', line 45 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
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 |
# File 'lib/gitlab/qa/scenario/test/integration/client_ssl.rb', line 15 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 puts '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 |