Skip to content
代码片段 群组 项目
提交 16ff7cc1 编辑于 作者: Dmitry Gruzd's avatar Dmitry Gruzd
浏览文件

Merge branch 'issue_368112_fix_con_reg_api_path_uppercase' into 'master'

Added lowercase to the actual con-reg api call

See merge request gitlab-org/gitlab!95923
No related branches found
No related tags found
无相关合并请求
...@@ -31,7 +31,7 @@ def self.supports_gitlab_api? ...@@ -31,7 +31,7 @@ def self.supports_gitlab_api?
def self.deduplicated_size(path) def self.deduplicated_size(path)
with_dummy_client(token_config: { type: :nested_repositories_token, path: path&.downcase }) do |client| with_dummy_client(token_config: { type: :nested_repositories_token, path: path&.downcase }) do |client|
client.repository_details(path, sizing: :self_with_descendants)['size_bytes'] client.repository_details(path&.downcase, sizing: :self_with_descendants)['size_bytes']
end end
end end
......
...@@ -421,7 +421,9 @@ ...@@ -421,7 +421,9 @@
before do before do
expect(Auth::ContainerRegistryAuthenticationService).to receive(:pull_nested_repositories_access_token).with(path.downcase).and_return(token) expect(Auth::ContainerRegistryAuthenticationService).to receive(:pull_nested_repositories_access_token).with(path.downcase).and_return(token)
stub_repository_details(path, sizing: :self_with_descendants, status_code: 200, respond_with: response) expect_next_instance_of(described_class) do |client|
expect(client).to receive(:repository_details).with(path.downcase, sizing: :self_with_descendants).and_return(response.with_indifferent_access).once
end
end end
it { is_expected.to eq(555) } it { is_expected.to eq(555) }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册