gitlab-qa 7.3.0 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +40 -0
- data/docs/what_tests_can_be_run.md +1 -2
- data/lib/gitlab/qa.rb +1 -0
- data/lib/gitlab/qa/component/gitlab.rb +1 -1
- data/lib/gitlab/qa/runtime/env.rb +2 -2
- data/lib/gitlab/qa/scenario/test/integration/client_ssl.rb +65 -0
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5a314d23803f87dbaae80b80dc127fd6c285acf540f48d3feb8dd78038d4d1d
|
4
|
+
data.tar.gz: 49e24a262489cbd18e7105af26847e3ac4deec62c1d06a64191c65f86d9176f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
data/lib/gitlab/qa/version.rb
CHANGED
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.
|
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-
|
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
|