gitlab-qa 7.3.0 → 7.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e21cf41df3ce08ca8f471d140f99bb4fdfc81c03079ec99d365ef31a219a5eb
4
- data.tar.gz: 24b85de9e9e754ea6240c7b7d03592f92a9862edc143a174f59dad4362504cc5
3
+ metadata.gz: f5a314d23803f87dbaae80b80dc127fd6c285acf540f48d3feb8dd78038d4d1d
4
+ data.tar.gz: 49e24a262489cbd18e7105af26847e3ac4deec62c1d06a64191c65f86d9176f4
5
5
  SHA512:
6
- metadata.gz: 03d58938bb2d0462bf7d471ee0e2fa5bb20187d0925ac6b5a29f86a6416d832249f02207c67aa9b9f72f211e268eb246c825f6129040bd7c2423287f7feefcbf
7
- data.tar.gz: d04ebe15f0844dcb7eaa960b4621c50d878d7cbc745558d49dd658ca8e95e881d4ac6ccc24b476ea5b37212107803fa90883c61bedd9d441bac520de03cf0f5c
6
+ metadata.gz: 4de75cf6f4fdee481c2b0b8d4c38d11d79e86fda4ac0eb00620efa525a7fe87f03c1c1cd338c52edcb05e133a2dc52a884b5e45a9c64395c7707f8d6e49d89eb
7
+ data.tar.gz: 92361b1e9c8044c79beb7952bf71a54194a3071eec3883648d963de74f73efbc316f1daf23125821299772356d54d99d301c5838d6b4bc6253cdfeaf375917ca
data/.gitlab-ci.yml CHANGED
@@ -775,6 +775,46 @@ ee:packages-quarantine:
775
775
  GITLAB_QA_OPTS: "--omnibus-config packages"
776
776
  QA_RSPEC_TAGS: "--tag quarantine --tag packages"
777
777
 
778
+ ce:registry:
779
+ extends:
780
+ - .test
781
+ - .high-capacity
782
+ - .ce-qa
783
+ - .rspec-report-opts
784
+ allow_failure: true
785
+ variables:
786
+ QA_SCENARIO: "Test::Integration::Registry"
787
+
788
+ ce:registry-quarantine:
789
+ extends:
790
+ - .test
791
+ - .high-capacity
792
+ - .ce-qa
793
+ - .quarantine
794
+ - .rspec-report-opts
795
+ variables:
796
+ QA_SCENARIO: "Test::Integration::Registry"
797
+
798
+ ee:registry:
799
+ extends:
800
+ - .test
801
+ - .high-capacity
802
+ - .ee-qa
803
+ - .rspec-report-opts
804
+ allow_failure: true
805
+ variables:
806
+ QA_SCENARIO: "Test::Integration::Registry"
807
+
808
+ ee:registry-quarantine:
809
+ extends:
810
+ - .test
811
+ - .high-capacity
812
+ - .ee-qa
813
+ - .quarantine
814
+ - .rspec-report-opts
815
+ variables:
816
+ QA_SCENARIO: "Test::Integration::Registry"
817
+
778
818
  ce:actioncable:
779
819
  extends:
780
820
  - .test
@@ -73,6 +73,7 @@ All environment variables used by GitLab QA should be defined in [`lib/gitlab/qa
73
73
  | `QA_SLOW_CONNECTION_LATENCY_MS` | `2000` | The additional latency (in ms) of the simulated slow connection. | No|
74
74
  | `QA_SLOW_CONNECTION_THROUGHPUT_KBPS` | `32` | The maximum throughput (in kbps) of the simulated slow connection. | No|
75
75
  | `QA_SKIP_PULL` | `false` | Set to `true` to skip pulling docker images (e.g., to use one you built locally). | No|
76
+ | `QA_GENERATE_ALLURE_REPORT` | `false` | When running on CI, set to `true` to generate allure reports | No|
76
77
  | `GITHUB_USERNAME` |- | Username for authenticating with GitHub. | No|
77
78
  | `GITHUB_PASSWORD` |- | Password for authenticating with GitHub. | No|
78
79
  | `GITLAB_QA_LOOP_RUNNER_MINUTES` | `1` | Minutes to run and repeat a spec while using the '--loop' option; default value is 1 minute. | No|
@@ -86,8 +87,6 @@ All environment variables used by GitLab QA should be defined in [`lib/gitlab/qa
86
87
  | `GITLAB_QA_USER_AGENT` |- | The browser user-agent to use instead of the default Chrome user-agent. | No|
87
88
  | `GEO_FAILOVER` | `false` | Set to `true` when a Geo secondary site has been promoted to a Geo primary site. | No|
88
89
  | `GITLAB_INITIAL_ROOT_PASSWORD` | `5iveL!fe` | Initial root password for Omnibus installations | No|
89
- | `GENERATE_ALLURE_REPORT` | `false` | When running on CI, set to `true` to generate allure reports | No|
90
-
91
90
 
92
91
  ## [Supported Remote Grid environment variables](./running_against_remote_grid.md)
93
92
 
data/lib/gitlab/qa.rb CHANGED
@@ -65,6 +65,7 @@ module Gitlab
65
65
  autoload :Jira, 'gitlab/qa/scenario/test/integration/jira'
66
66
  autoload :SSHTunnel, 'gitlab/qa/scenario/test/integration/ssh_tunnel'
67
67
  autoload :MTLS, 'gitlab/qa/scenario/test/integration/mtls'
68
+ autoload :ClientSSL, 'gitlab/qa/scenario/test/integration/client_ssl'
68
69
  end
69
70
 
70
71
  module Sanity
@@ -65,7 +65,7 @@ module Gitlab
65
65
  end
66
66
 
67
67
  def port
68
- tls ? '443' : '80'
68
+ tls ? '443:443' : '80'
69
69
  end
70
70
 
71
71
  def gitaly_tls
@@ -54,6 +54,7 @@ module Gitlab
54
54
  'QA_SIMULATE_SLOW_CONNECTION' => :qa_simulate_slow_connection,
55
55
  'QA_SLOW_CONNECTION_LATENCY_MS' => :qa_slow_connection_latency_ms,
56
56
  'QA_SLOW_CONNECTION_THROUGHPUT_KBPS' => :qa_slow_connection_throughput_kbps,
57
+ 'QA_GENERATE_ALLURE_REPORT' => :generate_allure_report,
57
58
  'GITLAB_QA_USERNAME_1' => :gitlab_qa_username_1,
58
59
  'GITLAB_QA_PASSWORD_1' => :gitlab_qa_password_1,
59
60
  'GITLAB_QA_USERNAME_2' => :gitlab_qa_username_2,
@@ -91,8 +92,7 @@ module Gitlab
91
92
  'DEPLOY_VERSION' => :deploy_version,
92
93
  'GITLAB_QA_USER_AGENT' => :gitlab_qa_user_agent,
93
94
  'GEO_FAILOVER' => :geo_failover,
94
- 'GITLAB_INITIAL_ROOT_PASSWORD' => :initial_root_password,
95
- 'GENERATE_ALLURE_REPORT' => :generate_allure_report
95
+ 'GITLAB_INITIAL_ROOT_PASSWORD' => :initial_root_password
96
96
  }.freeze
97
97
 
98
98
  ENV_VARIABLES.each do |env_name, method_name|
@@ -0,0 +1,65 @@
1
+ module Gitlab
2
+ module QA
3
+ module Scenario
4
+ module Test
5
+ module Integration
6
+ class ClientSSL < Scenario::Template
7
+ def initialize
8
+ @gitlab_name = 'gitlab'
9
+ @spec_suite = 'Test::Instance::All'
10
+ @network = 'test'
11
+ @env = {}
12
+ @tag = 'client_ssl'
13
+ end
14
+
15
+ # rubocop:disable Metrics/AbcSize
16
+ def perform(release, *rspec_args)
17
+ Component::Gitlab.perform do |gitlab|
18
+ gitlab.release = QA::Release.new(release)
19
+ gitlab.name = @gitlab_name
20
+ gitlab.network = @network
21
+ gitlab.skip_availability_check = true
22
+
23
+ gitlab.omnibus_configuration << gitlab_omnibus
24
+
25
+ gitlab.tls = true
26
+
27
+ gitlab.instance do
28
+ puts 'Running Client SSL specs!'
29
+
30
+ if @tag
31
+ rspec_args << "--" unless rspec_args.include?('--')
32
+ rspec_args << "--tag" << @tag
33
+ end
34
+
35
+ Component::Specs.perform do |specs|
36
+ specs.suite = @spec_suite
37
+ specs.release = gitlab.release
38
+ specs.network = gitlab.network
39
+ specs.args = [gitlab.address, *rspec_args]
40
+ specs.env = @env
41
+ end
42
+ end
43
+ end
44
+ end
45
+ # rubocop:enable Metrics/AbcSize
46
+
47
+ def gitlab_omnibus
48
+ <<~OMNIBUS
49
+ external_url 'https://#{@gitlab_name}.#{@network}';
50
+ letsencrypt['enable'] = false;
51
+
52
+ nginx['ssl_certificate'] = '/etc/gitlab/ssl/gitlab.test.crt';
53
+ nginx['ssl_certificate_key'] = '/etc/gitlab/ssl/gitlab.test.key';
54
+
55
+ nginx['ssl_verify_client'] = 'on';
56
+ nginx['ssl_client_certificate'] = '/etc/gitlab/authority/ca.pem';
57
+ nginx['ssl_verify_depth'] = '2';
58
+ OMNIBUS
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '7.3.0'.freeze
3
+ VERSION = '7.3.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-qa
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.0
4
+ version: 7.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-18 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -299,6 +299,7 @@ files:
299
299
  - lib/gitlab/qa/scenario/test/instance/staging.rb
300
300
  - lib/gitlab/qa/scenario/test/instance/staging_geo.rb
301
301
  - lib/gitlab/qa/scenario/test/integration/actioncable.rb
302
+ - lib/gitlab/qa/scenario/test/integration/client_ssl.rb
302
303
  - lib/gitlab/qa/scenario/test/integration/elasticsearch.rb
303
304
  - lib/gitlab/qa/scenario/test/integration/geo.rb
304
305
  - lib/gitlab/qa/scenario/test/integration/gitaly_cluster.rb