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
Léo-Paul Géneau
gitlab-ce
Commits
4b0cbf63
Commit
4b0cbf63
authored
Mar 26, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set up traces in jobs feature spec
parent
d0349362
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/features/projects/jobs_spec.rb
spec/features/projects/jobs_spec.rb
+6
-6
No files found.
spec/features/projects/jobs_spec.rb
View file @
4b0cbf63
...
...
@@ -113,7 +113,7 @@ feature 'Jobs' do
describe
"GET /:project/jobs/:id"
do
context
"Job from project"
do
let
(
:job
)
{
create
(
:ci_build
,
:success
,
pipeline:
pipeline
)
}
let
(
:job
)
{
create
(
:ci_build
,
:success
,
:trace_live
,
pipeline:
pipeline
)
}
before
do
visit
project_job_path
(
project
,
job
)
...
...
@@ -136,7 +136,7 @@ feature 'Jobs' do
end
context
'when job is not running'
,
:js
do
let
(
:job
)
{
create
(
:ci_build
,
:success
,
pipeline:
pipeline
)
}
let
(
:job
)
{
create
(
:ci_build
,
:success
,
:trace_artifact
,
pipeline:
pipeline
)
}
before
do
visit
project_job_path
(
project
,
job
)
...
...
@@ -153,7 +153,7 @@ feature 'Jobs' do
end
context
'if job failed'
do
let
(
:job
)
{
create
(
:ci_build
,
:failed
,
pipeline:
pipeline
)
}
let
(
:job
)
{
create
(
:ci_build
,
:failed
,
:trace_artifact
,
pipeline:
pipeline
)
}
before
do
visit
project_job_path
(
project
,
job
)
...
...
@@ -339,7 +339,7 @@ feature 'Jobs' do
context
'job is successfull and has deployment'
do
let
(
:deployment
)
{
create
(
:deployment
)
}
let
(
:job
)
{
create
(
:ci_build
,
:success
,
environment:
environment
.
name
,
deployments:
[
deployment
],
pipeline:
pipeline
)
}
let
(
:job
)
{
create
(
:ci_build
,
:success
,
:trace_artifact
,
environment:
environment
.
name
,
deployments:
[
deployment
],
pipeline:
pipeline
)
}
it
'shows a link for the job'
do
visit
project_job_path
(
project
,
job
)
...
...
@@ -349,7 +349,7 @@ feature 'Jobs' do
end
context
'job is complete and not successful'
do
let
(
:job
)
{
create
(
:ci_build
,
:failed
,
environment:
environment
.
name
,
pipeline:
pipeline
)
}
let
(
:job
)
{
create
(
:ci_build
,
:failed
,
:trace_artifact
,
environment:
environment
.
name
,
pipeline:
pipeline
)
}
it
'shows a link for the job'
do
visit
project_job_path
(
project
,
job
)
...
...
@@ -360,7 +360,7 @@ feature 'Jobs' do
context
'job creates a new deployment'
do
let!
(
:deployment
)
{
create
(
:deployment
,
environment:
environment
,
sha:
project
.
commit
.
id
)
}
let
(
:job
)
{
create
(
:ci_build
,
:success
,
environment:
environment
.
name
,
pipeline:
pipeline
)
}
let
(
:job
)
{
create
(
:ci_build
,
:success
,
:trace_artifact
,
environment:
environment
.
name
,
pipeline:
pipeline
)
}
it
'shows a link to latest deployment'
do
visit
project_job_path
(
project
,
job
)
...
...
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