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
3b612fe2
Commit
3b612fe2
authored
Dec 06, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests for pipeline performance_artifact method
parent
bb9d1da1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
spec/ee/spec/models/ee/ci/pipeline_spec.rb
spec/ee/spec/models/ee/ci/pipeline_spec.rb
+28
-0
No files found.
spec/ee/spec/models/ee/ci/pipeline_spec.rb
View file @
3b612fe2
...
@@ -43,6 +43,34 @@ describe Ci::Pipeline do
...
@@ -43,6 +43,34 @@ describe Ci::Pipeline do
end
end
end
end
describe
'#performance_artifact'
do
context
'has performance job'
do
let!
(
:build
)
do
create
(
:ci_build
,
:artifacts
,
name:
'performance'
,
pipeline:
pipeline
,
options:
{
artifacts:
{
paths:
[
'performance.json'
]
}
}
)
end
it
{
expect
(
pipeline
.
performance_artifact
).
to
eq
(
build
)
}
end
context
'no performance job'
do
before
do
create
(
:ci_build
,
pipeline:
pipeline
)
end
it
{
expect
(
pipeline
.
performance_artifact
).
to
be_nil
}
end
end
describe
'#sast_artifact'
do
describe
'#sast_artifact'
do
context
'has sast job'
do
context
'has sast job'
do
let!
(
:build
)
do
let!
(
:build
)
do
...
...
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