diff options
author | Stan Hu <stanhu@gmail.com> | 2019-02-16 07:04:15 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-02-16 07:39:14 -0800 |
commit | ebedab837012f844a47645f86412d3ec69aa2b4b (patch) | |
tree | b27923bdc960d088901a97263ba75e868dbec0fb /spec/gitlab_shell_spec.rb | |
parent | 015ff88ade79910d5c3dd7505b89a0659f2d6b24 (diff) | |
download | gitlab-shell-ebedab837012f844a47645f86412d3ec69aa2b4b.tar.gz |
Add support for using gl_project_pathsh-use-gl-project-path
This will enable us to track the human-readable project path with SSH
access in gitlab-shell. Currently the Gitaly logs will only show the
hashed storage and gl_repository path (e.g. project-1234).
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r-- | spec/gitlab_shell_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb index eef572e..c261e6f 100644 --- a/spec/gitlab_shell_spec.rb +++ b/spec/gitlab_shell_spec.rb @@ -28,6 +28,7 @@ describe GitlabShell do '200', 'ok', gl_repository: gl_repository, + gl_project_path: gl_project_path, gl_id: gl_id, gl_username: gl_username, git_config_options: git_config_options, @@ -44,6 +45,7 @@ describe GitlabShell do '200', 'ok', gl_repository: gl_repository, + gl_project_path: gl_project_path, gl_id: gl_id, gl_username: gl_username, git_config_options: nil, @@ -62,6 +64,7 @@ describe GitlabShell do let(:repo_name) { 'gitlab-ci.git' } let(:gl_repository) { 'project-1' } + let(:gl_project_path) { 'group/subgroup/gitlab-ci' } let(:gl_id) { 'user-1' } let(:gl_username) { 'testuser' } let(:git_config_options) { ['receive.MaxInputSize=10000'] } @@ -169,6 +172,7 @@ describe GitlabShell do JSON.dump( 'repository' => { 'relative_path' => repo_name, 'storage_name' => 'default' }, 'gl_repository' => gl_repository, + 'gl_project_path' => gl_project_path, 'gl_id' => gl_id, 'gl_username' => gl_username, 'git_config_options' => git_config_options, @@ -446,6 +450,7 @@ describe GitlabShell do false, 'denied', gl_repository: nil, + gl_project_path: nil, gl_id: nil, gl_username: nil, git_config_options: nil, |