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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
7366c319
Commit
7366c319
authored
Nov 06, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additional specs for Normalizer
parent
2adfbf1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
spec/lib/gitlab/ci/config/normalizer_spec.rb
spec/lib/gitlab/ci/config/normalizer_spec.rb
+14
-0
No files found.
spec/lib/gitlab/ci/config/normalizer_spec.rb
View file @
7366c319
...
...
@@ -31,6 +31,16 @@ describe Gitlab::Ci::Config::Normalizer do
expect
(
configs
).
to
all
(
eq
(
original_config
))
end
context
'when there is a job with a slash in it'
do
let
(
:job_name
)
{
:"rspec 35/2"
}
it
'properly parallelizes job names'
do
job_names
=
[
:"rspec 35/2 1/5"
,
:"rspec 35/2 2/5"
,
:"rspec 35/2 3/5"
,
:"rspec 35/2 4/5"
,
:"rspec 35/2 5/5"
]
is_expected
.
to
include
(
*
job_names
)
end
end
context
'when jobs depend on parallelized jobs'
do
let
(
:config
)
{
{
job_name
=>
job_config
,
other_job:
{
script:
'echo 1'
,
dependencies:
[
job_name
.
to_s
]
}
}
}
...
...
@@ -39,6 +49,10 @@ describe Gitlab::Ci::Config::Normalizer do
expect
(
subject
[
:other_job
][
:dependencies
]).
to
include
(
*
job_names
)
end
it
'does not include original job name in dependencies'
do
expect
(
subject
[
:other_job
][
:dependencies
]).
not_to
include
(
job_name
)
end
end
end
end
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