summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-01-26 13:58:05 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2017-02-07 09:44:24 -0500
commit5c20e50f46c6cf7634a20027c5ae257a6c25d995 (patch)
treec5fd309f173fbb5b42ea430285e268285a302d36 /spec/requests
parentd391f743841132375ccf9f9aaddb649ded83f584 (diff)
downloadgitlab-ce-5c20e50f46c6cf7634a20027c5ae257a6c25d995.tar.gz
lfs: do not require auth for public repositories
LFS has the `authenticated` field in the response for downloads of objects to indicate that the object does not need authentication to access it. Spec: https://github.com/git-lfs/git-lfs/blob/master/docs/api/batch.md#successful-responses Fixes #23360.
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/lfs_http_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/lfs_http_spec.rb b/spec/requests/lfs_http_spec.rb
index 9bfc84c7425..c0e7bab8199 100644
--- a/spec/requests/lfs_http_spec.rb
+++ b/spec/requests/lfs_http_spec.rb
@@ -600,6 +600,7 @@ describe 'Git LFS API and storage' do
expect(json_response).to eq('objects' => [
{ 'oid' => sample_oid,
'size' => sample_size,
+ 'authenticated' => true,
'actions' => {
'download' => {
'href' => "#{project.http_url_to_repo}/gitlab-lfs/objects/#{sample_oid}",