gitlab-qa 4.8.0 → 4.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +4 -7
- data/docs/what_tests_can_be_run.md +1 -0
- data/lib/gitlab/qa.rb +1 -0
- data/lib/gitlab/qa/runtime/env.rb +2 -1
- data/lib/gitlab/qa/scenario/test/instance/geo.rb +31 -0
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 560414fd055d899b9893f1b3c720e8a01d196470a6988c63fc61b37939031dd4
|
4
|
+
data.tar.gz: 5960745b83f2af31d3fb86d13c3ae16cba34d8afc85e635b1a1669fe07cd98ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 452877e2b8d565476dd9fb98451376c4758c6bf07639adc7c4738302bc71516dabbf3d73cdd48fb2d3a564b285aaf6c3917ca18b49bd0d1ec062017d66f64d78
|
7
|
+
data.tar.gz: 4caa13348705ce133333c53dfe07a9b6876d8bec05bde1339733959452c6bef865ac2b829862f1390f52850f292ee47cd83d93694d26343ed05d42e365ceccfa
|
data/.gitlab-ci.yml
CHANGED
@@ -730,19 +730,17 @@ staging:
|
|
730
730
|
release:
|
731
731
|
stage: release
|
732
732
|
rules:
|
733
|
-
- if: '$CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "pipeline" || $CI_COMMIT_REF_NAME != "master"'
|
734
|
-
when: never
|
735
733
|
- if: '$CI_COMMIT_TAG'
|
736
734
|
when: on_success
|
737
|
-
- when: manual
|
738
735
|
script:
|
739
736
|
- gem update --system
|
740
737
|
- ruby --version
|
741
738
|
- gem env version
|
742
|
-
-
|
739
|
+
- gem build gitlab-qa.gemspec
|
740
|
+
- gem push gitlab-qa*.gem
|
743
741
|
artifacts:
|
744
742
|
paths:
|
745
|
-
-
|
743
|
+
- gitlab-qa*.gem
|
746
744
|
expire_in: 30 days
|
747
745
|
|
748
746
|
.notify_slack:
|
@@ -754,8 +752,7 @@ release:
|
|
754
752
|
- apk update && apk add git curl bash
|
755
753
|
only:
|
756
754
|
variables:
|
757
|
-
- $TOP_UPSTREAM_SOURCE_JOB
|
758
|
-
- $NOTIFY_CHANNEL
|
755
|
+
- $TOP_UPSTREAM_SOURCE_JOB && $NOTIFY_CHANNEL
|
759
756
|
|
760
757
|
notify_slack:
|
761
758
|
extends:
|
@@ -74,6 +74,7 @@ For more details on the internals, please read the
|
|
74
74
|
* `GITLAB_QA_1P_PASSWORD` - Password for authenticating into 1Password.
|
75
75
|
* `GITLAB_QA_1P_SECRET` - Secret for authenticating into 1Password.
|
76
76
|
* `GITLAB_QA_1P_GITHUB_UUID` - UUID for GitHub item in GitLab-QA 1Password vault.
|
77
|
+
* `GITLAB_QA_LOOP_RUNNER_MINUTES` - Minutes to run and repeat a spec while using the '--loop' option; default value is 1 minute.
|
77
78
|
|
78
79
|
## [Supported Remote Grid environment variables](./running_against_remote_grid.md)
|
79
80
|
|
data/lib/gitlab/qa.rb
CHANGED
@@ -21,6 +21,7 @@ module Gitlab
|
|
21
21
|
autoload :Production, 'gitlab/qa/scenario/test/instance/production'
|
22
22
|
autoload :Smoke, 'gitlab/qa/scenario/test/instance/smoke'
|
23
23
|
autoload :Preprod, 'gitlab/qa/scenario/test/instance/preprod'
|
24
|
+
autoload :Geo, 'gitlab/qa/scenario/test/instance/geo'
|
24
25
|
end
|
25
26
|
|
26
27
|
module Omnibus
|
@@ -60,7 +60,8 @@ module Gitlab
|
|
60
60
|
'GITLAB_QA_1P_EMAIL' => :gitlab_qa_1p_email,
|
61
61
|
'GITLAB_QA_1P_PASSWORD' => :gitlab_qa_1p_password,
|
62
62
|
'GITLAB_QA_1P_SECRET' => :gitlab_qa_1p_secret,
|
63
|
-
'GITLAB_QA_1P_GITHUB_UUID' => :gitlab_qa_1p_github_uuid
|
63
|
+
'GITLAB_QA_1P_GITHUB_UUID' => :gitlab_qa_1p_github_uuid,
|
64
|
+
'GITLAB_QA_LOOP_RUNNER_MINUTES' => :gitlab_qa_loop_runner_minutes
|
64
65
|
}.freeze
|
65
66
|
|
66
67
|
ENV_VARIABLES.each_value do |accessor|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Gitlab
|
2
|
+
module QA
|
3
|
+
module Scenario
|
4
|
+
module Test
|
5
|
+
module Instance
|
6
|
+
# Run Geo test suite against any GitLab Geo (two-node) instance,
|
7
|
+
# including staging and on-premises installation.
|
8
|
+
|
9
|
+
class Geo < Scenario::Template
|
10
|
+
def perform(release, primary_address, secondary_address, *rspec_args)
|
11
|
+
# Geo requires an EE license
|
12
|
+
Runtime::Env.require_license!
|
13
|
+
|
14
|
+
Component::Specs.perform do |specs|
|
15
|
+
specs.suite = 'QA::EE::Scenario::Test::Geo'
|
16
|
+
specs.release = Release.new(release)
|
17
|
+
specs.network = 'geo'
|
18
|
+
specs.args = [
|
19
|
+
'--primary-address', primary_address,
|
20
|
+
'--secondary-address', secondary_address,
|
21
|
+
'--without-setup',
|
22
|
+
*rspec_args
|
23
|
+
]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/gitlab/qa/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-qa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.8.
|
4
|
+
version: 4.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grzegorz Bizon
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/gitlab/qa/scenario/template.rb
|
186
186
|
- lib/gitlab/qa/scenario/test/instance/any.rb
|
187
187
|
- lib/gitlab/qa/scenario/test/instance/deployment_base.rb
|
188
|
+
- lib/gitlab/qa/scenario/test/instance/geo.rb
|
188
189
|
- lib/gitlab/qa/scenario/test/instance/image.rb
|
189
190
|
- lib/gitlab/qa/scenario/test/instance/preprod.rb
|
190
191
|
- lib/gitlab/qa/scenario/test/instance/production.rb
|