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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
99708dce
Commit
99708dce
authored
May 31, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test cancelability and retriablity of pipeline for generic statuses
parent
bc621eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
spec/features/pipelines_spec.rb
spec/features/pipelines_spec.rb
+30
-0
No files found.
spec/features/pipelines_spec.rb
View file @
99708dce
...
...
@@ -62,6 +62,36 @@ describe "Pipelines" do
end
end
context
'for generic statuses'
do
context
'when running'
do
let!
(
:running
)
{
create
(
:generic_commit_status
,
status:
'running'
,
commit:
pipeline
,
stage:
'test'
)
}
before
{
visit
namespace_project_pipelines_path
(
project
.
namespace
,
project
)
}
it
'not be cancelable'
do
expect
(
page
).
to_not
have_link
(
'Cancel'
)
end
it
'pipeline is running'
do
expect
(
page
).
to
have_selector
(
'.ci-running'
)
end
end
context
'when failed'
do
let!
(
:running
)
{
create
(
:generic_commit_status
,
status:
'failed'
,
commit:
pipeline
,
stage:
'test'
)
}
before
{
visit
namespace_project_pipelines_path
(
project
.
namespace
,
project
)
}
it
'not be retryable'
do
expect
(
page
).
to_not
have_link
(
'Retry'
)
end
it
'pipeline is failed'
do
expect
(
page
).
to
have_selector
(
'.ci-failed'
)
end
end
end
context
'downloadable pipelines'
do
context
'with artifacts'
do
let!
(
:with_artifacts
)
{
create
(
:ci_build
,
:artifacts
,
:success
,
commit:
pipeline
,
name:
'rspec tests'
,
stage:
'test'
)
}
...
...
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