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
0963498d
Commit
0963498d
authored
Oct 29, 2019
by
Erick Bajao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass file type to report download endpoint
parent
2f1f43ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/serializers/job_artifact_report_entity.rb
app/serializers/job_artifact_report_entity.rb
+1
-1
spec/serializers/job_artifact_report_entity_spec.rb
spec/serializers/job_artifact_report_entity_spec.rb
+1
-1
No files found.
app/serializers/job_artifact_report_entity.rb
View file @
0963498d
...
...
@@ -8,6 +8,6 @@ class JobArtifactReportEntity < Grape::Entity
expose
:size
expose
:download_path
do
|
artifact
|
download_project_job_artifacts_path
(
artifact
.
job
.
project
,
artifact
.
job
,
file_type:
artifact
.
file_
format
)
download_project_job_artifacts_path
(
artifact
.
job
.
project
,
artifact
.
job
,
file_type:
artifact
.
file_
type
)
end
end
spec/serializers/job_artifact_report_entity_spec.rb
View file @
0963498d
...
...
@@ -22,7 +22,7 @@ describe JobArtifactReportEntity do
end
it
'exposes download path'
do
expect
(
subject
[
:download_path
]).
to
include
(
"jobs/
#{
report
.
job
.
id
}
/artifacts/download"
)
expect
(
subject
[
:download_path
]).
to
include
(
"jobs/
#{
report
.
job
.
id
}
/artifacts/download
?file_type=
#{
report
.
file_type
}
"
)
end
end
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