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_net_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_net_spec.rb')
-rw-r--r-- | spec/gitlab_net_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/gitlab_net_spec.rb b/spec/gitlab_net_spec.rb index c6245d4..d7c46dc 100644 --- a/spec/gitlab_net_spec.rb +++ b/spec/gitlab_net_spec.rb @@ -287,7 +287,9 @@ describe GitlabNet, vcr: true do it 'should allow push access for host' do VCR.use_cassette("allowed-push") do access = gitlab_net.check_access('git-receive-pack', nil, project, key, changes, 'ssh') + expect(access.allowed?).to be_truthy + expect(access.gl_project_path).to eq('gitlab-org/gitlab.test') end end @@ -322,7 +324,9 @@ describe GitlabNet, vcr: true do it 'should allow pull access for host' do VCR.use_cassette("allowed-pull") do access = gitlab_net.check_access('git-upload-pack', nil, project, key, changes, 'ssh') + expect(access.allowed?).to be_truthy + expect(access.gl_project_path).to eq('gitlab-org/gitlab.test') end end end |