gitlab-qa 5.12.0 → 5.13.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: ca0c9bc180dabbb9cba4984c2f19381d16ae57631e7ca308e38a3649d8d72dbf
4
- data.tar.gz: '018c552b3d04932d581872c7ddb3d3199545a868884530e58d57ff0842528134'
3
+ metadata.gz: 94ac8993fb7c19d11ab0345971f2ca8ff00c65ab0e6f89bc59b368b8df04a676
4
+ data.tar.gz: 484c627fd9f85f8ece3a4a2c2370053841caefbe629e72f25f3b2d39c4b9ba33
5
5
  SHA512:
6
- metadata.gz: 2c1be4f5eab6dbefb4685dc03f7f12140cc442766f4ec86006a927aa95ae787be6065f762f0ff1b3d6f79ea3158464e9a5e33ac5c7790b75bc31ac3ed005ac19
7
- data.tar.gz: abbff15cf25737e634429c22e3a704ec3f933656546243a92b408c6c55baa8056439a2f3a0c0ca1901a2e54f3e166ff16df307d61d6db109e35ed566c914b4dd
6
+ metadata.gz: b4b35673cd80bdbfae8ba22a48d4949e367fdbecbf86355be5139b381e2b3ab85b3c5da6996acaac4b25a2044298a51766d20fb6337769bf4449dc3f9ddb6e77
7
+ data.tar.gz: 89e28812ae5e2c4981af8b91bf736051affda188e6b785db94ea532ecbd7d26c977313e8fd861c34fbc3f4fdd3bfd5cb6bc6d84a77cc462ed623793e278cac5d
@@ -582,6 +582,11 @@ but will run tests against [`pre.gitlab.com`](https://pre.gitlab.com).
582
582
  Note that [`pre.gitlab.com`](https://pre.gitlab.com) is used as an Interim
583
583
  Performance Testbed and [will be replaced with the actual testbed in the future](https://gitlab.com/groups/gitlab-com/gl-infra/-/epics/60).
584
584
 
585
+ ### `Test::Instance::Release`
586
+
587
+ This scenario functions the same as `Test::Instance::Staging`
588
+ but will run tests against [`release.gitlab.net`](https://release.gitlab.net).
589
+
585
590
  ### `Test::Instance::Smoke`
586
591
 
587
592
  This scenario will run a limited amount of tests selected from the test suite tagged by `:smoke`.
data/lib/gitlab/qa.rb CHANGED
@@ -25,6 +25,7 @@ module Gitlab
25
25
  autoload :Production, 'gitlab/qa/scenario/test/instance/production'
26
26
  autoload :Smoke, 'gitlab/qa/scenario/test/instance/smoke'
27
27
  autoload :Preprod, 'gitlab/qa/scenario/test/instance/preprod'
28
+ autoload :Release, 'gitlab/qa/scenario/test/instance/release'
28
29
  autoload :Geo, 'gitlab/qa/scenario/test/instance/geo'
29
30
  autoload :StagingGeo, 'gitlab/qa/scenario/test/instance/staging_geo'
30
31
  end
@@ -71,6 +72,7 @@ module Gitlab
71
72
  autoload :Production, 'gitlab/qa/component/production'
72
73
  autoload :Minio, 'gitlab/qa/component/minio'
73
74
  autoload :Preprod, 'gitlab/qa/component/preprod'
75
+ autoload :Release, 'gitlab/qa/component/release'
74
76
  autoload :Elasticsearch, 'gitlab/qa/component/elasticsearch'
75
77
  autoload :MailHog, 'gitlab/qa/component/mail_hog'
76
78
  autoload :Jira, 'gitlab/qa/component/jira'
@@ -5,7 +5,6 @@ module Gitlab
5
5
  include Scenario::Actable
6
6
 
7
7
  ELASTIC_IMAGE = 'docker.elastic.co/elasticsearch/elasticsearch'.freeze
8
- ELASTIC_IMAGE_TAG = '6.4.2'.freeze
9
8
 
10
9
  attr_reader :docker
11
10
  attr_accessor :environment, :network
@@ -29,14 +28,14 @@ module Gitlab
29
28
  end
30
29
 
31
30
  def prepare
32
- @docker.pull(ELASTIC_IMAGE, ELASTIC_IMAGE_TAG)
31
+ @docker.pull(ELASTIC_IMAGE, Runtime::Env.elastic_version)
33
32
  return if @docker.network_exists?(network)
34
33
 
35
34
  @docker.network_create(network)
36
35
  end
37
36
 
38
37
  def start
39
- @docker.run(ELASTIC_IMAGE, ELASTIC_IMAGE_TAG) do |command|
38
+ @docker.run(ELASTIC_IMAGE, Runtime::Env.elastic_version) do |command|
40
39
  command << "-d"
41
40
  command << "--name #{name}"
42
41
  command << "--net #{network}"
@@ -53,7 +53,7 @@ module Gitlab
53
53
  end
54
54
 
55
55
  def release=(release)
56
- @release = Release.new(release)
56
+ @release = QA::Release.new(release)
57
57
  end
58
58
 
59
59
  def name
@@ -0,0 +1,13 @@
1
+ require 'net/http'
2
+ require 'json'
3
+ require 'uri'
4
+
5
+ module Gitlab
6
+ module QA
7
+ module Component
8
+ class Release < Staging
9
+ ADDRESS = 'https://release.gitlab.net'.freeze
10
+ end
11
+ end
12
+ end
13
+ end
@@ -25,7 +25,7 @@ module Gitlab
25
25
  'login',
26
26
  '--username gitlab-qa-bot',
27
27
  %(--password "#{Runtime::Env.dev_access_token_variable}"),
28
- Release::DEV_REGISTRY
28
+ QA::Release::DEV_REGISTRY
29
29
  ]
30
30
  )
31
31
  end
@@ -10,7 +10,7 @@ module Gitlab
10
10
  GEO_SECONDARY_ADDRESS = 'https://geo.staging.gitlab.com'.freeze
11
11
 
12
12
  def self.release
13
- Release.new(image)
13
+ QA::Release.new(image)
14
14
  rescue Support::InvalidResponseError => ex
15
15
  warn ex.message
16
16
  warn "#{ex.response.code} #{ex.response.message}: #{ex.response.body}"
@@ -78,7 +78,7 @@ module Gitlab
78
78
  private
79
79
 
80
80
  def official?
81
- Release::DEV_OFFICIAL_TAG_REGEX.match?(version)
81
+ QA::Release::DEV_OFFICIAL_TAG_REGEX.match?(version)
82
82
  end
83
83
 
84
84
  def revision
@@ -136,6 +136,10 @@ module Gitlab
136
136
  @host_artifacts_dir ||= File.join(ENV['QA_ARTIFACTS_DIR'] || '/tmp/gitlab-qa', Runtime::Env.run_id)
137
137
  end
138
138
 
139
+ def elastic_version
140
+ ENV['ELASTIC_VERSION'] || '6.4.2'.freeze
141
+ end
142
+
139
143
  def variables
140
144
  vars = {}
141
145
 
@@ -18,7 +18,7 @@ module Gitlab
18
18
  release = if release_name.nil? || release_name.start_with?('--')
19
19
  deployment_component.release
20
20
  else
21
- Release.new(release_name)
21
+ QA::Release.new(release_name)
22
22
  end
23
23
 
24
24
  args.unshift(release_name) if release_name&.start_with?('--')
@@ -0,0 +1,18 @@
1
+ module Gitlab
2
+ module QA
3
+ module Scenario
4
+ module Test
5
+ module Instance
6
+ ##
7
+ # Run test suite against release.gitlab.net
8
+ #
9
+ class Release < DeploymentBase
10
+ def deployment_component
11
+ Component::Release
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '5.12.0'.freeze
3
+ VERSION = '5.13.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.12.0
4
+ version: 5.13.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-05-20 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -247,6 +247,7 @@ files:
247
247
  - lib/gitlab/qa/component/postgresql.rb
248
248
  - lib/gitlab/qa/component/preprod.rb
249
249
  - lib/gitlab/qa/component/production.rb
250
+ - lib/gitlab/qa/component/release.rb
250
251
  - lib/gitlab/qa/component/saml.rb
251
252
  - lib/gitlab/qa/component/specs.rb
252
253
  - lib/gitlab/qa/component/staging.rb
@@ -273,6 +274,7 @@ files:
273
274
  - lib/gitlab/qa/scenario/test/instance/preprod.rb
274
275
  - lib/gitlab/qa/scenario/test/instance/production.rb
275
276
  - lib/gitlab/qa/scenario/test/instance/relative_url.rb
277
+ - lib/gitlab/qa/scenario/test/instance/release.rb
276
278
  - lib/gitlab/qa/scenario/test/instance/repository_storage.rb
277
279
  - lib/gitlab/qa/scenario/test/instance/smoke.rb
278
280
  - lib/gitlab/qa/scenario/test/instance/staging.rb