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
9084b572
Commit
9084b572
authored
Aug 02, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix artifacts controller spec for object stores
parent
bbd2a964
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spec/controllers/projects/artifacts_controller_spec.rb
spec/controllers/projects/artifacts_controller_spec.rb
+3
-2
No files found.
spec/controllers/projects/artifacts_controller_spec.rb
View file @
9084b572
...
...
@@ -79,7 +79,8 @@ describe Projects::ArtifactsController do
expect
(
params
.
keys
).
to
eq
(
%w(Archive Entry)
)
expect
(
params
[
'Archive'
]).
to
start_with
(
archive_path
)
expect
(
params
[
'Archive'
]).
to
end_with
(
'build_artifacts.zip'
)
# On object storage, the URL can end with a query string
expect
(
params
[
'Archive'
]).
to
match
(
/build_artifacts.zip(\?[^?]+)?$/
)
expect
(
params
[
'Entry'
]).
to
eq
(
Base64
.
encode64
(
'ci_artifacts.txt'
))
end
...
...
@@ -116,7 +117,7 @@ describe Projects::ArtifactsController do
context
'when the file does not exist'
do
let
(
:path
)
{
'unknown'
}
it
'responds Not Found'
do
subject
...
...
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