diff options
author | Stan Hu <stanhu@gmail.com> | 2017-05-16 22:51:56 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-05-17 07:04:34 -0700 |
commit | 831d6f5f777370e4ad424211df24e2f5bd380445 (patch) | |
tree | dcce3f530fb243875c5091c10e15dc77568b5ebc /spec/lib/container_registry/blob_spec.rb | |
parent | 39baadbd017a1e36cf95b0ad1a503015bd5e562f (diff) | |
download | gitlab-ce-831d6f5f777370e4ad424211df24e2f5bd380445.tar.gz |
Properly handle container registry redirects to fix metadata stored on a S3 backendsh-fix-container-registry-s3-redirects
The previous behavior would include the Authorization header, which would
make fetching an S3 blob fail quietly.
Closes #22403
Update sh-fix-container-registry-s3-redirects.yml
Diffstat (limited to 'spec/lib/container_registry/blob_spec.rb')
-rw-r--r-- | spec/lib/container_registry/blob_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/container_registry/blob_spec.rb b/spec/lib/container_registry/blob_spec.rb index f06e5fd54a2..ab010c6dfeb 100644 --- a/spec/lib/container_registry/blob_spec.rb +++ b/spec/lib/container_registry/blob_spec.rb @@ -98,7 +98,7 @@ describe ContainerRegistry::Blob do context 'for a valid address' do before do stub_request(:get, location). - with(headers: { 'Authorization' => nil }). + with { |request| !request.headers.include?('Authorization') }. to_return( status: 200, headers: { 'Content-Type' => 'application/json' }, |