As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Unverified Commit 118143ba authored by Ash McKenzie's avatar Ash McKenzie
Browse files

Rename Geo proxy routes to be accurate

parent 2cb9461f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -15,14 +15,14 @@ describe 'Custom bin/gitlab-shell git-receive-pack' do
end
def mock_server(server)
server.mount_proc('/geo/proxy_git_push_ssh/info_refs') do |req, res|
server.mount_proc('/geo/proxy_git_ssh/info_refs_receive_pack') do |req, res|
res.content_type = 'application/json'
res.status = 200
res.body = {"result" => "#{Base64.encode64('custom')}"}.to_json
end
server.mount_proc('/geo/proxy_git_push_ssh/push') do |req, res|
server.mount_proc('/geo/proxy_git_ssh/receive_pack') do |req, res|
res.content_type = 'application/json'
res.status = 200
Loading
Loading
@@ -50,7 +50,7 @@ describe 'Custom bin/gitlab-shell git-receive-pack' do
"payload" => {
"action" => "geo_proxy_to_primary",
"data" => {
"api_endpoints" => ["/geo/proxy_git_push_ssh/info_refs", "/geo/proxy_git_push_ssh/push"],
"api_endpoints" => ["/geo/proxy_git_ssh/info_refs_receive_pack", "/geo/proxy_git_ssh/receive_pack"],
"gl_username" => "custom",
"primary_repo" => "https://repo/path"
},
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment