gitlab-qa 7.18.1 → 7.19.0
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 +2 -4
- data/lib/gitlab/qa/component/gitlab.rb +13 -2
- data/lib/gitlab/qa/runtime/env.rb +4 -0
- data/lib/gitlab/qa/version.rb +1 -1
- data/lib/gitlab/qa.rb +0 -1
- metadata +2 -3
- data/lib/gitlab/qa/scenario/test/integration/cloud_activation.rb +0 -36
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7314a9036c9aeacae478aaf82d13baee97c53c94bf5aabe800ec0e9f98b5234d
|
|
4
|
+
data.tar.gz: 83fe883428323a6edc87c1993564de31dcd5afc79aada90798ea07d93a1b09fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e3d05561762175dae31c8298ef4411595287f516f3fc809457e842c368a7ea712c6c2f697a1c1849c1ff26b060b68220327e5d3cb5e5792426bb886881a233a
|
|
7
|
+
data.tar.gz: 062b24dfdf48a7da1d309b0282f4972d1f6e72dbb2ad4a44f2ad8c2c352f3684ff0b423390070dcc83c9228b19597bc0ddfee94aef017810f5283c673511e472
|
data/.gitlab-ci.yml
CHANGED
|
@@ -1212,7 +1212,6 @@ ee:large-setup:
|
|
|
1212
1212
|
ee:cloud-activation:
|
|
1213
1213
|
before_script:
|
|
1214
1214
|
- unset EE_LICENSE
|
|
1215
|
-
- unset GITLAB_QA_FORMLESS_LOGIN_TOKEN
|
|
1216
1215
|
- !reference [default, before_script]
|
|
1217
1216
|
extends:
|
|
1218
1217
|
- .rules:ee-never-when-triggered-by-feature-flag-definition-change
|
|
@@ -1221,12 +1220,11 @@ ee:cloud-activation:
|
|
|
1221
1220
|
- .ee-variables
|
|
1222
1221
|
- .rspec-report-opts
|
|
1223
1222
|
variables:
|
|
1224
|
-
|
|
1223
|
+
QA_RSPEC_TAGS: "--tag cloud_activation"
|
|
1225
1224
|
|
|
1226
1225
|
ee:cloud-activation-quarantine:
|
|
1227
1226
|
before_script:
|
|
1228
1227
|
- unset EE_LICENSE
|
|
1229
|
-
- unset GITLAB_QA_FORMLESS_LOGIN_TOKEN
|
|
1230
1228
|
- !reference [default, before_script]
|
|
1231
1229
|
extends:
|
|
1232
1230
|
- .rules:ee-never-when-triggered-by-feature-flag-definition-change
|
|
@@ -1236,7 +1234,7 @@ ee:cloud-activation-quarantine:
|
|
|
1236
1234
|
- .quarantine
|
|
1237
1235
|
- .rspec-report-opts
|
|
1238
1236
|
variables:
|
|
1239
|
-
|
|
1237
|
+
QA_RSPEC_TAGS: "--tag cloud_activation"
|
|
1240
1238
|
|
|
1241
1239
|
# This job requires the `GITLAB_QA_ACCESS_TOKEN` and `GITLAB_QA_DEV_ACCESS_TOKEN`
|
|
1242
1240
|
# variable to be passed when triggered.
|
|
@@ -12,7 +12,7 @@ module Gitlab
|
|
|
12
12
|
class Gitlab < Base
|
|
13
13
|
extend Forwardable
|
|
14
14
|
|
|
15
|
-
attr_reader :release, :omnibus_configuration
|
|
15
|
+
attr_reader :release, :omnibus_configuration, :omnibus_gitlab_rails_env
|
|
16
16
|
attr_accessor :tls, :skip_availability_check, :runner_network
|
|
17
17
|
attr_writer :name, :relative_path
|
|
18
18
|
|
|
@@ -29,6 +29,7 @@ module Gitlab
|
|
|
29
29
|
super
|
|
30
30
|
|
|
31
31
|
@skip_availability_check = false
|
|
32
|
+
@omnibus_gitlab_rails_env = {}
|
|
32
33
|
|
|
33
34
|
@volumes[GITLAB_CERTIFICATES_PATH] = SSL_PATH
|
|
34
35
|
@volumes[AUTHORITY_CERTIFICATES_PATH] = TRUSTED_PATH
|
|
@@ -41,7 +42,14 @@ module Gitlab
|
|
|
41
42
|
def set_formless_login_token
|
|
42
43
|
return if Runtime::Env.gitlab_qa_formless_login_token.to_s.strip.empty?
|
|
43
44
|
|
|
44
|
-
@
|
|
45
|
+
@omnibus_gitlab_rails_env['GITLAB_QA_FORMLESS_LOGIN_TOKEN'] = Runtime::Env.gitlab_qa_formless_login_token
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def set_license_mode
|
|
49
|
+
return unless Runtime::Env.test_license_mode?
|
|
50
|
+
|
|
51
|
+
@omnibus_gitlab_rails_env['GITLAB_LICENSE_MODE'] = 'test'
|
|
52
|
+
@omnibus_gitlab_rails_env['CUSTOMER_PORTAL_URL'] = 'https://customers.staging.gitlab.com'
|
|
45
53
|
end
|
|
46
54
|
|
|
47
55
|
def elastic_url=(url)
|
|
@@ -95,6 +103,9 @@ module Gitlab
|
|
|
95
103
|
|
|
96
104
|
def prepare_gitlab_omnibus_config
|
|
97
105
|
set_formless_login_token
|
|
106
|
+
set_license_mode
|
|
107
|
+
|
|
108
|
+
@omnibus_configuration << "gitlab_rails['env'] = #{@omnibus_gitlab_rails_env}" unless omnibus_gitlab_rails_env.empty?
|
|
98
109
|
end
|
|
99
110
|
|
|
100
111
|
def start # rubocop:disable Metrics/AbcSize
|
|
@@ -310,6 +310,10 @@ module Gitlab
|
|
|
310
310
|
enabled?(env_var_value_if_defined('GEO_FAILOVER'), default: false)
|
|
311
311
|
end
|
|
312
312
|
|
|
313
|
+
def test_license_mode?
|
|
314
|
+
enabled?(env_var_value_if_defined('TEST_LICENSE_MODE'), default: false)
|
|
315
|
+
end
|
|
316
|
+
|
|
313
317
|
private
|
|
314
318
|
|
|
315
319
|
def enabled?(value, default: true)
|
data/lib/gitlab/qa/version.rb
CHANGED
data/lib/gitlab/qa.rb
CHANGED
|
@@ -74,7 +74,6 @@ module Gitlab
|
|
|
74
74
|
autoload :Registry, 'gitlab/qa/scenario/test/integration/registry'
|
|
75
75
|
autoload :RegistryTLS, 'gitlab/qa/scenario/test/integration/registry_tls'
|
|
76
76
|
autoload :ServicePingDisabled, 'gitlab/qa/scenario/test/integration/service_ping_disabled'
|
|
77
|
-
autoload :CloudActivation, 'gitlab/qa/scenario/test/integration/cloud_activation'
|
|
78
77
|
end
|
|
79
78
|
|
|
80
79
|
module Sanity
|
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.
|
|
4
|
+
version: 7.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitLab Quality
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-01-
|
|
11
|
+
date: 2022-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|
|
@@ -310,7 +310,6 @@ files:
|
|
|
310
310
|
- lib/gitlab/qa/scenario/test/instance/staging_ref.rb
|
|
311
311
|
- lib/gitlab/qa/scenario/test/integration/actioncable.rb
|
|
312
312
|
- lib/gitlab/qa/scenario/test/integration/client_ssl.rb
|
|
313
|
-
- lib/gitlab/qa/scenario/test/integration/cloud_activation.rb
|
|
314
313
|
- lib/gitlab/qa/scenario/test/integration/elasticsearch.rb
|
|
315
314
|
- lib/gitlab/qa/scenario/test/integration/geo.rb
|
|
316
315
|
- lib/gitlab/qa/scenario/test/integration/gitaly_cluster.rb
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Gitlab
|
|
4
|
-
module QA
|
|
5
|
-
module Scenario
|
|
6
|
-
module Test
|
|
7
|
-
module Integration
|
|
8
|
-
class CloudActivation < Scenario::Template
|
|
9
|
-
def perform(release, *rspec_args)
|
|
10
|
-
Component::Gitlab.perform do |gitlab|
|
|
11
|
-
gitlab.release = release
|
|
12
|
-
gitlab.network = 'test'
|
|
13
|
-
|
|
14
|
-
gitlab.omnibus_configuration << <<~OMNIBUS
|
|
15
|
-
gitlab_rails['env'] = { 'GITLAB_LICENSE_MODE' => 'test', 'CUSTOMER_PORTAL_URL' => 'https://customers.staging.gitlab.com' }
|
|
16
|
-
OMNIBUS
|
|
17
|
-
|
|
18
|
-
gitlab.instance do
|
|
19
|
-
rspec_args << "--" unless rspec_args.include?('--')
|
|
20
|
-
rspec_args << %w[--tag cloud_activation]
|
|
21
|
-
|
|
22
|
-
Component::Specs.perform do |specs|
|
|
23
|
-
specs.suite = 'Test::Instance::All'
|
|
24
|
-
specs.release = gitlab.release
|
|
25
|
-
specs.network = gitlab.network
|
|
26
|
-
specs.args = [gitlab.address, *rspec_args]
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|