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
b8dc2ab9
Commit
b8dc2ab9
authored
7 years ago
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs for pipeline processing with manual actions
parent
50c393e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/services/ci/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
...
...
This diff is collapsed.
Click to expand it.
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