diff options
Diffstat (limited to 'spec/lib/container_registry')
-rw-r--r-- | spec/lib/container_registry/client_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/container_registry/tag_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/container_registry/client_spec.rb b/spec/lib/container_registry/client_spec.rb index 47a8fcf5dd0..259d7d5ad13 100644 --- a/spec/lib/container_registry/client_spec.rb +++ b/spec/lib/container_registry/client_spec.rb @@ -279,7 +279,7 @@ RSpec.describe ContainerRegistry::Client do it 'uploads the manifest and returns the digest' do stub_request(:put, "http://container-registry/v2/path/manifests/tagA") .with(body: "{\n \"foo\": \"bar\"\n}", headers: manifest_headers) - .to_return(status: 200, body: "", headers: { 'docker-content-digest' => 'sha256:123' }) + .to_return(status: 200, body: "", headers: { DependencyProxy::Manifest::DIGEST_HEADER => 'sha256:123' }) expect_new_faraday(timeout: false) diff --git a/spec/lib/container_registry/tag_spec.rb b/spec/lib/container_registry/tag_spec.rb index d6e6b254dd9..9b931ab6dbc 100644 --- a/spec/lib/container_registry/tag_spec.rb +++ b/spec/lib/container_registry/tag_spec.rb @@ -213,7 +213,7 @@ RSpec.describe ContainerRegistry::Tag do before do stub_request(:head, 'http://registry.gitlab/v2/group/test/manifests/tag') .with(headers: headers) - .to_return(status: 200, headers: { 'Docker-Content-Digest' => 'sha256:digest' }) + .to_return(status: 200, headers: { DependencyProxy::Manifest::DIGEST_HEADER => 'sha256:digest' }) end describe '#digest' do |