summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2018-03-21 10:57:06 -0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2018-03-21 10:57:06 -0300
commitcf1a1e9ac102bd14e49ca8d54494f52765cbf6a4 (patch)
treeb7378bafc8bca87715140003b3904c9c3e9c0e1c /spec
parent22fc4863d33ad68ab65cd74182741e9a7e6d316f (diff)
downloadgitlab-ce-cf1a1e9ac102bd14e49ca8d54494f52765cbf6a4.tar.gz
Send Gitaly payload for git-upload-archive SSH commands
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/internal_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/requests/api/internal_spec.rb b/spec/requests/api/internal_spec.rb
index ca0aac87ba9..3cb90a1b8ef 100644
--- a/spec/requests/api/internal_spec.rb
+++ b/spec/requests/api/internal_spec.rb
@@ -447,6 +447,12 @@ describe API::Internal do
expect(response).to have_gitlab_http_status(200)
expect(json_response["status"]).to be_truthy
+ expect(json_response["gitaly"]).not_to be_nil
+ expect(json_response["gitaly"]["repository"]).not_to be_nil
+ expect(json_response["gitaly"]["repository"]["storage_name"]).to eq(project.repository.gitaly_repository.storage_name)
+ expect(json_response["gitaly"]["repository"]["relative_path"]).to eq(project.repository.gitaly_repository.relative_path)
+ expect(json_response["gitaly"]["address"]).to eq(Gitlab::GitalyClient.address(project.repository_storage))
+ expect(json_response["gitaly"]["token"]).to eq(Gitlab::GitalyClient.token(project.repository_storage))
end
end