gitlab-qa 13.2.1 → 14.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 296696cc4a2e892c0c0eafc9c9d232cc799dd3534cd23fe34beae8f969d0b227
|
4
|
+
data.tar.gz: ea82d82c938d228313bb5700fb16a951bc33608c4f1dcd45954eceaf7a5d23ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97f8137c03e3221e68fc65e2191ab8c381be781af2f6a1410c6eaa8a87ef1f2107ca1151d2ec35c14efc1b772f10d0c7109877086c3c12d6005b5226990728ed
|
7
|
+
data.tar.gz: 9706b1eecc0324864aa40e0a64ea6ea8c07fdbc65fca77562131e65607244d8151438817db90490ed9730913ee03555ffb16648e81d5530d208db321c2647e1a
|
data/Gemfile.lock
CHANGED
@@ -108,7 +108,7 @@ All environment variables used by GitLab QA should be defined in [`lib/gitlab/qa
|
|
108
108
|
| `QA_1P_EMAIL` | - | Email address for authenticating into 1Password. | No |
|
109
109
|
| `QA_1P_PASSWORD` | - | Password for authenticating into 1Password. | No |
|
110
110
|
| `QA_1P_SECRET` | - | Secret for authenticating into 1Password. | No |
|
111
|
-
| `QA_1P_GITHUB_UUID` | - | UUID for
|
111
|
+
| `QA_1P_GITHUB_UUID` | - | UUID for gitlab-qa-github item in gitlab-qa-totp 1Password vault. | No |
|
112
112
|
| `RELEASE` | - | The release image to use for an orchestrated GitLab instance. | No |
|
113
113
|
| `RELEASE_REGISTRY_URL` | - | The registry url to fetch the release image for an orchestrated GitLab. | No |
|
114
114
|
| `RELEASE_REGISTRY_USERNAME` | - | The username to log in to the registry for pulling the release image for orchestrated GitLab. | No |
|
@@ -574,7 +574,7 @@ $ export EE_LICENSE=$(cat /path/to/Geo.gitlab_license)
|
|
574
574
|
$ gitlab-qa Test::Integration::InstanceSAML EE
|
575
575
|
```
|
576
576
|
|
577
|
-
### `Test::Instance::Image CE|EE|<full image address> --omnibus-config
|
577
|
+
### `Test::Instance::Image CE|EE|<full image address> --omnibus-config github_oauth`
|
578
578
|
|
579
579
|
This tests that users can sign in to a GitLab instance using external OAuth services.
|
580
580
|
|
@@ -591,10 +591,10 @@ container is spun up and tests are run from it by running the `Test::Instance::A
|
|
591
591
|
- `QA_GITHUB_OAUTH_APP_SECRET`: Client Secret for GitHub OAuth app. This can be found in the shared 1Password vault.
|
592
592
|
- `QA_GITHUB_USERNAME`: Username for authenticating with GitHub. This can be found in the shared 1Password vault.
|
593
593
|
- `QA_GITHUB_PASSWORD`: Password for authenticating with GitHub. This can be found in the shared 1Password vault.
|
594
|
-
- `QA_1P_EMAIL`: Email address for authenticating into 1Password
|
595
|
-
- `QA_1P_PASSWORD`: Password for authenticating into 1Password
|
596
|
-
- `QA_1P_SECRET`: Secret for authenticating into 1Password. This can be found in the
|
597
|
-
- `QA_1P_GITHUB_UUID`: UUID for
|
594
|
+
- `QA_1P_EMAIL`: Email address for authenticating into gitlab-qa-totp 1Password vault. This can be found in the Gitlab-QA 1Password vault.
|
595
|
+
- `QA_1P_PASSWORD`: Password for authenticating into gitlab-qa-totp 1Password vault. This can be found in the Gitlab-QA 1Password vault.
|
596
|
+
- `QA_1P_SECRET`: Secret for authenticating into gitlab-qa-totp 1Password vault. This can be found in the Gitlab-QA 1Password vault.
|
597
|
+
- `QA_1P_GITHUB_UUID`: UUID for gitlab-qa-github item in gitlab-qa-totp 1Password vault. This can be found in the Gitlab-QA 1Password vault. The gitlab-qa-totp vault can be accessed with the the creds provided in 1P under "GitLab-QA 1Password user with access to gitlab-qa-totp vault"
|
598
598
|
- `QA_GITLAB_HOSTNAME`: Hostname set for GitLab instance. This must be set to `gitlab` as the external OAuth applications have been setup to use this.
|
599
599
|
- `QA_GITLAB_USE_TLS`: Use TLS for setting up GitLab instance. This must be set to `true` as since some external OAuth applications require the client to use TLS.
|
600
600
|
|
@@ -608,7 +608,7 @@ $ export QA_GITHUB_PASSWORD=your_github_password
|
|
608
608
|
$ export QA_1P_EMAIL=1password_email
|
609
609
|
$ export QA_1P_PASSWORD=1password_password
|
610
610
|
$ export QA_1P_SECRET=1password_secret
|
611
|
-
$ export QA_1P_GITHUB_UUID=
|
611
|
+
$ export QA_1P_GITHUB_UUID=1password_gitlab-qa-github_item_uuid
|
612
612
|
|
613
613
|
$ gitlab-qa Test::Integration::OAuth CE
|
614
614
|
|
@@ -79,8 +79,6 @@ module Gitlab
|
|
79
79
|
'GITLAB_QA_PASSWORD_2' => :gitlab_qa_password_2,
|
80
80
|
'QA_GITHUB_USERNAME' => :qa_github_username,
|
81
81
|
'QA_GITHUB_PASSWORD' => :qa_github_password,
|
82
|
-
'QA_FACEBOOK_USERNAME' => :qa_facebook_username,
|
83
|
-
'QA_FACEBOOK_PASSWORD' => :qa_facebook_password,
|
84
82
|
'QA_GITLAB_HOSTNAME' => :qa_gitlab_hostname,
|
85
83
|
'QA_GITLAB_USE_TLS' => :qa_gitlab_use_tls,
|
86
84
|
'KNAPSACK_GENERATE_REPORT' => :knapsack_generate_report,
|
@@ -146,8 +144,6 @@ module Gitlab
|
|
146
144
|
'JH_ENV' => :jh_env,
|
147
145
|
'QA_GITHUB_OAUTH_APP_ID' => :github_oauth_app_id,
|
148
146
|
'QA_GITHUB_OAUTH_APP_SECRET' => :github_oauth_app_secret,
|
149
|
-
'QA_FACEBOOK_OAUTH_APP_ID' => :facebook_oauth_app_id,
|
150
|
-
'QA_FACEBOOK_OAUTH_APP_SECRET' => :facebook_oauth_app_secret,
|
151
147
|
'QA_1P_EMAIL' => :qa_1p_email,
|
152
148
|
'QA_1P_PASSWORD' => :qa_1p_password,
|
153
149
|
'QA_1P_SECRET' => :qa_1p_secret,
|
@@ -298,18 +294,7 @@ module Gitlab
|
|
298
294
|
|
299
295
|
def require_oauth_environment!
|
300
296
|
%w[QA_GITHUB_OAUTH_APP_ID QA_GITHUB_OAUTH_APP_SECRET QA_GITHUB_USERNAME
|
301
|
-
QA_GITHUB_PASSWORD QA_1P_EMAIL QA_1P_PASSWORD QA_1P_SECRET QA_1P_GITHUB_UUID
|
302
|
-
QA_FACEBOOK_PASSWORD QA_FACEBOOK_OAUTH_APP_SECRET QA_FACEBOOK_OAUTH_APP_ID].each do |env_key|
|
303
|
-
unless ENV.key?(env_key)
|
304
|
-
raise ArgumentError,
|
305
|
-
"Environment variable #{env_key} must be set to run OAuth specs"
|
306
|
-
end
|
307
|
-
end
|
308
|
-
end
|
309
|
-
|
310
|
-
def require_facebook_environment!
|
311
|
-
%w[QA_FACEBOOK_USERNAME QA_FACEBOOK_PASSWORD QA_FACEBOOK_OAUTH_APP_SECRET
|
312
|
-
QA_FACEBOOK_OAUTH_APP_ID].each do |env_key|
|
297
|
+
QA_GITHUB_PASSWORD QA_1P_EMAIL QA_1P_PASSWORD QA_1P_SECRET QA_1P_GITHUB_UUID].each do |env_key|
|
313
298
|
unless ENV.key?(env_key)
|
314
299
|
raise ArgumentError,
|
315
300
|
"Environment variable #{env_key} must be set to run OAuth specs"
|
@@ -24,12 +24,18 @@ module Gitlab
|
|
24
24
|
#
|
25
25
|
# @param [<Symbol, String>] level
|
26
26
|
# @param [String] source
|
27
|
-
# @return [ActiveSupport::Logger]
|
27
|
+
# @return [ActiveSupport::Logger, ActiveSupport::BroadcastLogger]
|
28
28
|
def logger(level: :info, source: 'Gitlab QA', path: 'tmp')
|
29
29
|
console_log = console_logger(level: level, source: source)
|
30
30
|
file_log = file_logger(source: source, path: path)
|
31
31
|
|
32
|
-
ActiveSupport
|
32
|
+
if ActiveSupport.const_defined?(:BroadcastLogger)
|
33
|
+
ActiveSupport::BroadcastLogger.new(console_log, file_log)
|
34
|
+
elsif ActiveSupport::Logger.respond_to?(:broadcast)
|
35
|
+
console_log.extend(ActiveSupport::Logger.broadcast(file_log))
|
36
|
+
else
|
37
|
+
raise 'Could not configure logger broadcasting'
|
38
|
+
end
|
33
39
|
end
|
34
40
|
|
35
41
|
private
|
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
|
+
version: 14.0.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: 2024-01-
|
11
|
+
date: 2024-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|
@@ -421,7 +421,6 @@ files:
|
|
421
421
|
- lib/gitlab/qa/runtime/omnibus_configurations/decomposition_multiple_db.rb
|
422
422
|
- lib/gitlab/qa/runtime/omnibus_configurations/decomposition_single_db.rb
|
423
423
|
- lib/gitlab/qa/runtime/omnibus_configurations/default.rb
|
424
|
-
- lib/gitlab/qa/runtime/omnibus_configurations/facebook_oauth.rb
|
425
424
|
- lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
|
426
425
|
- lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb
|
427
426
|
- lib/gitlab/qa/runtime/omnibus_configurations/object_storage_aws.rb
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Gitlab
|
4
|
-
module QA
|
5
|
-
module Runtime
|
6
|
-
module OmnibusConfigurations
|
7
|
-
class FacebookOauth < Default
|
8
|
-
def configuration
|
9
|
-
Runtime::Env.require_facebook_environment!
|
10
|
-
|
11
|
-
<<~OMNIBUS
|
12
|
-
gitlab_rails['omniauth_enabled'] = true
|
13
|
-
gitlab_rails['omniauth_allow_single_sign_on'] = ['facebook']
|
14
|
-
gitlab_rails['omniauth_block_auto_created_users'] = false
|
15
|
-
gitlab_rails['omniauth_providers'] = [
|
16
|
-
{
|
17
|
-
name: 'facebook',
|
18
|
-
app_id: '$QA_FACEBOOK_OAUTH_APP_ID',
|
19
|
-
app_secret: '$QA_FACEBOOK_OAUTH_APP_SECRET',
|
20
|
-
verify_ssl: false
|
21
|
-
}
|
22
|
-
];
|
23
|
-
letsencrypt['enable'] = false
|
24
|
-
external_url '<%= gitlab.address %>'
|
25
|
-
OMNIBUS
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|