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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c369a98179f8f30c64babf5884b9919b14bf2016a15e0c4a172a5516c870be87
4
- data.tar.gz: d790e55c6879463128dcee0a76437f0d98ae66e0aa5a8a72cfa827da385d11ab
3
+ metadata.gz: 560414fd055d899b9893f1b3c720e8a01d196470a6988c63fc61b37939031dd4
4
+ data.tar.gz: 5960745b83f2af31d3fb86d13c3ae16cba34d8afc85e635b1a1669fe07cd98ba
5
5
  SHA512:
6
- metadata.gz: ed4335697822edc553edbaa5d7a8bad7fa498e80773e16a5b9f6a7e7bddd42893a4954d3bcd37849e4cb5cb1c6c954fca669a0074e1aaf21d8dc6335cbaa16b7
7
- data.tar.gz: a8de7ca6b1c86abb91b628266f1eaa293fd70ead1a1944469d5513c200ef5e5f452772ff021f5b8b8b8890f02c725974dfad35da2ec49c0b6ecdd46680f4d970
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
- - bundle exec rake release
739
+ - gem build gitlab-qa.gemspec
740
+ - gem push gitlab-qa*.gem
743
741
  artifacts:
744
742
  paths:
745
- - pkg/
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
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '4.8.0'.freeze
3
+ VERSION = '4.8.1'.freeze
4
4
  end
5
5
  end
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.0
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