summaryrefslogtreecommitdiff
path: root/go/internal/gitlabnet/accessverifier/client_test.go
diff options
context:
space:
mode:
authorIgor <idrozdov@gitlab.com>2019-06-03 15:21:25 +0000
committerNick Thomas <nick@gitlab.com>2019-06-03 15:21:25 +0000
commitcde5b73cb8776c70c6d00ff34c568ea4438bcba9 (patch)
treeddc0d81da81ebfdb2c05819c88cde2c56dbaf4d5 /go/internal/gitlabnet/accessverifier/client_test.go
parentbeb5855542645cdc9bf7f954b9c5a9333dfb3975 (diff)
downloadgitlab-shell-cde5b73cb8776c70c6d00ff34c568ea4438bcba9.tar.gz
Go implementation for git-upload-pack
Diffstat (limited to 'go/internal/gitlabnet/accessverifier/client_test.go')
-rw-r--r--go/internal/gitlabnet/accessverifier/client_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/go/internal/gitlabnet/accessverifier/client_test.go b/go/internal/gitlabnet/accessverifier/client_test.go
index a759919..31175ae 100644
--- a/go/internal/gitlabnet/accessverifier/client_test.go
+++ b/go/internal/gitlabnet/accessverifier/client_test.go
@@ -9,6 +9,7 @@ import (
"github.com/stretchr/testify/require"
+ pb "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/gitlabnet"
@@ -29,13 +30,13 @@ func buildExpectedResponse(who string) *Response {
Username: "root",
GitConfigOptions: []string{"option"},
Gitaly: Gitaly{
- Repo: GitalyRepo{
+ Repo: pb.Repository{
StorageName: "default",
RelativePath: "@hashed/5f/9c/5f9c4ab08cac7457e9111a30e4664920607ea2c115a1433d7be98e97e64244ca.git",
GitObjectDirectory: "path/to/git_object_directory",
GitAlternateObjectDirectories: []string{"path/to/git_alternate_object_directory"},
- RepoName: "project-26",
- ProjectPath: repo,
+ GlRepository: "project-26",
+ GlProjectPath: repo,
},
Address: "unix:gitaly.socket",
Token: "token",