gitlab-qa 4.11.0 → 4.12.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: acda0380864e9ee10f97e5542960037472a1e029fafb9b5d2ec7d5e147226a9b
4
- data.tar.gz: ebae8ebb0f5601efe11940cac2d1928f93635184893d9586214e0ca95e4cdfec
3
+ metadata.gz: be29a5a9db9ec0e8bf2978867441705138f451eeff78486fd648f963e152fce7
4
+ data.tar.gz: 538e0b25c50c493488073e04861d634730ecd4b7da7482adacce44501ccc2fc8
5
5
  SHA512:
6
- metadata.gz: 87584379f79124ef7406446b47e121b2da38a0f67839c830f71d092902cfd3b0ae058137a371e4ddba299a3c399d9d3d963b1f1e699c74705b3831b1464d9d3a
7
- data.tar.gz: 56f198d47e935445a4498ec4def3a6ef5c9ab5c0c7c6870684d6010c85acd3e7a8062ee3f0c9898517bde47c98c994c677a54614209a5997e98adfb33349f4af
6
+ metadata.gz: 63e172af2327cb4dbd5e8ab5f6edaa8a78621ca65d428a9aa659b2d6ae8f4405a42a1bdb0fd77b8f922c087c5cd38d57bee30bdc526071e0ff108c1ac92ccbf1
7
+ data.tar.gz: 58d2f017bf496c78cb634bb242d17fa5ba81a2d48b26eaeb928e2d516249f2c93185079c98807962bef10dca1fca62420c8b8a14e2041e3942008dc1aa3e1f12
data/.gitlab-ci.yml CHANGED
@@ -395,6 +395,30 @@ ee:elasticsearch:
395
395
  - .high-capacity
396
396
  - .ee-qa
397
397
  - .rspec-report-opts
398
+
399
+ ce:praefect:
400
+ script:
401
+ - exe/gitlab-qa Test::Integration::Praefect ${RELEASE:=CE} -- $RSPEC_REPORT_OPTS
402
+ extends:
403
+ - .test
404
+ - .high-capacity
405
+ - .ce-qa
406
+ - .knapsack-variables
407
+ - .rspec-report-opts
408
+ parallel: 5
409
+ when: manual
410
+
411
+ ee:praefect:
412
+ script:
413
+ - exe/gitlab-qa Test::Integration::Praefect ${RELEASE:=EE} -- $RSPEC_REPORT_OPTS
414
+ extends:
415
+ - .test
416
+ - .high-capacity
417
+ - .ee-qa
418
+ - .knapsack-variables
419
+ - .rspec-report-opts
420
+ parallel: 5
421
+ when: manual
398
422
 
399
423
  .report-base:
400
424
  image: ruby:2.6-alpine
@@ -65,6 +65,11 @@ For more details on the internals, please read the
65
65
  * `QA_DEBUG` - set to `true` to verbosely log page object actions. Note: if enabled be aware that sensitive data might be logged. If an input element has a QA selector with `password` in the name, data entered into the input element will be masked. If the element doesn't have `password` in its name it won't be masked.
66
66
  * `QA_LOG_PATH` - path to output debug logging to. If not set logging will be output to STDOUT
67
67
  * `QA_CAN_TEST_GIT_PROTOCOL_V2` - set to `false` to skip tests that require Git protocol v2 if your environment doesn't support it.
68
+ * `QA_CAN_TEST_ADMIN_FEATURES` - set to `false` to skip tests that require admin access.
69
+ * `QA_DISABLE_RSPEC_RETRY` - set to `true` to turn off retrying tests on failure.
70
+ * `QA_SIMULATE_SLOW_CONNECTION` - set to `true` to configure Chrome's network settings to simulate a slow connection.
71
+ * `QA_SLOW_CONNECTION_LATENCY_MS` - the additional latency (in ms) of the simulated slow connection (default 2000 ms).
72
+ * `QA_SLOW_CONNECTION_THROUGHPUT_KBPS` - the maximum throughput (in kbps) of the simulated slow connection (default 32 kbps).
68
73
  * `QA_SKIP_PULL` - set to `true` to skip pulling docker images (e.g., to use one you built locally).
69
74
  * `GITHUB_OAUTH_APP_ID` - Client ID for GitHub OAuth app. See https://docs.gitlab.com/ce/integration/github.html for steps to generate this token.
70
75
  * `GITHUB_OAUTH_APP_SECRET` - Client Secret for GitHub OAuth app. See https://docs.gitlab.com/ce/integration/github.html for steps to generate this token.
@@ -75,7 +80,6 @@ For more details on the internals, please read the
75
80
  * `GITLAB_QA_1P_SECRET` - Secret for authenticating into 1Password.
76
81
  * `GITLAB_QA_1P_GITHUB_UUID` - UUID for GitHub item in GitLab-QA 1Password vault.
77
82
  * `GITLAB_QA_LOOP_RUNNER_MINUTES` - Minutes to run and repeat a spec while using the '--loop' option; default value is 1 minute.
78
- * `QA_CAN_TEST_ADMIN_FEATURES` - set to 'false' to skip tests that require admin access
79
83
 
80
84
  ## [Supported Remote Grid environment variables](./running_against_remote_grid.md)
81
85
 
@@ -19,7 +19,6 @@ module Gitlab
19
19
 
20
20
  CERTIFICATES_PATH = File.expand_path('../../../../tls_certificates/gitlab'.freeze, __dir__)
21
21
  SSL_PATH = '/etc/gitlab/ssl'.freeze
22
- DEFAULT_OMNIBUS_CONFIG = "gitlab_rails['rack_attack_protected_paths'] = []; ".freeze
23
22
 
24
23
  def initialize
25
24
  @docker = Docker::Engine.new
@@ -34,7 +33,7 @@ module Gitlab
34
33
  end
35
34
 
36
35
  def omnibus_config=(config)
37
- @environment['GITLAB_OMNIBUS_CONFIG'] = DEFAULT_OMNIBUS_CONFIG + config.tr("\n", ' ')
36
+ @environment['GITLAB_OMNIBUS_CONFIG'] = config.tr("\n", ' ')
38
37
  end
39
38
 
40
39
  def elastic_url=(url)
@@ -39,6 +39,10 @@ module Gitlab
39
39
  'QA_DEBUG' => :qa_debug,
40
40
  'QA_LOG_PATH' => :qa_log_path,
41
41
  'QA_CAN_TEST_GIT_PROTOCOL_V2' => :qa_can_test_git_protocol_v2,
42
+ 'QA_DISABLE_RSPEC_RETRY' => :qa_disable_rspec_retry,
43
+ 'QA_SIMULATE_SLOW_CONNECTION' => :qa_simulate_slow_connection,
44
+ 'QA_SLOW_CONNECTION_LATENCY_MS' => :qa_slow_connection_latency_ms,
45
+ 'QA_SLOW_CONNECTION_THROUGHPUT_KBPS' => :qa_slow_connection_throughput_kbps,
42
46
  'GITLAB_QA_USERNAME_1' => :gitlab_qa_username_1,
43
47
  'GITLAB_QA_PASSWORD_1' => :gitlab_qa_password_1,
44
48
  'GITLAB_QA_USERNAME_2' => :gitlab_qa_username_2,
@@ -11,7 +11,7 @@ module Gitlab
11
11
  gitlab.relative_path = '/relative'
12
12
 
13
13
  gitlab.omnibus_config = <<~OMNIBUS
14
- external_url '#{gitlab.address}';
14
+ external_url '#{gitlab.address}'
15
15
  OMNIBUS
16
16
 
17
17
  gitlab.instance do
@@ -21,12 +21,13 @@ module Gitlab
21
21
  praefect['enable'] = true;
22
22
  praefect['listen_addr'] = '0.0.0.0:2305';
23
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
24
+ praefect['virtual_storages'] = {
25
+ 'default' => {
26
+ 'praefect-gitaly-0' => {
27
+ 'address' => 'unix:/var/opt/gitlab/gitaly/gitaly.socket',
28
+ 'token' => 'praefect-gitaly-token',
29
+ 'primary' => true
30
+ }
30
31
  }
31
32
  };
32
33
  gitlab_rails['gitaly_token'] = 'praefect-token';
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '4.11.0'.freeze
3
+ VERSION = '4.12.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.11.0
4
+ version: 4.12.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-14 00:00:00.000000000 Z
11
+ date: 2019-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control