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
Jérome Perrin
gitlab-ce
Commits
fea2f214
Commit
fea2f214
authored
Nov 13, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix caching breaking test of build artifacts
parent
e53a56ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
spec/requests/ci/api/builds_spec.rb
spec/requests/ci/api/builds_spec.rb
+3
-6
No files found.
spec/requests/ci/api/builds_spec.rb
View file @
fea2f214
...
...
@@ -160,15 +160,13 @@ describe Ci::API::API do
end
it
"using token as parameter"
do
settings
=
Gitlab
::
CurrentSettings
::
current_application_settings
settings
.
update_attributes
(
max_artifacts_size:
0
)
stub_application_setting
(
max_artifacts_size:
0
)
post
authorize_url
,
{
token:
build
.
project
.
token
,
filesize:
100
},
headers
expect
(
response
.
status
).
to
eq
(
413
)
end
it
"using token as header"
do
settings
=
Gitlab
::
CurrentSettings
::
current_application_settings
settings
.
update_attributes
(
max_artifacts_size:
0
)
stub_application_setting
(
max_artifacts_size:
0
)
post
authorize_url
,
{
filesize:
100
},
headers_with_token
expect
(
response
.
status
).
to
eq
(
413
)
end
...
...
@@ -220,8 +218,7 @@ describe Ci::API::API do
end
it
do
settings
=
Gitlab
::
CurrentSettings
::
current_application_settings
settings
.
update_attributes
(
max_artifacts_size:
0
)
stub_application_setting
(
max_artifacts_size:
0
)
upload_artifacts
(
file_upload
,
headers_with_token
)
expect
(
response
.
status
).
to
eq
(
413
)
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