BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
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
...
@@ -160,15 +160,13 @@ describe Ci::API::API do
end
end
it
"using token as parameter"
do
it
"using token as parameter"
do
settings
=
Gitlab
::
CurrentSettings
::
current_application_settings
stub_application_setting
(
max_artifacts_size:
0
)
settings
.
update_attributes
(
max_artifacts_size:
0
)
post
authorize_url
,
{
token:
build
.
project
.
token
,
filesize:
100
},
headers
post
authorize_url
,
{
token:
build
.
project
.
token
,
filesize:
100
},
headers
expect
(
response
.
status
).
to
eq
(
413
)
expect
(
response
.
status
).
to
eq
(
413
)
end
end
it
"using token as header"
do
it
"using token as header"
do
settings
=
Gitlab
::
CurrentSettings
::
current_application_settings
stub_application_setting
(
max_artifacts_size:
0
)
settings
.
update_attributes
(
max_artifacts_size:
0
)
post
authorize_url
,
{
filesize:
100
},
headers_with_token
post
authorize_url
,
{
filesize:
100
},
headers_with_token
expect
(
response
.
status
).
to
eq
(
413
)
expect
(
response
.
status
).
to
eq
(
413
)
end
end
...
@@ -220,8 +218,7 @@ describe Ci::API::API do
...
@@ -220,8 +218,7 @@ describe Ci::API::API do
end
end
it
do
it
do
settings
=
Gitlab
::
CurrentSettings
::
current_application_settings
stub_application_setting
(
max_artifacts_size:
0
)
settings
.
update_attributes
(
max_artifacts_size:
0
)
upload_artifacts
(
file_upload
,
headers_with_token
)
upload_artifacts
(
file_upload
,
headers_with_token
)
expect
(
response
.
status
).
to
eq
(
413
)
expect
(
response
.
status
).
to
eq
(
413
)
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