gitlab-qa 5.5.0 → 5.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77fe1e1cf434c67aaf9d068460b8269e31c988a8c77e93ff3427545370849d9b
4
- data.tar.gz: bd9b0dc5b3a89075336da34ea0ebb6882228a06fcb7320003f906cdf5e17004b
3
+ metadata.gz: 6dadc43941496ac21420fd5fd18374a72a360ff06c1d34e67717232de4125fca
4
+ data.tar.gz: 9f077c485987efd4609d1c1c126a45d6961bdc77062afe99a368f0b2ddb66339
5
5
  SHA512:
6
- metadata.gz: 10e68578bdbe034db633daf9fe238a9f200590ade25e4018b9889a9ab6bd3b71d72131c27044f7d9c740965febca1e64fa5f68bb231e377b278b01b71a713aa0
7
- data.tar.gz: 02d8e5f9e03dc50caa19418c8d8f008909498b1fb963ed09867474df95fee3eade6e1b002b359354df4e3396e0bdb2ab1cdb39c6fb185ea87c05e9464dbbd2a7
6
+ metadata.gz: 47f96a6b986d312ec419ac645063ab1009868acb1640a8f9936ede35b69c45ecb036526486dc92cc3bebe49bc5edcd75c6dee7141f3171f333ab8c4599014692
7
+ data.tar.gz: cb2a2fcc6f2f8f11c8df3dc616528634d8cf9f17bbed53f0c0c6fd04a9bc0ebba676612047db50dcf94a0bfbf0d5043cea492fef2c1a86e6b770ceb131fd6cfc
@@ -26,6 +26,7 @@ module Gitlab
26
26
  autoload :Smoke, 'gitlab/qa/scenario/test/instance/smoke'
27
27
  autoload :Preprod, 'gitlab/qa/scenario/test/instance/preprod'
28
28
  autoload :Geo, 'gitlab/qa/scenario/test/instance/geo'
29
+ autoload :StagingGeo, 'gitlab/qa/scenario/test/instance/staging_geo'
29
30
  end
30
31
 
31
32
  module Omnibus
@@ -7,6 +7,7 @@ module Gitlab
7
7
  module Component
8
8
  class Staging
9
9
  ADDRESS = 'https://staging.gitlab.com'.freeze
10
+ GEO_SECONDARY_ADDRESS = 'https://geo.staging.gitlab.com'.freeze
10
11
 
11
12
  def self.release
12
13
  Release.new(image)
@@ -7,7 +7,12 @@ module Gitlab
7
7
  # Base class to be used to define deployment environment scenarios
8
8
  #
9
9
  class DeploymentBase < Scenario::Template
10
+ def initialize
11
+ @suite = 'Test::Instance::All'
12
+ end
13
+
10
14
  def perform(release_name = nil, *args)
15
+ # EE_LICENSE variable should be unset otherwise the existing license may be accidentially replaced
11
16
  Runtime::Env.require_no_license!
12
17
 
13
18
  release = if release_name.nil? || release_name.start_with?('--')
@@ -19,12 +24,16 @@ module Gitlab
19
24
  args.unshift(release_name) if release_name&.start_with?('--')
20
25
 
21
26
  Component::Specs.perform do |specs|
22
- specs.suite = 'Test::Instance::All'
27
+ specs.suite = @suite
23
28
  specs.release = release
24
- specs.args = [deployment_component::ADDRESS, *args]
29
+ specs.args = non_rspec_args.push(*args)
25
30
  end
26
31
  end
27
32
 
33
+ def non_rspec_args
34
+ [deployment_component::ADDRESS]
35
+ end
36
+
28
37
  def deployment_component
29
38
  raise NotImplementedError, 'Please define the Component for the deployment environment associated with this scenario.'
30
39
  end
@@ -0,0 +1,30 @@
1
+ module Gitlab
2
+ module QA
3
+ module Scenario
4
+ module Test
5
+ module Instance
6
+ ##
7
+ # Run test suite against staging.gitlab.com
8
+ #
9
+ class StagingGeo < DeploymentBase
10
+ def initialize
11
+ @suite = 'QA::EE::Scenario::Test::Geo'
12
+ end
13
+
14
+ def deployment_component
15
+ Component::Staging
16
+ end
17
+
18
+ def non_rspec_args
19
+ [
20
+ '--primary-address', deployment_component::ADDRESS,
21
+ '--secondary-address', deployment_component::GEO_SECONDARY_ADDRESS,
22
+ '--without-setup'
23
+ ]
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '5.5.0'.freeze
3
+ VERSION = '5.6.0'.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: 5.5.0
4
+ version: 5.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grzegorz Bizon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-20 00:00:00.000000000 Z
11
+ date: 2020-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -274,6 +274,7 @@ files:
274
274
  - lib/gitlab/qa/scenario/test/instance/repository_storage.rb
275
275
  - lib/gitlab/qa/scenario/test/instance/smoke.rb
276
276
  - lib/gitlab/qa/scenario/test/instance/staging.rb
277
+ - lib/gitlab/qa/scenario/test/instance/staging_geo.rb
277
278
  - lib/gitlab/qa/scenario/test/integration/elasticsearch.rb
278
279
  - lib/gitlab/qa/scenario/test/integration/geo.rb
279
280
  - lib/gitlab/qa/scenario/test/integration/group_saml.rb