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
9b27f49d
Commit
9b27f49d
authored
Mar 03, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust pipeline retry specs to use manual statuses
parent
d87132b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
retry_pipeline_service_spec.rb
spec/services/ci/retry_pipeline_service_spec.rb
+4
-4
No files found.
spec/services/ci/retry_pipeline_service_spec.rb
View file @
9b27f49d
...
...
@@ -100,7 +100,7 @@ describe Ci::RetryPipelineService, '#execute', :services do
service
.
execute
(
pipeline
)
expect
(
build
(
'rspec 1'
)).
to
be_pending
expect
(
build
(
'staging'
)).
to
be_
skipped
expect
(
build
(
'staging'
)).
to
be_
manual
expect
(
build
(
'rspec 2'
)).
to
be_created
expect
(
pipeline
.
reload
).
to
be_running
end
...
...
@@ -117,7 +117,7 @@ describe Ci::RetryPipelineService, '#execute', :services do
service
.
execute
(
pipeline
)
expect
(
build
(
'rspec 1'
)).
to
be_pending
expect
(
build
(
'rspec 2'
)).
to
be_
skipped
expect
(
build
(
'rspec 2'
)).
to
be_
manual
expect
(
build
(
'staging'
)).
to
be_created
expect
(
pipeline
.
reload
).
to
be_running
end
...
...
@@ -144,11 +144,11 @@ describe Ci::RetryPipelineService, '#execute', :services do
create_build
(
'staging'
,
:created
,
0
,
when: :manual
,
allow_failure:
true
)
end
it
'retries canceled job and
skipp
s the manual action'
do
it
'retries canceled job and
processe
s the manual action'
do
service
.
execute
(
pipeline
)
expect
(
build
(
'rspec 1'
)).
to
be_pending
expect
(
build
(
'staging'
)).
to
be_
skipped
expect
(
build
(
'staging'
)).
to
be_
manual
expect
(
pipeline
.
reload
).
to
be_running
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