Commit fea2f214 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix caching breaking test of build artifacts

parent e53a56ac
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment