Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-05-17 08:51:56 +0300
committerStan Hu <stanhu@gmail.com>2017-05-17 17:04:34 +0300
commit831d6f5f777370e4ad424211df24e2f5bd380445 (patch)
treedcce3f530fb243875c5091c10e15dc77568b5ebc /spec/lib/container_registry/blob_spec.rb
parent39baadbd017a1e36cf95b0ad1a503015bd5e562f (diff)
Properly handle container registry redirects to fix metadata stored on a S3 backend
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.rb2
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' },