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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-28 15:09:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-28 15:09:06 +0300
commit77031895573384d40d631ac215ff2a99a4740094 (patch)
tree0aea73aaa1acf377a95beca7c5061264b204f33e /workhorse/gitaly_integration_test.go
parent4a372de7753b16d254dc319a6bad08ecac0273af (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'workhorse/gitaly_integration_test.go')
-rw-r--r--workhorse/gitaly_integration_test.go25
1 files changed, 2 insertions, 23 deletions
diff --git a/workhorse/gitaly_integration_test.go b/workhorse/gitaly_integration_test.go
index 95e0a03ab6b..48de45d7935 100644
--- a/workhorse/gitaly_integration_test.go
+++ b/workhorse/gitaly_integration_test.go
@@ -16,7 +16,6 @@ import (
"strings"
"testing"
- "github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"
@@ -54,10 +53,6 @@ func realGitalyOkBody(t *testing.T) *api.Response {
return realGitalyAuthResponse(gitOkBody(t))
}
-func realGitalyOkBodyWithSidechannel(t *testing.T) *api.Response {
- return realGitalyAuthResponse(gitOkBodyWithSidechannel(t))
-}
-
func ensureGitalyRepository(t *testing.T, apiResponse *api.Response) error {
ctx, namespace, err := gitaly.NewNamespaceClient(context.Background(), apiResponse.GitalyServer)
if err != nil {
@@ -88,18 +83,10 @@ func ensureGitalyRepository(t *testing.T, apiResponse *api.Response) error {
}
func TestAllowedClone(t *testing.T) {
- testAllowedClone(t, realGitalyOkBody(t))
-}
-
-func TestAllowedCloneWithSidechannel(t *testing.T) {
- gitaly.InitializeSidechannelRegistry(logrus.StandardLogger())
- testAllowedClone(t, realGitalyOkBodyWithSidechannel(t))
-}
-
-func testAllowedClone(t *testing.T, apiResponse *api.Response) {
skipUnlessRealGitaly(t)
// Create the repository in the Gitaly server
+ apiResponse := realGitalyOkBody(t)
require.NoError(t, ensureGitalyRepository(t, apiResponse))
// Prepare test server and backend
@@ -120,18 +107,10 @@ func testAllowedClone(t *testing.T, apiResponse *api.Response) {
}
func TestAllowedShallowClone(t *testing.T) {
- testAllowedShallowClone(t, realGitalyOkBody(t))
-}
-
-func TestAllowedShallowCloneWithSidechannel(t *testing.T) {
- gitaly.InitializeSidechannelRegistry(logrus.StandardLogger())
- testAllowedShallowClone(t, realGitalyOkBodyWithSidechannel(t))
-}
-
-func testAllowedShallowClone(t *testing.T, apiResponse *api.Response) {
skipUnlessRealGitaly(t)
// Create the repository in the Gitaly server
+ apiResponse := realGitalyOkBody(t)
require.NoError(t, ensureGitalyRepository(t, apiResponse))
// Prepare test server and backend