gitlab-qa 4.9.0 → 4.10.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: 9ee8e2d2ed9596bd49f5ad5ea8d02a7f6005088b9808e19902adf5212649a14c
4
- data.tar.gz: 24dee02fc1fd5220c44cda3f3770f89ff9131f42e88b5313eaa3064591148bd5
3
+ metadata.gz: d3b379ca406c49cd0884e1e432ebfa08680cdcb95ced4b71fc4990c1f2f26214
4
+ data.tar.gz: 5081f3c31c7ac3c49b02efbf3e9e78d064df98e95dbc07fb45b2d09810ea7b5a
5
5
  SHA512:
6
- metadata.gz: bf6d924eb6d3696005115b83cba9f49c17e8b4033b090aafe0f7102d434f06649e9c27be4703b863e93817baf7a0a71434edc2862867f5bef3e2eb06e9fb6c3f
7
- data.tar.gz: babdd7a3a8e68943d896e9a27cd525caa820dbac3de60b1c2e7712f28f9bc98d30d1526aed52d9ebcd9d448906e6ec58228ec8cf62d13f05e7a5dcf57cb9bc94
6
+ metadata.gz: e32bb01f38e98d685bf41b8199ac601d5923e747c8b5163f23734aa80d6f90923e79faf3268021dd4142afc2ef07007492ea95acf637b05998703b30566981e1
7
+ data.tar.gz: 4a2dbe6bc98bccc1fc36e08f983bb53ee83f7eb12e8796c2c68551ece29acf1558e34d49bb6dc27aa7eed2fad3d595faa1df9d5e0b69b2186d5184aeb6b3e455
data/.gitlab-ci.yml CHANGED
@@ -758,5 +758,9 @@ notify_slack:
758
758
  extends:
759
759
  - .notify_slack
760
760
  script:
761
+ - echo "NOTIFY_CHANNEL is $NOTIFY_CHANNEL"
762
+ - echo "RELEASE is $RELEASE"
763
+ - echo "CI_PIPELINE_URL is $CI_PIPELINE_URL"
764
+ - echo "TOP_UPSTREAM_SOURCE_JOB is $TOP_UPSTREAM_SOURCE_JOB"
761
765
  - bin/slack $NOTIFY_CHANNEL "☠️ Pipeline against $RELEASE failed! ☠️ See $CI_PIPELINE_URL (triggered from $TOP_UPSTREAM_SOURCE_JOB)" ci_failing
762
766
  when: on_failure
@@ -472,6 +472,23 @@ $ export EE_LICENSE=$(cat /path/to/Geo.gitlab_license)
472
472
  $ gitlab-qa Test::Integration::Packages EE
473
473
  ```
474
474
 
475
+ ### `Test::Integration::Praefect CE|EE|<full image address>`
476
+
477
+ This tests [Praefect](https://docs.gitlab.com/ee/administration/gitaly/praefect.html),
478
+ which is a reverse-proxy for Gitaly. It sets the Omnibus configuration
479
+ to use Praefect as the default storage backed by a single Gitaly node
480
+ before starting the GitLab container.
481
+
482
+ To run tests against the GitLab container, a GitLab QA (`gitlab/gitlab-qa`)
483
+ container is spun up and tests are run from it by running the
484
+ `Test::Instance::All` scenario.
485
+
486
+ Example:
487
+
488
+ ```
489
+ $ gitlab-qa Test::Integration::Praefect EE
490
+ ```
491
+
475
492
  ### `Test::Instance::Any CE|EE|<full image address>:nightly|latest|any_tag http://your.instance.gitlab`
476
493
 
477
494
  This tests that a live GitLab instance works as expected by running tests
data/lib/gitlab/qa.rb CHANGED
@@ -44,6 +44,7 @@ module Gitlab
44
44
  autoload :ObjectStorage, 'gitlab/qa/scenario/test/integration/object_storage'
45
45
  autoload :OAuth, 'gitlab/qa/scenario/test/integration/oauth'
46
46
  autoload :Packages, 'gitlab/qa/scenario/test/integration/packages'
47
+ autoload :Praefect, 'gitlab/qa/scenario/test/integration/praefect'
47
48
  autoload :Elasticsearch, 'gitlab/qa/scenario/test/integration/elasticsearch'
48
49
  end
49
50
 
@@ -0,0 +1,57 @@
1
+ module Gitlab
2
+ module QA
3
+ module Scenario
4
+ module Test
5
+ module Integration
6
+ class Praefect < Scenario::Template
7
+ def perform(release, *rspec_args)
8
+ Component::Gitlab.perform do |gitlab|
9
+ gitlab.release = Release.new(release)
10
+ gitlab.name = 'gitlab'
11
+ gitlab.network = 'test'
12
+ gitlab.omnibus_config = <<~OMNIBUS
13
+ gitaly['enable'] = true;
14
+ gitaly['auth_token'] = 'praefect-gitaly-token';
15
+ gitaly['storage'] = [
16
+ {
17
+ 'name' => 'praefect-gitaly-0',
18
+ 'path' => '/var/opt/gitlab/git-data/repositories'
19
+ }
20
+ ];
21
+ praefect['enable'] = true;
22
+ praefect['listen_addr'] = '0.0.0.0:2305';
23
+ praefect['auth_token'] = 'praefect-token';
24
+ praefect['virtual_storage_name'] = 'default';
25
+ praefect['storage_nodes'] = {
26
+ 'praefect-gitaly-0' => {
27
+ 'address' => 'unix:/var/opt/gitlab/gitaly/gitaly.socket',
28
+ 'token' => 'praefect-gitaly-token',
29
+ 'primary' => true
30
+ }
31
+ };
32
+ gitlab_rails['gitaly_token'] = 'praefect-token';
33
+ git_data_dirs({
34
+ 'default' => {
35
+ 'gitaly_address' => 'tcp://localhost:2305'
36
+ }
37
+ });
38
+ OMNIBUS
39
+
40
+ gitlab.instance do
41
+ puts "Running Praefect specs!"
42
+
43
+ Component::Specs.perform do |specs|
44
+ specs.suite = 'Test::Instance::All'
45
+ specs.release = gitlab.release
46
+ specs.network = gitlab.network
47
+ specs.args = [gitlab.address, *rspec_args]
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '4.9.0'.freeze
3
+ VERSION = '4.10.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: 4.9.0
4
+ version: 4.10.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: 2019-11-06 00:00:00.000000000 Z
11
+ date: 2019-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -205,6 +205,7 @@ files:
205
205
  - lib/gitlab/qa/scenario/test/integration/oauth.rb
206
206
  - lib/gitlab/qa/scenario/test/integration/object_storage.rb
207
207
  - lib/gitlab/qa/scenario/test/integration/packages.rb
208
+ - lib/gitlab/qa/scenario/test/integration/praefect.rb
208
209
  - lib/gitlab/qa/scenario/test/integration/saml.rb
209
210
  - lib/gitlab/qa/scenario/test/omnibus/image.rb
210
211
  - lib/gitlab/qa/scenario/test/omnibus/update.rb