gitlab-qa 8.15.0 → 8.15.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/Gemfile.lock +2 -2
- data/docs/what_tests_can_be_run.md +9 -0
- data/lib/gitlab/qa/runtime/env.rb +2 -2
- data/lib/gitlab/qa/scenario/test/instance/airgapped.rb +0 -1
- data/lib/gitlab/qa/scenario/test/integration/gitaly_cluster.rb +1 -4
- data/lib/gitlab/qa/scenario/test/integration/import.rb +11 -5
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 152cd35b57e1bbf009afe181668f3a6e649f817c722ff6307ef9f556191151d7
|
|
4
|
+
data.tar.gz: 83ea90cac64da14866e36233a43d787236df0e345512de7599ed0f6546cea0ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dbacb3d78dae237acb357bca6e36c271aea9fd0a06bfba6adaec924a62045afa16d4f94299a2a262af0682dcd52feb701bd69ca1b893242ae456976d954a3d3
|
|
7
|
+
data.tar.gz: 226b3b3639a998ad756849ab41937afcee5e1265586f61a1ef3113cee6a2325def40c457a64a2c2445129816d959e7ebd3591fc35f462f70807941414bd844eb
|
data/Gemfile.lock
CHANGED
|
@@ -1114,3 +1114,12 @@ $ gitlab-qa Test::Instance::Chaos
|
|
|
1114
1114
|
|
|
1115
1115
|
[test-instance]: https://gitlab.com/gitlab-org/gitlab/blob/master/qa/qa/scenario/test/instance/all.rb
|
|
1116
1116
|
[smoke-instance]: https://gitlab.com/gitlab-org/gitlab/blob/master/qa/qa/scenario/test/instance/smoke.rb
|
|
1117
|
+
|
|
1118
|
+
### `Test::Integration::Import`
|
|
1119
|
+
|
|
1120
|
+
This scenario will run specs tagged with `:import` tags.
|
|
1121
|
+
|
|
1122
|
+
These tests are designed to validate import functionality by importing projects from `GitHub` or another `GitLab` instance.
|
|
1123
|
+
This scenario type spins up 2 gitlab instances and additionally an instance with simple http mock server.
|
|
1124
|
+
|
|
1125
|
+
If environment variable `QA_MOCK_GITHUB` is set to `true`, all calls to `github.com` are rerouted to mock server.
|
|
@@ -369,14 +369,14 @@ module Gitlab
|
|
|
369
369
|
env_var_value_if_defined('QA_COM_REGISTRY') || 'registry.gitlab.com'
|
|
370
370
|
end
|
|
371
371
|
|
|
372
|
-
private
|
|
373
|
-
|
|
374
372
|
def enabled?(value, default: true)
|
|
375
373
|
return default if value.nil?
|
|
376
374
|
|
|
377
375
|
(value =~ /^(false|no|0)$/i) != 0
|
|
378
376
|
end
|
|
379
377
|
|
|
378
|
+
private
|
|
379
|
+
|
|
380
380
|
def env_var_value_valid?(variable)
|
|
381
381
|
!ENV[variable].blank?
|
|
382
382
|
end
|
|
@@ -25,7 +25,6 @@ module Gitlab
|
|
|
25
25
|
Component::Gitlab.perform do |gitlab|
|
|
26
26
|
Component::GitalyCluster.perform do |cluster|
|
|
27
27
|
cluster.config = @config
|
|
28
|
-
cluster.release = release
|
|
29
28
|
# we need to get an IP for praefect before proceeding so it cannot be run in parallel with gitlab
|
|
30
29
|
cluster.instance(true).join
|
|
31
30
|
end
|
|
@@ -21,10 +21,7 @@ module Gitlab
|
|
|
21
21
|
gitlab.name = config.gitlab_name
|
|
22
22
|
gitlab.network = config.network
|
|
23
23
|
gitlab.omnibus_configuration << gitlab_omnibus_configuration
|
|
24
|
-
cluster = Component::GitalyCluster.perform
|
|
25
|
-
cluster.release = release
|
|
26
|
-
cluster.instance
|
|
27
|
-
end
|
|
24
|
+
cluster = Component::GitalyCluster.perform(&:instance)
|
|
28
25
|
gitlab.instance do
|
|
29
26
|
cluster.join
|
|
30
27
|
Runtime::Logger.info('Running Gitaly Cluster specs!')
|
|
@@ -52,11 +52,7 @@ module Gitlab
|
|
|
52
52
|
def start_gitlab_instances(release)
|
|
53
53
|
instances = [
|
|
54
54
|
{ instance: source_gitlab, name: "import-source", additional_hosts: [] },
|
|
55
|
-
{
|
|
56
|
-
instance: target_gitlab,
|
|
57
|
-
name: "import-target",
|
|
58
|
-
additional_hosts: ["api.github.com:#{mock_server.ip_address}"]
|
|
59
|
-
}
|
|
55
|
+
{ instance: target_gitlab, name: "import-target", additional_hosts: mocked_hosts }
|
|
60
56
|
]
|
|
61
57
|
|
|
62
58
|
::Parallel.each(instances, in_threads: 2) do |gitlab_instance|
|
|
@@ -88,6 +84,16 @@ module Gitlab
|
|
|
88
84
|
}
|
|
89
85
|
end
|
|
90
86
|
end
|
|
87
|
+
|
|
88
|
+
# List of hosts that should be redirected to mock server
|
|
89
|
+
#
|
|
90
|
+
# @return [Array]
|
|
91
|
+
def mocked_hosts
|
|
92
|
+
hosts = []
|
|
93
|
+
hosts << "api.github.com:#{mock_server.ip_address}" if Runtime::Env.enabled?(ENV["QA_MOCK_GITHUB"])
|
|
94
|
+
|
|
95
|
+
hosts
|
|
96
|
+
end
|
|
91
97
|
end
|
|
92
98
|
end
|
|
93
99
|
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: 8.15.
|
|
4
|
+
version: 8.15.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: 2023-01-
|
|
11
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|