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
1994c032
Commit
1994c032
authored
Jan 04, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test example for pipeline with yaml errors
parent
37a61896
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
spec/factories/ci/pipelines.rb
spec/factories/ci/pipelines.rb
+4
-0
spec/features/projects/pipelines/pipelines_spec.rb
spec/features/projects/pipelines/pipelines_spec.rb
+18
-0
No files found.
spec/factories/ci/pipelines.rb
View file @
1994c032
...
@@ -36,6 +36,10 @@ FactoryGirl.define do
...
@@ -36,6 +36,10 @@ FactoryGirl.define do
#
#
pipeline
.
config_processor
if
evaluator
.
config
pipeline
.
config_processor
if
evaluator
.
config
end
end
trait
:invalid
do
config
(
rspec:
nil
)
end
end
end
end
end
end
end
spec/features/projects/pipelines/pipelines_spec.rb
View file @
1994c032
...
@@ -86,6 +86,24 @@ describe 'Pipelines', :feature, :js do
...
@@ -86,6 +86,24 @@ describe 'Pipelines', :feature, :js do
end
end
end
end
context
'when pipeline has configuration errors'
do
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
:invalid
,
project:
project
)
end
before
{
visit_project_pipelines
}
it
'contains badge that indicate errors'
do
expect
(
page
).
to
have_content
'yaml invalid'
end
it
'contains badge with tooltip which contains error'
do
expect
(
pipeline
).
to
have_yaml_errors
expect
(
page
).
to
have_selector
(
%Q{span[data-original-title="
#{
pipeline
.
yaml_errors
}
"]}
)
end
end
context
'with manual actions'
do
context
'with manual actions'
do
let!
(
:manual
)
do
let!
(
:manual
)
do
create
(
:ci_build
,
:manual
,
create
(
:ci_build
,
:manual
,
...
...
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