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
Boxiang Sun
gitlab-ce
Commits
adfe2cb3
Commit
adfe2cb3
authored
Jan 31, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix retry_build_service_spec.rb with trace_artifact trait
parent
c9ed3b2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
spec/factories/ci/builds.rb
spec/factories/ci/builds.rb
+6
-0
spec/services/ci/retry_build_service_spec.rb
spec/services/ci/retry_build_service_spec.rb
+1
-1
No files found.
spec/factories/ci/builds.rb
View file @
adfe2cb3
...
...
@@ -141,6 +141,12 @@ FactoryBot.define do
end
end
trait
:trace_artifact
do
after
(
:create
)
do
|
build
,
evaluator
|
create
(
:ci_job_artifact
,
:trace
,
job:
build
)
end
end
trait
:unicode_trace
do
after
(
:create
)
do
|
build
,
evaluator
|
trace
=
File
.
binread
(
...
...
spec/services/ci/retry_build_service_spec.rb
View file @
adfe2cb3
...
...
@@ -37,7 +37,7 @@ describe Ci::RetryBuildService do
let
(
:build
)
do
create
(
:ci_build
,
:failed
,
:artifacts
,
:expired
,
:erased
,
:queued
,
:coverage
,
:tags
,
:allowed_to_fail
,
:on_tag
,
:triggered
,
:trace
,
:teardown_environment
,
:triggered
,
:trace
_artifact
,
:teardown_environment
,
description:
'my-job'
,
stage:
'test'
,
pipeline:
pipeline
,
auto_canceled_by:
create
(
:ci_empty_pipeline
,
project:
project
))
do
|
build
|
##
...
...
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