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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f8235a7dbc3c61a6f538089128dc4a5ba7219c435a2fd107b9be7a7f8e79a23
4
- data.tar.gz: 3ce7fbdcc46f5f7b7a25e87af2b681c8ef314c48afef9a7e0c139361dcfed7bc
3
+ metadata.gz: 152cd35b57e1bbf009afe181668f3a6e649f817c722ff6307ef9f556191151d7
4
+ data.tar.gz: 83ea90cac64da14866e36233a43d787236df0e345512de7599ed0f6546cea0ed
5
5
  SHA512:
6
- metadata.gz: a44d2a6d39df421e02e6dcb96b41aa32a53a65366f983e853376bde2c6b0e17ab1099ccd1b675c4c0b4b93e2bdd94bf661fff2e02edf8e68d43a7e2535ae756c
7
- data.tar.gz: 919565630e715538ed4867339a27e553d90a80b3185b1caab4303aa65ef026a882f3fbb6446cbf5eb0e95944659da6adf6270ba2ecece62b85e60117248d9aee
6
+ metadata.gz: 8dbacb3d78dae237acb357bca6e36c271aea9fd0a06bfba6adaec924a62045afa16d4f94299a2a262af0682dcd52feb701bd69ca1b893242ae456976d954a3d3
7
+ data.tar.gz: 226b3b3639a998ad756849ab41937afcee5e1265586f61a1ef3113cee6a2325def40c457a64a2c2445129816d959e7ebd3591fc35f462f70807941414bd844eb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-qa (8.15.0)
4
+ gitlab-qa (8.15.1)
5
5
  activesupport (~> 6.1)
6
6
  gitlab (~> 4.18.0)
7
7
  http (~> 5.0)
@@ -249,4 +249,4 @@ DEPENDENCIES
249
249
  webmock (= 3.7.0)
250
250
 
251
251
  BUNDLED WITH
252
- 2.3.24
252
+ 2.4.2
@@ -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 do |cluster|
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module QA
5
- VERSION = '8.15.0'
5
+ VERSION = '8.15.1'
6
6
  end
7
7
  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: 8.15.0
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-05 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control