gitlab-qa 2.2.0 → 2.3.0

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: 27bc2abc8cfebcb0ca9db1d08a42543c07c4a0c324bb247f5017bf021daf126a
4
- data.tar.gz: d544281d1b8195ad55432abbc31ead297d64a864e6fd3dbe5caf97cd192e716c
3
+ metadata.gz: f9cebacc84344d4f2fcf40f8e3fea53355e3c18a0df2e4411fe2f52bd85f2c0e
4
+ data.tar.gz: e28362d1ab57c9d1b82e127b186c15318981a00e39e43d571be07bd368fa653d
5
5
  SHA512:
6
- metadata.gz: 2fb60fe3f21ccfd1cfefa59e16ec373ad8dc9b9545ec13eca963f524a36cc7a6f9857734a73aea1f4cd7b224bb2402fd1835e8dde9dac44d6ec7c7763b0d244e
7
- data.tar.gz: bccb952d05b6cee766989618f3fa53427db7c069b86e720ceeebd91a098219313650b0534aea1918643749bef65187116d8780155bd4f83e3f7f9edfd44ce4d4
6
+ metadata.gz: 0434fa8431e7895cf572897c6cf6fdbf191627b92067153f051512fec9eda997f590a7f80c91675776f346c4e00003a29a88c1aac82873fcc793071da447fabc
7
+ data.tar.gz: ce014fcb3717205c49c0bf57437c5285cdb94e39e41d5f476408e33e0316019f53c249315395dc8ab32246849c02ccc7ddb9438e841840091946449ba97099c3
data/docs/how_it_works.md CHANGED
@@ -12,7 +12,7 @@ For a visual architecture explanation, please read the
12
12
  1. A new `gitlab-ce` container is started with `Component::Gitlab.perform`
13
13
  1. Then `Component::Specs.perform` is called, which starts a `gitlab/gitlab-qa`
14
14
  container (from [`gitlab-org/gitlab-ce@qa/Dockerfile`][gitlab-dockerfile])
15
- and pass it the instance-level scenario to run (e.g. `Test::Instance` for
15
+ and pass it the instance-level scenario to run (e.g. `Test::Instance::All` for
16
16
  [`gitlab-org/gitlab-qa@lib/gitlab/qa/scenario/test/instance/image.rb`][instance-image]),
17
17
  then the address of the live instance to be tested, and optional extra arguments.
18
18
  1. Within the `gitlab/gitlab-qa` container, these arguments are passed to `bin/test` (since it's
@@ -20,7 +20,7 @@ For a visual architecture explanation, please read the
20
20
  [`ENTRYPOINT` defined at `gitlab-org/gitlab-ce@qa/Dockerfile`][gitlab-dockerfile]),
21
21
  and then to `bin/qa`.
22
22
  1. `bin/qa` then calls `.launch!` on the fully qualified constant `QA::Scenario::` +
23
- the scenario name, e.g. `QA::Scenario::Test::Instance`, and ultimately calls
23
+ the scenario name, e.g. `QA::Scenario::Test::Instance::All`, and ultimately calls
24
24
  [`.perform`][instance]
25
25
  1. The `.perform` method [saves the instance address for later][instance], then sets up an
26
26
  `RSpec::Core::Runner`, pass it the extra arguments,
@@ -48,7 +48,7 @@ This tests that a GitLab Docker container works as expected by running
48
48
  instance-level tests against it.
49
49
 
50
50
  To run tests against the GitLab containers, a GitLab QA (`gitlab/gitlab-qa`)
51
- container is spun up and tests are run from it by running the `Test::Instance`
51
+ container is spun up and tests are run from it by running the `Test::Instance::All`
52
52
  scenario (located under
53
53
  [`gitlab-org/gitlab-ce@qa/qa/scenario/test/instance.rb`][test-instance] in the
54
54
  GitLab CE project).
@@ -216,7 +216,7 @@ against it.
216
216
 
217
217
  To run tests against the GitLab instance, a GitLab QA (`gitlab/gitlab-qa`)
218
218
  container is spun up and tests are run from it by running the
219
- `Test::Instance` scenario (located under
219
+ `Test::Instance::All` scenario (located under
220
220
  [`gitlab-org/gitlab-ce@qa/qa/scenario/test/instance.rb`][test-instance] in the
221
221
  in the GitLab CE project).
222
222
 
@@ -243,7 +243,7 @@ works as expected by running tests against it.
243
243
 
244
244
  To run tests against the GitLab instance, a GitLab QA (`gitlab/gitlab-qa`)
245
245
  container is spun up and tests are run from it by running the
246
- `Test::Instance` scenario (located under
246
+ `Test::Instance::All` scenario (located under
247
247
  [`gitlab-org/gitlab-ce@qa/qa/scenario/test/instance.rb`][test-instance] in the
248
248
  in the GitLab CE project).
249
249
 
data/lib/gitlab/qa.rb CHANGED
@@ -17,6 +17,7 @@ module Gitlab
17
17
  autoload :Any, 'qa/scenario/test/instance/any'
18
18
  autoload :Image, 'qa/scenario/test/instance/image'
19
19
  autoload :Staging, 'qa/scenario/test/instance/staging'
20
+ autoload :Smoke, 'qa/scenario/test/instance/smoke'
20
21
  end
21
22
 
22
23
  module Omnibus
@@ -10,7 +10,7 @@ module Gitlab
10
10
  class Any < Scenario::Template
11
11
  def perform(edition_and_tag, address, *rspec_args)
12
12
  Component::Specs.perform do |specs|
13
- specs.suite = 'Test::Instance'
13
+ specs.suite = 'Test::Instance::All'
14
14
  specs.release = Release.new(edition_and_tag)
15
15
  specs.args = [address, *rspec_args]
16
16
  end
@@ -18,7 +18,7 @@ module Gitlab
18
18
 
19
19
  gitlab.instance do
20
20
  Component::Specs.perform do |specs|
21
- specs.suite = 'Test::Instance'
21
+ specs.suite = 'Test::Instance::All'
22
22
  specs.release = gitlab.release
23
23
  specs.network = gitlab.network
24
24
  specs.args = [gitlab.address]
@@ -0,0 +1,23 @@
1
+ module Gitlab
2
+ module QA
3
+ module Scenario
4
+ module Test
5
+ module Instance
6
+ ##
7
+ # Run smoke test suite against any GitLab instance,
8
+ # including staging and on-premises installation.
9
+ #
10
+ class Smoke < Scenario::Template
11
+ def perform(edition_and_tag, address, *rspec_args)
12
+ Component::Specs.perform do |specs|
13
+ specs.suite = 'Test::Instance::Smoke'
14
+ specs.release = Release.new(edition_and_tag)
15
+ specs.args = [address, *rspec_args]
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -24,7 +24,7 @@ module Gitlab
24
24
  end
25
25
 
26
26
  Component::Specs.perform do |specs|
27
- specs.suite = 'Test::Instance'
27
+ specs.suite = 'Test::Instance::All'
28
28
  specs.release = release
29
29
  specs.args = [Component::Staging::ADDRESS, *rspec_args]
30
30
  end
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '2.2.0'.freeze
3
+ VERSION = '2.3.0'.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: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grzegorz Bizon
@@ -156,6 +156,7 @@ files:
156
156
  - lib/gitlab/qa/scenario/template.rb
157
157
  - lib/gitlab/qa/scenario/test/instance/any.rb
158
158
  - lib/gitlab/qa/scenario/test/instance/image.rb
159
+ - lib/gitlab/qa/scenario/test/instance/smoke.rb
159
160
  - lib/gitlab/qa/scenario/test/instance/staging.rb
160
161
  - lib/gitlab/qa/scenario/test/integration/geo.rb
161
162
  - lib/gitlab/qa/scenario/test/integration/kubernetes.rb