Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
804a851c3761
Commit
b8dc2ab9
authored
Mar 03, 2017
by
Grzegorz Bizon
Browse files
Fix specs for pipeline processing with manual actions
parent
2cddbb95eb98
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/services/ci/process_pipeline_service_spec.rb
View file @
804a851c
...
...
@@ -62,7 +62,7 @@
end
end
context
'properly creates builds when
"when" is
defined'
do
context
'properly creates builds when
optional actions are
defined'
do
before
do
create_build
(
'build'
,
stage_idx:
0
)
create_build
(
'test'
,
stage_idx:
1
)
...
...
@@ -192,7 +192,7 @@
end
end
context
'when listing manual actions'
do
context
'when listing
optional
manual actions'
do
it
'returns only for skipped builds'
do
# currently all builds are created
expect
(
process_pipeline
).
to
be_truthy
...
...
@@ -220,9 +220,9 @@
builds
.
each
(
&
:reload
)
end
context
'when first stage has only manual
job
s'
do
context
'when first stage has only
optional
manual
action
s'
do
let
(
:builds
)
do
[
create_build
(
'build'
,
stage_idx:
0
,
when:
'manual'
),
[
create_build
(
'build'
,
stage_idx:
0
,
when:
'manual'
,
allow_failure:
true
),
create_build
(
'check'
,
stage_idx:
1
),
create_build
(
'test'
,
stage_idx:
2
)]
end
...
...
@@ -232,10 +232,10 @@
end
end
context
'when second stage has only manual
job
s'
do
context
'when second stage has only
optional
manual
action
s'
do
let
(
:builds
)
do
[
create_build
(
'check'
,
stage_idx:
0
),
create_build
(
'build'
,
stage_idx:
1
,
when:
'manual'
),
create_build
(
'build'
,
stage_idx:
1
,
when:
'manual'
,
allow_failure:
true
),
create_build
(
'test'
,
stage_idx:
2
)]
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