gitlab-qa 7.21.1 → 7.22.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 +15 -0
- data/README.md +0 -1
- data/docs/what_tests_can_be_run.md +47 -5
- data/lib/gitlab/qa/report/results_in_testcases.rb +2 -2
- data/lib/gitlab/qa/scenario/test/integration/integrations.rb +32 -0
- data/lib/gitlab/qa/version.rb +1 -1
- data/lib/gitlab/qa.rb +1 -0
- metadata +3 -3
- data/docs/running_specific_orchestrated_tests.md +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 844c99c0251d384017a5276158c67476caba4da667ac93fd5c753641173a3c22
|
4
|
+
data.tar.gz: b67e5382bb0493a147dcaef6b6afa6e63591673b302c04dafb00a07da6e428c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a0342f9b71831a3f5d0924506e6f00d0f0621e0bc44096b285d2346afb23284bb56ade7778fc1613df5a3c3bc3f13e10ef58634f38e57eb95fbd45f99d1f776
|
7
|
+
data.tar.gz: 91a8a798f1b3f642954022124e8cb3ca07ec52b2579503979c973e880a5cea202447a15dc5b869aa6ac291745f6ed6f5075e527d10af6d84adc615321f7de5fb
|
data/.gitlab-ci.yml
CHANGED
@@ -1190,6 +1190,21 @@ ee:jira-quarantine:
|
|
1190
1190
|
variables:
|
1191
1191
|
QA_SCENARIO: "Test::Integration::Jira"
|
1192
1192
|
|
1193
|
+
ce:integrations:
|
1194
|
+
extends:
|
1195
|
+
- .rules:ce-never-when-triggered-by-feature-flag-definition-change
|
1196
|
+
- .test
|
1197
|
+
- .high-capacity
|
1198
|
+
- .ce-variables
|
1199
|
+
- .rspec-report-opts
|
1200
|
+
variables:
|
1201
|
+
QA_SCENARIO: "Test::Integration::Integrations"
|
1202
|
+
|
1203
|
+
ce:integrations-quarantine:
|
1204
|
+
extends:
|
1205
|
+
- ce:integrations
|
1206
|
+
- .quarantine
|
1207
|
+
|
1193
1208
|
ce:large-setup:
|
1194
1209
|
extends:
|
1195
1210
|
- .rules:ce-never-when-triggered-by-feature-flag-definition-change
|
data/README.md
CHANGED
@@ -88,7 +88,6 @@ of tests.
|
|
88
88
|
- [How it works](docs/how_it_works.md)
|
89
89
|
- [Release process](docs/release_process.md)
|
90
90
|
- [Run QA tests against your GDK setup](docs/run_qa_against_gdk.md)
|
91
|
-
- [Running specific orchestrated tests](docs/running_specific_orchestrated_tests.md)
|
92
91
|
- [Trainings](docs/trainings.md)
|
93
92
|
- [Waits](docs/waits.md)
|
94
93
|
- [What tests can be run?](docs/what_tests_can_be_run.md)
|
@@ -95,6 +95,7 @@ All environment variables used by GitLab QA should be defined in [`lib/gitlab/qa
|
|
95
95
|
| `GITLAB_QA_USER_AGENT` |- | The browser user-agent to use instead of the default Chrome user-agent. | No|
|
96
96
|
| `GEO_FAILOVER` | `false` | Set to `true` when a Geo secondary site has been promoted to a Geo primary site. | No|
|
97
97
|
| `GITLAB_INITIAL_ROOT_PASSWORD` | `5iveL!fe` | Initial root password for Omnibus installations | No|
|
98
|
+
| `COLORIZED_LOGS` | `false` | Colors GitLab QA and test logs to improve readability | No|
|
98
99
|
|
99
100
|
## [Supported Remote Grid environment variables](./running_against_remote_grid.md)
|
100
101
|
|
@@ -664,6 +665,20 @@ Example:
|
|
664
665
|
$ gitlab-qa Test::Integration::Actioncable CE
|
665
666
|
```
|
666
667
|
|
668
|
+
### `Test::Integration::Integrations CE|<full image address>`
|
669
|
+
|
670
|
+
This scenario is intended to test the different integrations that a GitLab instance can offer, such as WebHooks to an external service, Jenkins, etc.
|
671
|
+
|
672
|
+
To run tests against the GitLab container, a GitLab QA (`gitlab/gitlab-qa`)
|
673
|
+
container is spun up and tests are run from it by running the
|
674
|
+
`Test::Integration::Integrations` scenario.
|
675
|
+
|
676
|
+
Example:
|
677
|
+
|
678
|
+
```
|
679
|
+
$ gitlab-qa Test::Integration::Integrations CE
|
680
|
+
```
|
681
|
+
|
667
682
|
### `Test::Instance::Any CE|EE|<full image address>:nightly|latest|any_tag http://your.instance.gitlab`
|
668
683
|
|
669
684
|
This tests that a live GitLab instance works as expected by running tests
|
@@ -877,12 +892,39 @@ $ gitlab-qa Test::Instance::Airgapped EE -- --tag smoke
|
|
877
892
|
|
878
893
|
### `Test::Instance::Image CE|EE|<full image address> --omnibus-config object_storage`
|
879
894
|
|
880
|
-
This orchestrated scenario runs tests from the test suite against a GitLab instance which has object storage configured instead of using local storage. The omnibus configuration `object_storage` ([configurator](configuring_omnibus.md)), uses Minio and `object_storage_aws` uses an AWS S3 account with credentials configured in the pipeline as CI Variables
|
895
|
+
This orchestrated scenario runs tests from the test suite against a GitLab instance which has object storage configured instead of using local storage. The omnibus configuration `object_storage` ([configurator](configuring_omnibus.md)), uses Minio and `object_storage_aws` uses an AWS S3 account with credentials configured in the pipeline as CI Variables. To use Google Cloud Storage pass `--omnibus-config object_storage_gcp`. According to the storage selected it requires:
|
896
|
+
|
897
|
+
| Scenario | Variable | Description |
|
898
|
+
|-----------------------|---------------------|--------------------------------------|
|
899
|
+
| AWS S3 Object Storage | AWS_S3_REGION | AWS region where bucket is created |
|
900
|
+
| AWS S3 Object Storage | AWS_S3_KEY_ID | AWS credentials |
|
901
|
+
| AWS S3 Object Storage | AWS_S3_ACCESS_KEY | AWS credentials |
|
902
|
+
| AWS S3 Object Storage | AWS_S3_BUCKET_NAME | Name of the bucket set in AWS |
|
903
|
+
| GCP Object Storage | GCS_BUCKET_NAME | Name of the bucket set in AWS |
|
904
|
+
| GCP Object Storage | GOOGLE_JSON_KEY | JSON key credential |
|
905
|
+
| GCP Object Storage | GOOGLE_CLIENT_EMAIL | Email address of the service account |
|
906
|
+
| GCP Object Storage | GOOGLE_PROJECT | GCP project name |
|
907
|
+
|
908
|
+
These variables are available at 1Password QA Vault.
|
909
|
+
|
910
|
+
### `Test::Integration::RegistryTLS EE`
|
911
|
+
|
912
|
+
It requires GitLab's TLS certificate found on the [`tls_certificates`](https://gitlab.com/gitlab-org/gitlab-qa/-/blob/master/tls_certificates/gitlab/gitlab.test.crt) folder
|
913
|
+
```
|
914
|
+
$ export GITLAB_TLS_CERTIFICATE=$(cat /path/to/certificate.crt)
|
915
|
+
```
|
916
|
+
|
917
|
+
To run a scenario with an insecure registry enabled use `Test::Integration::Registry EE` instead (it does not require the above certificate).
|
918
|
+
|
919
|
+
### Test::Integration::RegistryTLS EE --omnibus-config object_storage
|
920
|
+
|
921
|
+
This scenario is a composition of two orchestrated scenarios. It tests the container registry (TLS-enabled) integrated with an object storage backend.
|
922
|
+
|
923
|
+
An example would be to pass the option `--omnibus-config object_storage_aws` and the registry will be pulling and pushing images using AWS Cloud Storage as a storage backend.
|
881
924
|
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
* `AWS_S3_BUCKET_NAME` - The name of the bucket where objects are stored. After a bucket is created, the name of that bucket cannot be used by another AWS account in any AWS Region until the bucket is deleted.
|
925
|
+
```
|
926
|
+
GITLAB_TLS_CERTIFICATE=$(cat /path/to/certificate.crt) gitlab-qa Test::Integration::RegistryTLS EE --omnibus-config object_storage_aws
|
927
|
+
```
|
886
928
|
|
887
929
|
### `Test::Instance::Geo EE|<full image address>:nightly|latest|any_tag http://geo-primary.gitlab http://geo-secondary.gitlab`
|
888
930
|
|
@@ -70,8 +70,8 @@ module Gitlab
|
|
70
70
|
<<~MKDOWN.strip
|
71
71
|
### Executions
|
72
72
|
|
73
|
-
|
74
|
-
<img src="https://dashboards.quality.gitlab.net/render/d-solo/cW0UMgv7k/spec-health?orgId=1&var-run_type=
|
73
|
+
All Environments:
|
74
|
+
<img src="https://dashboards.quality.gitlab.net/render/d-solo/cW0UMgv7k/spec-health?orgId=1&var-run_type=All&var-name=#{formatted_title}&panelId=4&width=1000&height=500" />
|
75
75
|
MKDOWN
|
76
76
|
end
|
77
77
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gitlab
|
4
|
+
module QA
|
5
|
+
module Scenario
|
6
|
+
module Test
|
7
|
+
module Integration
|
8
|
+
class Integrations < Scenario::Template
|
9
|
+
def perform(release, *rspec_args)
|
10
|
+
Component::Gitlab.perform do |gitlab|
|
11
|
+
gitlab.release = QA::Release.new(release)
|
12
|
+
gitlab.network = 'test'
|
13
|
+
gitlab.name = 'gitlab-integrations'
|
14
|
+
gitlab.instance do
|
15
|
+
Component::Specs.perform do |specs|
|
16
|
+
rspec_args << '--' unless rspec_args.include?('--')
|
17
|
+
rspec_args << %w[--tag integrations]
|
18
|
+
specs.suite = 'Test::Instance::All'
|
19
|
+
specs.hostname = "qa-e2e-specs.#{gitlab.network}"
|
20
|
+
specs.release = gitlab.release
|
21
|
+
specs.network = gitlab.network
|
22
|
+
specs.args = [gitlab.address, *rspec_args]
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/gitlab/qa/version.rb
CHANGED
data/lib/gitlab/qa.rb
CHANGED
@@ -74,6 +74,7 @@ module Gitlab
|
|
74
74
|
autoload :Registry, 'gitlab/qa/scenario/test/integration/registry'
|
75
75
|
autoload :RegistryTLS, 'gitlab/qa/scenario/test/integration/registry_tls'
|
76
76
|
autoload :ServicePingDisabled, 'gitlab/qa/scenario/test/integration/service_ping_disabled'
|
77
|
+
autoload :Integrations, 'gitlab/qa/scenario/test/integration/integrations'
|
77
78
|
end
|
78
79
|
|
79
80
|
module Sanity
|
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: 7.
|
4
|
+
version: 7.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab Quality
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|
@@ -228,7 +228,6 @@ files:
|
|
228
228
|
- docs/release_process.md
|
229
229
|
- docs/run_qa_against_gdk.md
|
230
230
|
- docs/running_against_remote_grid.md
|
231
|
-
- docs/running_specific_orchestrated_tests.md
|
232
231
|
- docs/trainings.md
|
233
232
|
- docs/waits.md
|
234
233
|
- docs/what_tests_can_be_run.md
|
@@ -316,6 +315,7 @@ files:
|
|
316
315
|
- lib/gitlab/qa/scenario/test/integration/gitaly_cluster.rb
|
317
316
|
- lib/gitlab/qa/scenario/test/integration/group_saml.rb
|
318
317
|
- lib/gitlab/qa/scenario/test/integration/instance_saml.rb
|
318
|
+
- lib/gitlab/qa/scenario/test/integration/integrations.rb
|
319
319
|
- lib/gitlab/qa/scenario/test/integration/jira.rb
|
320
320
|
- lib/gitlab/qa/scenario/test/integration/kubernetes.rb
|
321
321
|
- lib/gitlab/qa/scenario/test/integration/ldap.rb
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# Running specific orchestrated tests
|
2
|
-
|
3
|
-
## Maven artifact spec
|
4
|
-
|
5
|
-
The [maven repository spec](https://gitlab.com/gitlab-org/gitlab/-/blob/master/qa/qa/specs/features/ee/browser_ui/5_package/maven_repository_spec.rb) creates a Maven artifact and links it to a GitLab project. The artifact is created within a [Maven docker image](https://gitlab.com/gitlab-org/gitlab/-/blob/master/qa/qa/service/docker_run/maven.rb#L8).
|
6
|
-
|
7
|
-
Using `gitlab-qa` to run these tests reduces the likelihood of network errors between the maven container and GitLab instance.
|
8
|
-
|
9
|
-
To run this with `gitlab-qa` you can use the `Test::Instance::Image` that is needed for your test. For example:
|
10
|
-
|
11
|
-
`gitlab-qa Test::Instance::Image registry.gitlab.com/gitlab-org/build/omnibus-gitlab-mirror/gitlab-ee:2cb9a85d2beadd51b926eaddb05005403bee0013 -- --tag orchestrated qa/specs/features/ee/browser_ui/5_package/maven_repository_spec.rb` - runs the test against a specific Omnibus GitLab image that was built through `package-and-qa`.
|