BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b8dc2ab9
Commit
b8dc2ab9
authored
Mar 03, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs for pipeline processing with manual actions
parent
50c393e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
process_pipeline_service_spec.rb
spec/services/ci/process_pipeline_service_spec.rb
+6
-6
No files found.
spec/services/ci/process_pipeline_service_spec.rb
View file @
b8dc2ab9
...
...
@@ -62,7 +62,7 @@ describe Ci::ProcessPipelineService, :services do
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 @@ describe Ci::ProcessPipelineService, :services do
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 @@ describe Ci::ProcessPipelineService, :services do
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 @@ describe Ci::ProcessPipelineService, :services do
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