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
c2b3559b
Commit
c2b3559b
authored
Sep 29, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Verify new pipeline failure reason in the service specs
parent
17a0a6cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/ee/spec/services/ci/create_pipeline_service_spec.rb
spec/ee/spec/services/ci/create_pipeline_service_spec.rb
+2
-2
No files found.
spec/ee/spec/services/ci/create_pipeline_service_spec.rb
View file @
c2b3559b
...
...
@@ -40,11 +40,11 @@ describe Ci::CreatePipelineService, '#execute' do
it
'drops the pipeline and cancels all jobs'
do
pipeline
=
create_pipeline!
# TODO, check failure reason
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
).
to
be_failed
expect
(
pipeline
.
statuses
).
not_to
be_empty
expect
(
pipeline
.
statuses
).
to
all
(
be_canceled
)
expect
(
pipeline
.
activity_limit_exceeded?
).
to
be
true
end
end
...
...
@@ -56,11 +56,11 @@ describe Ci::CreatePipelineService, '#execute' do
it
'drops pipeline without creating jobs'
do
pipeline
=
create_pipeline!
# TODO, check failure reason
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
).
to
be_failed
expect
(
pipeline
.
seeds_size
).
to
be
>
2
expect
(
pipeline
.
statuses
).
to
be_empty
expect
(
pipeline
.
size_limit_exceeded?
).
to
be
true
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