Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
981f87aa
Commit
981f87aa
authored
Apr 07, 2022
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test using suffixes in version identifiers
parent
8e026f25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
spec/lib/gitlab/ci/runner_upgrade_check_spec.rb
spec/lib/gitlab/ci/runner_upgrade_check_spec.rb
+15
-10
No files found.
spec/lib/gitlab/ci/runner_upgrade_check_spec.rb
View file @
981f87aa
...
...
@@ -17,7 +17,7 @@ RSpec.describe Gitlab::Ci::RunnerUpgradeCheck do
end
context
'with available_runner_releases configured up to 14.1.1'
do
let
(
:available_runner_releases
)
{
%w[13.9.0 13.9.1 13.9.2 13.10.0 13.10.1 14.0.0 14.0.1 14.0.2 14.1.0 14.1.1]
}
let
(
:available_runner_releases
)
{
%w[13.9.0 13.9.1 13.9.2 13.10.0 13.10.1 14.0.0 14.0.1 14.0.2 14.1.0 14.1.1
14.1.1-rc3
]
}
context
'with nil runner_version'
do
let
(
:runner_version
)
{
nil
}
...
...
@@ -60,10 +60,15 @@ RSpec.describe Gitlab::Ci::RunnerUpgradeCheck do
context
'with valid params'
do
where
(
:runner_version
,
:expected_result
)
do
'v14.1.0-rc3'
|
:not_available
# not available since the GitLab instance is still on 14.0.x
'v14.1.0~beta.1574.gf6ea9389'
|
:not_available
# suffixes are correctly handled
'v14.1.0/1.1.0'
|
:not_available
# suffixes are correctly handled
'v14.1.0'
|
:not_available
# not available since the GitLab instance is still on 14.0.x
'v14.0.1'
|
:recommended
# recommended upgrade since 14.0.2 is available
'v14.0.2'
|
:not_available
# not available since 14.0.2 is the latest 14.0.x release available
'v13.10.1'
|
:available
# available upgrade: 14.1.1
'v13.10.1~beta.1574.gf6ea9389'
|
:available
# suffixes are correctly handled
'v13.10.1/1.1.0'
|
:available
# suffixes are correctly handled
'v13.10.0'
|
:recommended
# recommended upgrade since 13.10.1 is available
'v13.9.2'
|
:recommended
# recommended upgrade since backports are no longer released for this version
'v13.9.0'
|
:recommended
# recommended upgrade since backports are no longer released for this version
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment