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:
Diffstat (limited to 'spec/lib/container_registry/client_spec.rb')
-rw-r--r--spec/lib/container_registry/client_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/lib/container_registry/client_spec.rb b/spec/lib/container_registry/client_spec.rb
index 39409cf8d3a..37161119744 100644
--- a/spec/lib/container_registry/client_spec.rb
+++ b/spec/lib/container_registry/client_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-RSpec.describe ContainerRegistry::Client do
+RSpec.describe ContainerRegistry::Client, feature_category: :container_registry do
using RSpec::Parameterized::TableSyntax
include_context 'container registry client'
@@ -307,12 +307,12 @@ RSpec.describe ContainerRegistry::Client do
end
end
- describe '#delete_repository_tag_by_name' do
- subject { client.delete_repository_tag_by_name('group/test', 'a') }
+ describe '#delete_repository_tag_by_digest' do
+ subject { client.delete_repository_tag_by_digest('group/test', 'a') }
context 'when the tag exists' do
before do
- stub_request(:delete, "http://container-registry/v2/group/test/tags/reference/a")
+ stub_request(:delete, "http://container-registry/v2/group/test/manifests/a")
.with(headers: headers_with_accept_types)
.to_return(status: 200, body: "")
end
@@ -322,7 +322,7 @@ RSpec.describe ContainerRegistry::Client do
context 'when the tag does not exist' do
before do
- stub_request(:delete, "http://container-registry/v2/group/test/tags/reference/a")
+ stub_request(:delete, "http://container-registry/v2/group/test/manifests/a")
.with(headers: headers_with_accept_types)
.to_return(status: 404, body: "")
end
@@ -332,7 +332,7 @@ RSpec.describe ContainerRegistry::Client do
context 'when an error occurs' do
before do
- stub_request(:delete, "http://container-registry/v2/group/test/tags/reference/a")
+ stub_request(:delete, "http://container-registry/v2/group/test/manifests/a")
.with(headers: headers_with_accept_types)
.to_return(status: 500, body: "")
end
@@ -485,7 +485,7 @@ RSpec.describe ContainerRegistry::Client do
def stub_registry_tags_support(supported = true)
status_code = supported ? 200 : 404
- stub_request(:options, "#{registry_api_url}/v2/name/tags/reference/tag")
+ stub_request(:options, "#{registry_api_url}/v2/name/manifests/tag")
.to_return(
status: status_code,
body: '',