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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
4b9f76ce
Commit
4b9f76ce
authored
Jul 06, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix one of the failing tests. Test against the headers
parent
28e324ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
features/steps/project/builds/artifacts.rb
features/steps/project/builds/artifacts.rb
+9
-4
No files found.
features/steps/project/builds/artifacts.rb
View file @
4b9f76ce
...
...
@@ -68,10 +68,15 @@ class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps
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
[
:entry
]).
to
eq
Base64
.
encode64
(
'ci_artifacts.txt'
)
send_data
=
response_headers
[
Gitlab
::
Workhorse
::
SEND_DATA_HEADER
]
expect
(
send_data
).
to
start_with
(
'artifacts-entry:'
)
params
=
JSON
.
parse
(
Base64
.
urlsafe_decode64
(
send_data
[
/(?<=:)(.+)/
]))
expect
(
params
.
keys
).
to
eq
([
'Archive'
,
'Entry'
])
expect
(
params
[
'Archive'
]).
to
end_with
(
'build_artifacts.zip'
)
expect
(
params
[
'Entry'
]).
to
eq
(
Base64
.
encode64
(
'ci_artifacts.txt'
))
end
step
'I click a first row within build artifacts table'
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