diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2020-04-14 22:17:27 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2020-04-17 16:23:33 +1000 |
commit | 118143ba6c49573d1437f99cf2b44168bd09b8d1 (patch) | |
tree | de99a3130f4e2755541075bdfd6fb783bb00679e | |
parent | 2cb9461f0b188a18ff219cb1b5f12cb6b18a954b (diff) | |
download | gitlab-shell-118143ba6c49573d1437f99cf2b44168bd09b8d1.tar.gz |
Rename Geo proxy routes to be accurate
-rw-r--r-- | spec/gitlab_shell_custom_git_receive_pack_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/gitlab_shell_custom_git_receive_pack_spec.rb b/spec/gitlab_shell_custom_git_receive_pack_spec.rb index 771ef1e..1979738 100644 --- a/spec/gitlab_shell_custom_git_receive_pack_spec.rb +++ b/spec/gitlab_shell_custom_git_receive_pack_spec.rb @@ -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 @@ -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" }, |