Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/service/operations/tags_test.go')
-rw-r--r--internal/service/operations/tags_test.go36
1 files changed, 18 insertions, 18 deletions
diff --git a/internal/service/operations/tags_test.go b/internal/service/operations/tags_test.go
index e8d10d1d4..af6d91500 100644
--- a/internal/service/operations/tags_test.go
+++ b/internal/service/operations/tags_test.go
@@ -17,10 +17,10 @@ func TestSuccessfulUserDeleteTagRequest(t *testing.T) {
ctx, cancel := testhelper.Context()
defer cancel()
- server, serverSocketPath := runOperationServiceServer(t)
+ server, serverSocketPath := testhelper.RunOpSvcServer(t, NewServer)
defer server.Stop()
- client, conn := newOperationClient(t, serverSocketPath)
+ client, conn := testhelper.NewOpSvcCli(t, serverSocketPath)
defer conn.Close()
testRepo, testRepoPath, cleanupFn := testhelper.NewTestRepo(t)
@@ -52,10 +52,10 @@ func TestSuccessfulUserDeleteTagRequest(t *testing.T) {
}
func TestSuccessfulGitHooksForUserDeleteTagRequest(t *testing.T) {
- server, serverSocketPath := runOperationServiceServer(t)
+ server, serverSocketPath := testhelper.RunOpSvcServer(t, NewServer)
defer server.Stop()
- client, conn := newOperationClient(t, serverSocketPath)
+ client, conn := testhelper.NewOpSvcCli(t, serverSocketPath)
defer conn.Close()
testRepo, testRepoPath, cleanupFn := testhelper.NewTestRepo(t)
@@ -101,10 +101,10 @@ func TestSuccessfulUserCreateTagRequest(t *testing.T) {
ctx, cancel := testhelper.Context()
defer cancel()
- server, serverSocketPath := runOperationServiceServer(t)
+ server, serverSocketPath := testhelper.RunOpSvcServer(t, NewServer)
defer server.Stop()
- client, conn := newOperationClient(t, serverSocketPath)
+ client, conn := testhelper.NewOpSvcCli(t, serverSocketPath)
defer conn.Close()
testRepo, testRepoPath, cleanupFn := testhelper.NewTestRepo(t)
@@ -181,10 +181,10 @@ func TestSuccessfulUserCreateTagRequest(t *testing.T) {
}
func TestSuccessfulGitHooksForUserCreateTagRequest(t *testing.T) {
- server, serverSocketPath := runOperationServiceServer(t)
+ server, serverSocketPath := testhelper.RunOpSvcServer(t, NewServer)
defer server.Stop()
- client, conn := newOperationClient(t, serverSocketPath)
+ client, conn := testhelper.NewOpSvcCli(t, serverSocketPath)
defer conn.Close()
testRepo, testRepoPath, cleanupFn := testhelper.NewTestRepo(t)
@@ -226,10 +226,10 @@ func TestSuccessfulGitHooksForUserCreateTagRequest(t *testing.T) {
}
func TestFailedUserDeleteTagRequestDueToValidation(t *testing.T) {
- server, serverSocketPath := runOperationServiceServer(t)
+ server, serverSocketPath := testhelper.RunOpSvcServer(t, NewServer)
defer server.Stop()
- client, conn := newOperationClient(t, serverSocketPath)
+ client, conn := testhelper.NewOpSvcCli(t, serverSocketPath)
defer conn.Close()
testRepo, _, cleanupFn := testhelper.NewTestRepo(t)
@@ -285,10 +285,10 @@ func TestFailedUserDeleteTagRequestDueToValidation(t *testing.T) {
}
func TestFailedUserDeleteTagDueToHooks(t *testing.T) {
- server, serverSocketPath := runOperationServiceServer(t)
+ server, serverSocketPath := testhelper.RunOpSvcServer(t, NewServer)
defer server.Stop()
- client, conn := newOperationClient(t, serverSocketPath)
+ client, conn := testhelper.NewOpSvcCli(t, serverSocketPath)
defer conn.Close()
testRepo, testRepoPath, cleanupFn := testhelper.NewTestRepo(t)
@@ -332,10 +332,10 @@ func TestFailedUserDeleteTagDueToHooks(t *testing.T) {
}
func TestFailedUserCreateTagDueToHooks(t *testing.T) {
- server, serverSocketPath := runOperationServiceServer(t)
+ server, serverSocketPath := testhelper.RunOpSvcServer(t, NewServer)
defer server.Stop()
- client, conn := newOperationClient(t, serverSocketPath)
+ client, conn := testhelper.NewOpSvcCli(t, serverSocketPath)
defer conn.Close()
testRepo, _, cleanupFn := testhelper.NewTestRepo(t)
@@ -371,10 +371,10 @@ func TestFailedUserCreateTagDueToHooks(t *testing.T) {
}
func TestFailedUserCreateTagRequestDueToTagExistence(t *testing.T) {
- server, serverSocketPath := runOperationServiceServer(t)
+ server, serverSocketPath := testhelper.RunOpSvcServer(t, NewServer)
defer server.Stop()
- client, conn := newOperationClient(t, serverSocketPath)
+ client, conn := testhelper.NewOpSvcCli(t, serverSocketPath)
defer conn.Close()
testRepo, _, cleanupFn := testhelper.NewTestRepo(t)
@@ -412,10 +412,10 @@ func TestFailedUserCreateTagRequestDueToTagExistence(t *testing.T) {
}
func TestFailedUserCreateTagRequestDueToValidation(t *testing.T) {
- server, serverSocketPath := runOperationServiceServer(t)
+ server, serverSocketPath := testhelper.RunOpSvcServer(t, NewServer)
defer server.Stop()
- client, conn := newOperationClient(t, serverSocketPath)
+ client, conn := testhelper.NewOpSvcCli(t, serverSocketPath)
defer conn.Close()
testRepo, _, cleanupFn := testhelper.NewTestRepo(t)