gitlab-qa 10.1.0 → 10.2.1

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: d3d71c9b26ee6da1b637bd155fc3dca98e47f739435802737110b8c76273068f
4
- data.tar.gz: 4ede3accf59fadf7ba32c05cb49e0ba53eb3e9c809aa4c0978edb650e04ae529
3
+ metadata.gz: 6a87ce2862d1a1e65107ce6b34b35e9ffdea5dacd3ac8d193d0193ccd70955f2
4
+ data.tar.gz: 6b5e54d9aff03e63831b2874076ade24540c164e5391e628c0ab7b6a2a0f19b6
5
5
  SHA512:
6
- metadata.gz: 70441f243143e6d241f91729d1f35ba1d1668438bbd61bfe534e616e501c989af6382606986fdf593043d2a70a7e7dd59c9d7af5ccf52f93245b29a32dcf2bb7
7
- data.tar.gz: 00ecb2e2599f15295e57bfda8313b9312e780693ddc9015b344a21f25d7b0ece878789e9ee6772825617abe8ae7d262429082fe7884cc4c8e8f07ff99a5a6018
6
+ metadata.gz: 617455a03eba3c3e7fb55eed317084851160409105c356d76cfb7c449daa383985a62ae7a4ccac64e2804511aed8a7fe826a4bf3effac7210150c5359fa209d7
7
+ data.tar.gz: 9947e70d1176453db67c99223ed72c9f8be9764ffb80985fd94666d758ef5abca7b3d67b294f24988d5d089a6b1f1afc9e30ca2eed9134c944c8ccec2a1216b6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-qa (10.1.0)
4
+ gitlab-qa (10.2.1)
5
5
  activesupport (~> 6.1)
6
6
  gitlab (~> 4.18.0)
7
7
  http (~> 5.0)
@@ -108,6 +108,10 @@ All environment variables used by GitLab QA should be defined in [`lib/gitlab/qa
108
108
  | `QA_1P_PASSWORD` | - | Password for authenticating into 1Password. | No |
109
109
  | `QA_1P_SECRET` | - | Secret for authenticating into 1Password. | No |
110
110
  | `QA_1P_GITHUB_UUID` | - | UUID for GitHub item in GitLab-QA 1Password vault. | No |
111
+ | `RELEASE` | - | The release image to use for an orchestrated GitLab instance. | No |
112
+ | `RELEASE_REGISTRY_URL` | - | The registry url to fetch the release image for an orchestrated GitLab. | No |
113
+ | `RELEASE_REGISTRY_USERNAME` | - | The username to log in to the registry for pulling the release image for orchestrated GitLab. | No |
114
+ | `RELEASE_REGISTRY_PASSWORD` | - | The password to log in to the registry for pulling the release image for orchestrated GitLab. | No |
111
115
 
112
116
  ## [Supported Remote Grid environment variables](./running_against_remote_grid.md)
113
117
 
@@ -311,7 +315,7 @@ $ gitlab-qa Test::Omnibus::Upgrade CE
311
315
  $ gitlab-qa Test::Omnibus::Upgrade gitlab/gitlab-ce:my-custom-tag
312
316
  ```
313
317
 
314
- ### `Test::Omnibus::UpdateFromPrevious <full image address> <current_version> <major|minor>`
318
+ ### `Test::Omnibus::UpdateFromPrevious <full image address> <current_version> <major|minor> <from_edition>`
315
319
 
316
320
  Scenario verifies upgrade from previous (major|minor) version to current release.
317
321
 
@@ -152,17 +152,29 @@ module Gitlab
152
152
  def login_params
153
153
  return if Runtime::Env.skip_pull?
154
154
 
155
- if dev_gitlab_org?
156
- Runtime::Env.require_qa_dev_access_token!
157
-
158
- {
159
- username: Runtime::Env.gitlab_dev_username,
160
- password: Runtime::Env.dev_access_token_variable,
161
- registry: DEV_REGISTRY
162
- }
163
- elsif omnibus_mirror? || omnibus_security?
164
- omnibus_login_params
155
+ params = if dev_gitlab_org?
156
+ Runtime::Env.require_qa_dev_access_token!
157
+
158
+ {
159
+ username: Runtime::Env.gitlab_dev_username,
160
+ password: Runtime::Env.dev_access_token_variable,
161
+ registry: DEV_REGISTRY
162
+ }
163
+ elsif omnibus_mirror? || omnibus_security?
164
+ omnibus_login_params
165
+ end
166
+
167
+ populate_registry_env_vars(params)
168
+ end
169
+
170
+ def populate_registry_env_vars(params)
171
+ if params
172
+ Runtime::Env.release_registry_url = params[:registry]
173
+ Runtime::Env.release_registry_username = params[:username]
174
+ Runtime::Env.release_registry_password = params[:password]
165
175
  end
176
+
177
+ params
166
178
  end
167
179
 
168
180
  def omnibus_login_params
@@ -144,7 +144,11 @@ module Gitlab
144
144
  'QA_1P_EMAIL' => :qa_1p_email,
145
145
  'QA_1P_PASSWORD' => :qa_1p_password,
146
146
  'QA_1P_SECRET' => :qa_1p_secret,
147
- 'QA_1P_GITHUB_UUID' => :qa_1p_github_uuid
147
+ 'QA_1P_GITHUB_UUID' => :qa_1p_github_uuid,
148
+ 'RELEASE' => :release,
149
+ 'RELEASE_REGISTRY_URL' => :release_registry_url,
150
+ 'RELEASE_REGISTRY_USERNAME' => :release_registry_username,
151
+ 'RELEASE_REGISTRY_PASSWORD' => :release_registry_password
148
152
  }.freeze
149
153
 
150
154
  ENV_VARIABLES.each do |env_name, method_name|
@@ -22,6 +22,13 @@ module Gitlab
22
22
  # @param [Array] *rspec_args rspec arguments
23
23
  # @return [void]
24
24
  def perform(release, current_version, semver_component, from_edition = nil, *rspec_args)
25
+ # When from_edition isn't actually passed but RSpec args arg passed with `-- rspec_args...`,
26
+ # from_edition is wrongly set to `--`, so we fix that here.
27
+ if from_edition == "--"
28
+ rspec_args.prepend('--')
29
+ from_edition = nil
30
+ end
31
+
25
32
  @current_release = QA::Release.new(release)
26
33
  @upgrade_path = Support::GitlabUpgradePath.new(
27
34
  current_version,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module QA
5
- VERSION = '10.1.0'
5
+ VERSION = '10.2.1'
6
6
  end
7
7
  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: 10.1.0
4
+ version: 10.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2023-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control