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
8ac7ea43
Unverified
Commit
8ac7ea43
authored
Apr 03, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set up traces in build show spec
parent
8a4ec849
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
show.html.haml_spec.rb
spec/views/projects/jobs/show.html.haml_spec.rb
+9
-8
No files found.
spec/views/projects/jobs/show.html.haml_spec.rb
View file @
8ac7ea43
...
...
@@ -18,7 +18,7 @@ describe 'projects/jobs/show' do
describe
'environment info in job view'
do
context
'job with latest deployment'
do
let
(
:build
)
do
create
(
:ci_build
,
:success
,
environment:
'staging'
)
create
(
:ci_build
,
:success
,
:trace_artifact
,
environment:
'staging'
)
end
before
do
...
...
@@ -37,11 +37,11 @@ describe 'projects/jobs/show' do
context
'job with outdated deployment'
do
let
(
:build
)
do
create
(
:ci_build
,
:success
,
environment:
'staging'
,
pipeline:
pipeline
)
create
(
:ci_build
,
:success
,
:trace_artifact
,
environment:
'staging'
,
pipeline:
pipeline
)
end
let
(
:second_build
)
do
create
(
:ci_build
,
:success
,
environment:
'staging'
,
pipeline:
pipeline
)
create
(
:ci_build
,
:success
,
:trace_artifact
,
environment:
'staging'
,
pipeline:
pipeline
)
end
let
(
:environment
)
do
...
...
@@ -67,7 +67,7 @@ describe 'projects/jobs/show' do
context
'job failed to deploy'
do
let
(
:build
)
do
create
(
:ci_build
,
:failed
,
environment:
'staging'
,
pipeline:
pipeline
)
create
(
:ci_build
,
:failed
,
:trace_artifact
,
environment:
'staging'
,
pipeline:
pipeline
)
end
let!
(
:environment
)
do
...
...
@@ -85,7 +85,7 @@ describe 'projects/jobs/show' do
context
'job will deploy'
do
let
(
:build
)
do
create
(
:ci_build
,
:running
,
environment:
'staging'
,
pipeline:
pipeline
)
create
(
:ci_build
,
:running
,
:trace_live
,
environment:
'staging'
,
pipeline:
pipeline
)
end
context
'when environment exists'
do
...
...
@@ -133,7 +133,7 @@ describe 'projects/jobs/show' do
context
'job that failed to deploy and environment has not been created'
do
let
(
:build
)
do
create
(
:ci_build
,
:failed
,
environment:
'staging'
,
pipeline:
pipeline
)
create
(
:ci_build
,
:failed
,
:trace_artifact
,
environment:
'staging'
,
pipeline:
pipeline
)
end
let!
(
:environment
)
do
...
...
@@ -151,7 +151,7 @@ describe 'projects/jobs/show' do
context
'job that will deploy and environment has not been created'
do
let
(
:build
)
do
create
(
:ci_build
,
:running
,
environment:
'staging'
,
pipeline:
pipeline
)
create
(
:ci_build
,
:running
,
:trace_live
,
environment:
'staging'
,
pipeline:
pipeline
)
end
let!
(
:environment
)
do
...
...
@@ -171,8 +171,9 @@ describe 'projects/jobs/show' do
end
context
'when job is running'
do
let
(
:build
)
{
create
(
:ci_build
,
:trace_live
,
:running
,
pipeline:
pipeline
)
}
before
do
build
.
run!
render
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