gitlab-qa 5.12.0 → 5.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/what_tests_can_be_run.md +5 -0
- data/lib/gitlab/qa.rb +2 -0
- data/lib/gitlab/qa/component/elasticsearch.rb +2 -3
- data/lib/gitlab/qa/component/gitlab.rb +1 -1
- data/lib/gitlab/qa/component/release.rb +13 -0
- data/lib/gitlab/qa/component/specs.rb +1 -1
- data/lib/gitlab/qa/component/staging.rb +2 -2
- data/lib/gitlab/qa/runtime/env.rb +4 -0
- data/lib/gitlab/qa/scenario/test/instance/deployment_base.rb +1 -1
- data/lib/gitlab/qa/scenario/test/instance/release.rb +18 -0
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94ac8993fb7c19d11ab0345971f2ca8ff00c65ab0e6f89bc59b368b8df04a676
|
4
|
+
data.tar.gz: 484c627fd9f85f8ece3a4a2c2370053841caefbe629e72f25f3b2d39c4b9ba33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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,
|
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}"
|
@@ -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
|
@@ -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
|
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: 5.
|
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-
|
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
|