diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2023-05-16 19:18:36 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2023-05-16 19:18:36 +0300 |
commit | 161d11edce6a478d5186ec2c92d95d1de0f93a01 (patch) | |
tree | 8e15764bf34a3abb5b21425d4cb3abb0205e27c9 /internal/gitaly/server/auth_test.go | |
parent | 17db4a085675986bc5a9728bef9dde19a80bb7eb (diff) | |
parent | f2cd14c610b621c885f87bfa985a3f62e4e87176 (diff) |
Merge branch 'pks-operations-tag-sha256' into 'master'
operations: Implement SHA256 support in UserCreateTag and UserDeleteTag
See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5787
Merged-by: Sami Hiltunen <shiltunen@gitlab.com>
Approved-by: James Fargher <proglottis@gmail.com>
Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
Diffstat (limited to 'internal/gitaly/server/auth_test.go')
-rw-r--r-- | internal/gitaly/server/auth_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/gitaly/server/auth_test.go b/internal/gitaly/server/auth_test.go index 1644affbb..2e83b9a34 100644 --- a/internal/gitaly/server/auth_test.go +++ b/internal/gitaly/server/auth_test.go @@ -1,5 +1,3 @@ -//go:build !gitaly_test_sha256 - package server import ( @@ -318,8 +316,8 @@ func TestAuthBeforeLimit(t *testing.T) { repo, repoPath := gittest.CreateRepository(t, ctx, cfg, gittest.CreateRepositoryConfig{ SkipCreationViaService: true, - Seed: gittest.SeedGitLabTest, }) + commitID := gittest.WriteCommit(t, cfg, repoPath) gitlabURL, cleanup := gitlab.SetupAndStartGitlabServer(t, cfg.GitlabShell.Dir, &gitlab.TestServerOptions{ SecretToken: "secretToken", @@ -352,7 +350,7 @@ sleep %v _, err := client.UserCreateTag(ctx, &gitalypb.UserCreateTagRequest{ Repository: repo, TagName: []byte(fmt.Sprintf("tag-name-%d", i)), - TargetRevision: []byte("c7fbe50c7c7419d9701eebe64b1fdacc3df5b9dd"), + TargetRevision: []byte(commitID), User: gittest.TestUser, Message: []byte("a new tag!"), }) |