gitlab-qa 4.4.0 → 4.5.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 +4 -4
- data/.gitlab-ci.yml +19 -0
- data/docs/what_tests_can_be_run.md +25 -2
- data/lib/gitlab/qa.rb +1 -0
- data/lib/gitlab/qa/runtime/env.rb +1 -0
- data/lib/gitlab/qa/scenario/test/integration/packages.rb +36 -0
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8d2f929f51b1584fbc473aa903a3a24257e8a345b4ead4fc0d31e1e7fd09900
|
4
|
+
data.tar.gz: 15ba39d8b8bbf3de7f69ca832382f7c3e1ba4fd7641ba017213698e3f5dd2ca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 176b2efcce65a320c90e4139a2dd174d15ddc72de09f910e5a8a3a1f4b8da7dc843f3f1c67836fb8b6c3103986d4152a90f42a2df07e6d25b9678872d7f9a84f
|
7
|
+
data.tar.gz: 6f27e0bd842e7f805ab4d9d6ccc47522742035ff4191fca5093b4e4f78f983fa472151585b0b7490dfc075df7e6b46afcf98315d4cc9622b445e31482ee9647e
|
data/.gitlab-ci.yml
CHANGED
@@ -622,6 +622,25 @@ ee:oauth-quarantine:
|
|
622
622
|
- .quarantine
|
623
623
|
- .rspec-report-opts
|
624
624
|
|
625
|
+
ee:packages:
|
626
|
+
script:
|
627
|
+
- exe/gitlab-qa Test::Integration::Packages ${RELEASE:=EE} -- $RSPEC_REPORT_OPTS
|
628
|
+
extends:
|
629
|
+
- .test
|
630
|
+
- .high-capacity
|
631
|
+
- .ee-qa
|
632
|
+
- .rspec-report-opts
|
633
|
+
|
634
|
+
ee:packages-quarantine:
|
635
|
+
script:
|
636
|
+
- exe/gitlab-qa Test::Integration::Packages ${RELEASE:=EE} -- --tag quarantine $RSPEC_REPORT_OPTS
|
637
|
+
extends:
|
638
|
+
- .test
|
639
|
+
- .high-capacity
|
640
|
+
- .ee-qa
|
641
|
+
- .quarantine
|
642
|
+
- .rspec-report-opts
|
643
|
+
|
625
644
|
ee:elasticsearch:
|
626
645
|
script:
|
627
646
|
- exe/gitlab-qa Test::Integration::Elasticsearch ${RELEASE:=EE} -- $RSPEC_REPORT_OPTS
|
@@ -270,7 +270,7 @@ $ gitlab-qa Test::Integration::LDAPTLS EE
|
|
270
270
|
This configures a GitLab instance for use with LDAP but does not
|
271
271
|
spin up an LDAP server in a docker container.
|
272
272
|
|
273
|
-
The LDAP server is created at runtime by the spec so that
|
273
|
+
The LDAP server is created at runtime by the spec so that
|
274
274
|
the test can provide the fixture data for the LDAP server
|
275
275
|
as needed.
|
276
276
|
|
@@ -295,7 +295,7 @@ Example:
|
|
295
295
|
$ export EE_LICENSE=$(cat /path/to/GitLab.gitlab_license)
|
296
296
|
|
297
297
|
$ gitlab-qa Test::Integration::LDAPNoServer EE
|
298
|
-
```
|
298
|
+
```
|
299
299
|
|
300
300
|
### `Test::Integration::GroupSAML EE|<full image address>`
|
301
301
|
|
@@ -422,6 +422,29 @@ $ gitlab-qa Test::Integration::Mattermost EE
|
|
422
422
|
|
423
423
|
[test-integration-mattermost]: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/qa/qa/scenario/test/integration/mattermost.rb
|
424
424
|
|
425
|
+
### `Test::Integration::Packages CE|EE|<full image address>`
|
426
|
+
|
427
|
+
This tests the GitLab Package Registry feature by setting
|
428
|
+
`gitlab_rails['packages_enabled'] = true` in the Omnibus configuration
|
429
|
+
before starting the GitLab container.
|
430
|
+
|
431
|
+
To run tests against the GitLab container, a GitLab QA (`gitlab/gitlab-qa`)
|
432
|
+
container is spun up and tests are run from it by running the
|
433
|
+
`Test::Instance::All` scenario with the `--tag packages` RSpec parameter,
|
434
|
+
which runs only the tests with `:packages` metadata.
|
435
|
+
|
436
|
+
**Required environment variables:**
|
437
|
+
|
438
|
+
- `EE_LICENSE`: A valid EE license.
|
439
|
+
|
440
|
+
Example:
|
441
|
+
|
442
|
+
```
|
443
|
+
$ export EE_LICENSE=$(cat /path/to/Geo.gitlab_license)
|
444
|
+
|
445
|
+
$ gitlab-qa Test::Integration::Packages EE
|
446
|
+
```
|
447
|
+
|
425
448
|
### `Test::Instance::Any CE|EE|<full image address>:nightly|latest|any_tag http://your.instance.gitlab`
|
426
449
|
|
427
450
|
This tests that a live GitLab instance works as expected by running tests
|
data/lib/gitlab/qa.rb
CHANGED
@@ -42,6 +42,7 @@ module Gitlab
|
|
42
42
|
autoload :Kubernetes, 'gitlab/qa/scenario/test/integration/kubernetes'
|
43
43
|
autoload :ObjectStorage, 'gitlab/qa/scenario/test/integration/object_storage'
|
44
44
|
autoload :OAuth, 'gitlab/qa/scenario/test/integration/oauth'
|
45
|
+
autoload :Packages, 'gitlab/qa/scenario/test/integration/packages'
|
45
46
|
autoload :Elasticsearch, 'gitlab/qa/scenario/test/integration/elasticsearch'
|
46
47
|
end
|
47
48
|
|
@@ -27,6 +27,7 @@ module Gitlab
|
|
27
27
|
'GITHUB_ACCESS_TOKEN' => :github_access_token,
|
28
28
|
'GITLAB_URL' => :gitlab_url,
|
29
29
|
'SIMPLE_SAML_HOSTNAME' => :simple_saml_hostname,
|
30
|
+
'SIMPLE_SAML_FINGERPRINT' => :simple_saml_fingerprint,
|
30
31
|
'ACCEPT_INSECURE_CERTS' => :accept_insecure_certs,
|
31
32
|
'EE_LICENSE' => :ee_license,
|
32
33
|
'GCLOUD_ACCOUNT_EMAIL' => :gcloud_account_email,
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Gitlab
|
2
|
+
module QA
|
3
|
+
module Scenario
|
4
|
+
module Test
|
5
|
+
module Integration
|
6
|
+
class Packages < Scenario::Template
|
7
|
+
def perform(release, *rspec_args)
|
8
|
+
Component::Gitlab.perform do |gitlab|
|
9
|
+
gitlab.release = Release.new(release)
|
10
|
+
gitlab.name = 'gitlab-packages'
|
11
|
+
gitlab.network = 'test'
|
12
|
+
gitlab.omnibus_config = <<~OMNIBUS
|
13
|
+
gitlab_rails['packages_enabled'] = true;
|
14
|
+
OMNIBUS
|
15
|
+
|
16
|
+
gitlab.instance do
|
17
|
+
puts "Running packages specs!"
|
18
|
+
|
19
|
+
rspec_args << "--" unless rspec_args.include?('--')
|
20
|
+
rspec_args << %w[--tag packages]
|
21
|
+
|
22
|
+
Component::Specs.perform do |specs|
|
23
|
+
specs.suite = 'Test::Instance::All'
|
24
|
+
specs.release = gitlab.release
|
25
|
+
specs.network = gitlab.network
|
26
|
+
specs.args = [gitlab.address, *rspec_args]
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
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: 4.
|
4
|
+
version: 4.5.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-10-
|
11
|
+
date: 2019-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|
@@ -202,6 +202,7 @@ files:
|
|
202
202
|
- lib/gitlab/qa/scenario/test/integration/mattermost.rb
|
203
203
|
- lib/gitlab/qa/scenario/test/integration/oauth.rb
|
204
204
|
- lib/gitlab/qa/scenario/test/integration/object_storage.rb
|
205
|
+
- lib/gitlab/qa/scenario/test/integration/packages.rb
|
205
206
|
- lib/gitlab/qa/scenario/test/integration/saml.rb
|
206
207
|
- lib/gitlab/qa/scenario/test/omnibus/image.rb
|
207
208
|
- lib/gitlab/qa/scenario/test/omnibus/update.rb
|