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
Tatuya Kamada
gitlab-ce
Commits
6d7a7707
Commit
6d7a7707
authored
Jan 12, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for endpoint meant to be accelerated by workhorse
parent
e8995f9f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
app/views/projects/artifacts/_tree_file.html.haml
app/views/projects/artifacts/_tree_file.html.haml
+1
-1
features/project/builds.feature
features/project/builds.feature
+8
-0
features/steps/project/builds.rb
features/steps/project/builds.rb
+11
-0
No files found.
app/views/projects/artifacts/_tree_file.html.haml
View file @
6d7a7707
...
@@ -7,5 +7,5 @@
...
@@ -7,5 +7,5 @@
=
number_to_human_size
(
file
.
metadata
[
:size
],
precision:
2
)
=
number_to_human_size
(
file
.
metadata
[
:size
],
precision:
2
)
%td
%td
=
link_to
file_namespace_project_build_artifacts_path
(
path:
file
.
path
),
=
link_to
file_namespace_project_build_artifacts_path
(
path:
file
.
path
),
class:
'btn btn-xs btn-default'
do
class:
'btn btn-xs btn-default
artifact-download
'
do
=
icon
(
'download'
)
=
icon
(
'download'
)
features/project/builds.feature
View file @
6d7a7707
...
@@ -48,3 +48,11 @@ Feature: Project Builds
...
@@ -48,3 +48,11 @@ Feature: Project Builds
And
I click artifacts browse button
And
I click artifacts browse button
And
I navigate to parent directory of directory with invalid name
And
I navigate to parent directory of directory with invalid name
Then
I should not see directory with invalid name on the list
Then
I should not see directory with invalid name on the list
Scenario
:
I
download a single file from build artifacts
Given
recent build has artifacts available
And
recent build has artifacts metadata available
When
I visit recent build summary page
And
I click artifacts browse button
And
I click download button for a file within build artifacts
Then
download of a file extracted from build artifacts should start
features/steps/project/builds.rb
View file @
6d7a7707
...
@@ -75,4 +75,15 @@ class Spinach::Features::ProjectBuilds < Spinach::FeatureSteps
...
@@ -75,4 +75,15 @@ class Spinach::Features::ProjectBuilds < Spinach::FeatureSteps
expect
(
page
).
to
have_no_content
(
'non-utf8-dir'
)
expect
(
page
).
to
have_no_content
(
'non-utf8-dir'
)
end
end
end
end
step
'I click download button for a file within build artifacts'
do
page
.
within
(
'.tree-table'
)
{
first
(
'.artifact-download'
).
click
}
end
step
'download of a file extracted from build artifacts should start'
do
# this will be accelerated by Workhorse
response_json
=
JSON
.
parse
(
page
.
body
,
symbolize_names:
true
)
expect
(
response_json
[
:archive
]).
to
end_with
(
'build_artifacts.zip'
)
expect
(
response_json
[
:path
]).
to
eq
Base64
.
encode64
(
'ci_artifacts.txt'
)
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