Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
ff46222a
Commit
ff46222a
authored
Oct 17, 2019
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename import paths
parent
83d11f4d
Changes
60
Hide whitespace changes
Inline
Side-by-side
Showing
60 changed files
with
225 additions
and
225 deletions
+225
-225
cmd/check/main.go
cmd/check/main.go
+4
-4
cmd/gitlab-shell-authorized-keys-check/main.go
cmd/gitlab-shell-authorized-keys-check/main.go
+4
-4
cmd/gitlab-shell-authorized-principals-check/main.go
cmd/gitlab-shell-authorized-principals-check/main.go
+4
-4
cmd/gitlab-shell/main.go
cmd/gitlab-shell/main.go
+4
-4
internal/command/authorizedkeys/authorized_keys.go
internal/command/authorizedkeys/authorized_keys.go
+5
-5
internal/command/authorizedkeys/authorized_keys_test.go
internal/command/authorizedkeys/authorized_keys_test.go
+4
-4
internal/command/authorizedprincipals/authorized_principals.go
...nal/command/authorizedprincipals/authorized_principals.go
+4
-4
internal/command/authorizedprincipals/authorized_principals_test.go
...ommand/authorizedprincipals/authorized_principals_test.go
+3
-3
internal/command/command.go
internal/command/command.go
+14
-14
internal/command/command_test.go
internal/command/command_test.go
+13
-13
internal/command/commandargs/command_args.go
internal/command/commandargs/command_args.go
+1
-1
internal/command/commandargs/command_args_test.go
internal/command/commandargs/command_args_test.go
+2
-2
internal/command/discover/discover.go
internal/command/discover/discover.go
+4
-4
internal/command/discover/discover_test.go
internal/command/discover/discover_test.go
+4
-4
internal/command/healthcheck/healthcheck.go
internal/command/healthcheck/healthcheck.go
+3
-3
internal/command/healthcheck/healthcheck_test.go
internal/command/healthcheck/healthcheck_test.go
+4
-4
internal/command/lfsauthenticate/lfsauthenticate.go
internal/command/lfsauthenticate/lfsauthenticate.go
+6
-6
internal/command/lfsauthenticate/lfsauthenticate_test.go
internal/command/lfsauthenticate/lfsauthenticate_test.go
+7
-7
internal/command/receivepack/customaction.go
internal/command/receivepack/customaction.go
+2
-2
internal/command/receivepack/customaction_test.go
internal/command/receivepack/customaction_test.go
+5
-5
internal/command/receivepack/gitalycall.go
internal/command/receivepack/gitalycall.go
+3
-3
internal/command/receivepack/gitalycall_test.go
internal/command/receivepack/gitalycall_test.go
+5
-5
internal/command/receivepack/receivepack.go
internal/command/receivepack/receivepack.go
+5
-5
internal/command/receivepack/receivepack_test.go
internal/command/receivepack/receivepack_test.go
+5
-5
internal/command/shared/accessverifier/accessverifier.go
internal/command/shared/accessverifier/accessverifier.go
+4
-4
internal/command/shared/accessverifier/accessverifier_test.go
...rnal/command/shared/accessverifier/accessverifier_test.go
+5
-5
internal/command/twofactorrecover/twofactorrecover.go
internal/command/twofactorrecover/twofactorrecover.go
+4
-4
internal/command/twofactorrecover/twofactorrecover_test.go
internal/command/twofactorrecover/twofactorrecover_test.go
+5
-5
internal/command/uploadarchive/gitalycall.go
internal/command/uploadarchive/gitalycall.go
+3
-3
internal/command/uploadarchive/gitalycall_test.go
internal/command/uploadarchive/gitalycall_test.go
+5
-5
internal/command/uploadarchive/uploadarchive.go
internal/command/uploadarchive/uploadarchive.go
+5
-5
internal/command/uploadarchive/uploadarchive_test.go
internal/command/uploadarchive/uploadarchive_test.go
+5
-5
internal/command/uploadpack/gitalycall.go
internal/command/uploadpack/gitalycall.go
+3
-3
internal/command/uploadpack/gitalycall_test.go
internal/command/uploadpack/gitalycall_test.go
+5
-5
internal/command/uploadpack/uploadpack.go
internal/command/uploadpack/uploadpack.go
+5
-5
internal/command/uploadpack/uploadpack_test.go
internal/command/uploadpack/uploadpack_test.go
+5
-5
internal/config/config_test.go
internal/config/config_test.go
+1
-1
internal/executable/executable_test.go
internal/executable/executable_test.go
+1
-1
internal/gitlabnet/accessverifier/client.go
internal/gitlabnet/accessverifier/client.go
+4
-4
internal/gitlabnet/accessverifier/client_test.go
internal/gitlabnet/accessverifier/client_test.go
+5
-5
internal/gitlabnet/authorizedkeys/client.go
internal/gitlabnet/authorizedkeys/client.go
+2
-2
internal/gitlabnet/authorizedkeys/client_test.go
internal/gitlabnet/authorizedkeys/client_test.go
+3
-3
internal/gitlabnet/client.go
internal/gitlabnet/client.go
+1
-1
internal/gitlabnet/client_test.go
internal/gitlabnet/client_test.go
+3
-3
internal/gitlabnet/discover/client.go
internal/gitlabnet/discover/client.go
+3
-3
internal/gitlabnet/discover/client_test.go
internal/gitlabnet/discover/client_test.go
+3
-3
internal/gitlabnet/healthcheck/client.go
internal/gitlabnet/healthcheck/client.go
+2
-2
internal/gitlabnet/healthcheck/client_test.go
internal/gitlabnet/healthcheck/client_test.go
+2
-2
internal/gitlabnet/httpclient_test.go
internal/gitlabnet/httpclient_test.go
+2
-2
internal/gitlabnet/httpsclient_test.go
internal/gitlabnet/httpsclient_test.go
+3
-3
internal/gitlabnet/lfsauthenticate/client.go
internal/gitlabnet/lfsauthenticate/client.go
+3
-3
internal/gitlabnet/lfsauthenticate/client_test.go
internal/gitlabnet/lfsauthenticate/client_test.go
+3
-3
internal/gitlabnet/testserver/testserver.go
internal/gitlabnet/testserver/testserver.go
+1
-1
internal/gitlabnet/twofactorrecover/client.go
internal/gitlabnet/twofactorrecover/client.go
+4
-4
internal/gitlabnet/twofactorrecover/client_test.go
internal/gitlabnet/twofactorrecover/client_test.go
+5
-5
internal/handler/exec.go
internal/handler/exec.go
+1
-1
internal/keyline/key_line.go
internal/keyline/key_line.go
+1
-1
internal/logger/logger.go
internal/logger/logger.go
+1
-1
internal/sshenv/sshenv_test.go
internal/sshenv/sshenv_test.go
+1
-1
internal/testhelper/requesthandlers/requesthandlers.go
internal/testhelper/requesthandlers/requesthandlers.go
+1
-1
No files found.
cmd/check/main.go
View file @
ff46222a
...
@@ -4,10 +4,10 @@ import (
...
@@ -4,10 +4,10 @@ import (
"fmt"
"fmt"
"os"
"os"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command"
"gitlab.com/gitlab-org/gitlab-shell/internal/command"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
)
)
func
main
()
{
func
main
()
{
...
...
cmd/gitlab-shell-authorized-keys-check/main.go
View file @
ff46222a
...
@@ -4,10 +4,10 @@ import (
...
@@ -4,10 +4,10 @@ import (
"fmt"
"fmt"
"os"
"os"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command"
"gitlab.com/gitlab-org/gitlab-shell/internal/command"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
)
)
func
main
()
{
func
main
()
{
...
...
cmd/gitlab-shell-authorized-principals-check/main.go
View file @
ff46222a
...
@@ -4,10 +4,10 @@ import (
...
@@ -4,10 +4,10 @@ import (
"fmt"
"fmt"
"os"
"os"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command"
"gitlab.com/gitlab-org/gitlab-shell/internal/command"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
)
)
func
main
()
{
func
main
()
{
...
...
cmd/gitlab-shell/main.go
View file @
ff46222a
...
@@ -4,10 +4,10 @@ import (
...
@@ -4,10 +4,10 @@ import (
"fmt"
"fmt"
"os"
"os"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command"
"gitlab.com/gitlab-org/gitlab-shell/internal/command"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
)
)
func
main
()
{
func
main
()
{
...
...
internal/command/authorizedkeys/authorized_keys.go
View file @
ff46222a
...
@@ -4,11 +4,11 @@ import (
...
@@ -4,11 +4,11 @@ import (
"fmt"
"fmt"
"strconv"
"strconv"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/authorizedkeys"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/authorizedkeys"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/keyline"
"gitlab.com/gitlab-org/gitlab-shell/internal/keyline"
)
)
type
Command
struct
{
type
Command
struct
{
...
...
internal/command/authorizedkeys/authorized_keys_test.go
View file @
ff46222a
...
@@ -8,10 +8,10 @@ import (
...
@@ -8,10 +8,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
var
(
var
(
...
...
internal/command/authorizedprincipals/authorized_principals.go
View file @
ff46222a
...
@@ -3,10 +3,10 @@ package authorizedprincipals
...
@@ -3,10 +3,10 @@ package authorizedprincipals
import
(
import
(
"fmt"
"fmt"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/keyline"
"gitlab.com/gitlab-org/gitlab-shell/internal/keyline"
)
)
type
Command
struct
{
type
Command
struct
{
...
...
internal/command/authorizedprincipals/authorized_principals_test.go
View file @
ff46222a
...
@@ -6,9 +6,9 @@ import (
...
@@ -6,9 +6,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
)
)
func
TestExecute
(
t
*
testing
.
T
)
{
func
TestExecute
(
t
*
testing
.
T
)
{
...
...
internal/command/command.go
View file @
ff46222a
package
command
package
command
import
(
import
(
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/authorizedkeys"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/authorizedkeys"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/authorizedprincipals"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/authorizedprincipals"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/discover"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/discover"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/healthcheck"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/healthcheck"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/lfsauthenticate"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/lfsauthenticate"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/receivepack"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/receivepack"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/twofactorrecover"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/twofactorrecover"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/uploadarchive"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/uploadarchive"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/uploadpack"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/uploadpack"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
)
)
type
Command
interface
{
type
Command
interface
{
...
...
internal/command/command_test.go
View file @
ff46222a
...
@@ -6,19 +6,19 @@ import (
...
@@ -6,19 +6,19 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/authorizedkeys"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/authorizedkeys"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/authorizedprincipals"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/authorizedprincipals"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/discover"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/discover"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/healthcheck"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/healthcheck"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/lfsauthenticate"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/lfsauthenticate"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/receivepack"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/receivepack"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/twofactorrecover"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/twofactorrecover"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/uploadarchive"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/uploadarchive"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/uploadpack"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/uploadpack"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper"
)
)
var
(
var
(
...
...
internal/command/commandargs/command_args.go
View file @
ff46222a
package
commandargs
package
commandargs
import
(
import
(
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
)
)
type
CommandType
string
type
CommandType
string
...
...
internal/command/commandargs/command_args_test.go
View file @
ff46222a
...
@@ -3,8 +3,8 @@ package commandargs
...
@@ -3,8 +3,8 @@ package commandargs
import
(
import
(
"testing"
"testing"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
)
)
...
...
internal/command/discover/discover.go
View file @
ff46222a
...
@@ -3,10 +3,10 @@ package discover
...
@@ -3,10 +3,10 @@ package discover
import
(
import
(
"fmt"
"fmt"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/discover"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/discover"
)
)
type
Command
struct
{
type
Command
struct
{
...
...
internal/command/discover/discover_test.go
View file @
ff46222a
...
@@ -9,10 +9,10 @@ import (
...
@@ -9,10 +9,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
var
(
var
(
...
...
internal/command/healthcheck/healthcheck.go
View file @
ff46222a
...
@@ -3,9 +3,9 @@ package healthcheck
...
@@ -3,9 +3,9 @@ package healthcheck
import
(
import
(
"fmt"
"fmt"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/healthcheck"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/healthcheck"
)
)
var
(
var
(
...
...
internal/command/healthcheck/healthcheck_test.go
View file @
ff46222a
...
@@ -8,10 +8,10 @@ import (
...
@@ -8,10 +8,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/healthcheck"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/healthcheck"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
var
(
var
(
...
...
internal/command/lfsauthenticate/lfsauthenticate.go
View file @
ff46222a
...
@@ -5,12 +5,12 @@ import (
...
@@ -5,12 +5,12 @@ import (
"encoding/json"
"encoding/json"
"fmt"
"fmt"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/lfsauthenticate"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/lfsauthenticate"
)
)
const
(
const
(
...
...
internal/command/lfsauthenticate/lfsauthenticate_test.go
View file @
ff46222a
...
@@ -9,13 +9,13 @@ import (
...
@@ -9,13 +9,13 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/lfsauthenticate"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/lfsauthenticate"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper/requesthandlers"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper/requesthandlers"
)
)
func
TestFailedRequests
(
t
*
testing
.
T
)
{
func
TestFailedRequests
(
t
*
testing
.
T
)
{
...
...
internal/command/receivepack/customaction.go
View file @
ff46222a
...
@@ -9,8 +9,8 @@ import (
...
@@ -9,8 +9,8 @@ import (
"net/http"
"net/http"
"strings"
"strings"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/accessverifier"
)
)
type
Request
struct
{
type
Request
struct
{
...
...
internal/command/receivepack/customaction_test.go
View file @
ff46222a
...
@@ -9,11 +9,11 @@ import (
...
@@ -9,11 +9,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
func
TestCustomReceivePack
(
t
*
testing
.
T
)
{
func
TestCustomReceivePack
(
t
*
testing
.
T
)
{
...
...
internal/command/receivepack/gitalycall.go
View file @
ff46222a
...
@@ -7,9 +7,9 @@ import (
...
@@ -7,9 +7,9 @@ import (
"gitlab.com/gitlab-org/gitaly/client"
"gitlab.com/gitlab-org/gitaly/client"
pb
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
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/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/handler"
"gitlab.com/gitlab-org/gitlab-shell/internal/handler"
)
)
func
(
c
*
Command
)
performGitalyCall
(
response
*
accessverifier
.
Response
)
error
{
func
(
c
*
Command
)
performGitalyCall
(
response
*
accessverifier
.
Response
)
error
{
...
...
internal/command/receivepack/gitalycall_test.go
View file @
ff46222a
...
@@ -6,11 +6,11 @@ import (
...
@@ -6,11 +6,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper/requesthandlers"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper/requesthandlers"
)
)
func
TestReceivePack
(
t
*
testing
.
T
)
{
func
TestReceivePack
(
t
*
testing
.
T
)
{
...
...
internal/command/receivepack/receivepack.go
View file @
ff46222a
package
receivepack
package
receivepack
import
(
import
(
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
)
)
type
Command
struct
{
type
Command
struct
{
...
...
internal/command/receivepack/receivepack_test.go
View file @
ff46222a
...
@@ -6,11 +6,11 @@ import (
...
@@ -6,11 +6,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper/requesthandlers"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper/requesthandlers"
)
)
func
TestForbiddenAccess
(
t
*
testing
.
T
)
{
func
TestForbiddenAccess
(
t
*
testing
.
T
)
{
...
...
internal/command/shared/accessverifier/accessverifier.go
View file @
ff46222a
...
@@ -4,10 +4,10 @@ import (
...
@@ -4,10 +4,10 @@ import (
"errors"
"errors"
"fmt"
"fmt"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/accessverifier"
)
)
type
Response
=
accessverifier
.
Response
type
Response
=
accessverifier
.
Response
...
...
internal/command/shared/accessverifier/accessverifier_test.go
View file @
ff46222a
...
@@ -9,11 +9,11 @@ import (
...
@@ -9,11 +9,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
var
(
var
(
...
...
internal/command/twofactorrecover/twofactorrecover.go
View file @
ff46222a
...
@@ -4,10 +4,10 @@ import (
...
@@ -4,10 +4,10 @@ import (
"fmt"
"fmt"
"strings"
"strings"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/twofactorrecover"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/twofactorrecover"
)
)
type
Command
struct
{
type
Command
struct
{
...
...
internal/command/twofactorrecover/twofactorrecover_test.go
View file @
ff46222a
...
@@ -10,11 +10,11 @@ import (
...
@@ -10,11 +10,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/twofactorrecover"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/twofactorrecover"
)
)
var
(
var
(
...
...
internal/command/uploadarchive/gitalycall.go
View file @
ff46222a
...
@@ -7,9 +7,9 @@ import (
...
@@ -7,9 +7,9 @@ import (
"gitlab.com/gitlab-org/gitaly/client"
"gitlab.com/gitlab-org/gitaly/client"
pb
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
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/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/handler"
"gitlab.com/gitlab-org/gitlab-shell/internal/handler"
)
)
func
(
c
*
Command
)
performGitalyCall
(
response
*
accessverifier
.
Response
)
error
{
func
(
c
*
Command
)
performGitalyCall
(
response
*
accessverifier
.
Response
)
error
{
...
...
internal/command/uploadarchive/gitalycall_test.go
View file @
ff46222a
...
@@ -6,11 +6,11 @@ import (
...
@@ -6,11 +6,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper/requesthandlers"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper/requesthandlers"
)
)
func
TestUploadPack
(
t
*
testing
.
T
)
{
func
TestUploadPack
(
t
*
testing
.
T
)
{
...
...
internal/command/uploadarchive/uploadarchive.go
View file @
ff46222a
package
uploadarchive
package
uploadarchive
import
(
import
(
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
)
)
type
Command
struct
{
type
Command
struct
{
...
...
internal/command/uploadarchive/uploadarchive_test.go
View file @
ff46222a
...
@@ -6,11 +6,11 @@ import (
...
@@ -6,11 +6,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper/requesthandlers"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper/requesthandlers"
)
)
func
TestForbiddenAccess
(
t
*
testing
.
T
)
{
func
TestForbiddenAccess
(
t
*
testing
.
T
)
{
...
...
internal/command/uploadpack/gitalycall.go
View file @
ff46222a
...
@@ -7,9 +7,9 @@ import (
...
@@ -7,9 +7,9 @@ import (
"gitlab.com/gitlab-org/gitaly/client"
"gitlab.com/gitlab-org/gitaly/client"
pb
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
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/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/handler"
"gitlab.com/gitlab-org/gitlab-shell/internal/handler"
)
)
func
(
c
*
Command
)
performGitalyCall
(
response
*
accessverifier
.
Response
)
error
{
func
(
c
*
Command
)
performGitalyCall
(
response
*
accessverifier
.
Response
)
error
{
...
...
internal/command/uploadpack/gitalycall_test.go
View file @
ff46222a
...
@@ -6,11 +6,11 @@ import (
...
@@ -6,11 +6,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper/requesthandlers"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper/requesthandlers"
)
)
func
TestUploadPack
(
t
*
testing
.
T
)
{
func
TestUploadPack
(
t
*
testing
.
T
)
{
...
...
internal/command/uploadpack/uploadpack.go
View file @
ff46222a
package
uploadpack
package
uploadpack
import
(
import
(
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
)
)
type
Command
struct
{
type
Command
struct
{
...
...
internal/command/uploadpack/uploadpack_test.go
View file @
ff46222a
...
@@ -6,11 +6,11 @@ import (
...
@@ -6,11 +6,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper/requesthandlers"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper/requesthandlers"
)
)
func
TestForbiddenAccess
(
t
*
testing
.
T
)
{
func
TestForbiddenAccess
(
t
*
testing
.
T
)
{
...
...
internal/config/config_test.go
View file @
ff46222a
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper"
)
)
const
(
const
(
...
...
internal/executable/executable_test.go
View file @
ff46222a
...
@@ -4,7 +4,7 @@ import (
...
@@ -4,7 +4,7 @@ import (
"errors"
"errors"
"testing"
"testing"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
)
)
...
...
internal/gitlabnet/accessverifier/client.go
View file @
ff46222a
...
@@ -5,10 +5,10 @@ import (
...
@@ -5,10 +5,10 @@ import (
"net/http"
"net/http"
pb
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
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/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/sshenv"
"gitlab.com/gitlab-org/gitlab-shell/internal/sshenv"
)
)
const
(
const
(
...
...
internal/gitlabnet/accessverifier/client_test.go
View file @
ff46222a
...
@@ -10,11 +10,11 @@ import (
...
@@ -10,11 +10,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
pb
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
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/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper"
)
)
var
(
var
(
...
...
internal/gitlabnet/authorizedkeys/client.go
View file @
ff46222a
...
@@ -4,8 +4,8 @@ import (
...
@@ -4,8 +4,8 @@ import (
"fmt"
"fmt"
"net/url"
"net/url"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
)
)
const
(
const
(
...
...
internal/gitlabnet/authorizedkeys/client_test.go
View file @
ff46222a
...
@@ -7,9 +7,9 @@ import (
...
@@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
var
(
var
(
...
...
internal/gitlabnet/client.go
View file @
ff46222a
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
"net/http"
"net/http"
"strings"
"strings"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
)
)
const
(
const
(
...
...
internal/gitlabnet/client_test.go
View file @
ff46222a
...
@@ -12,9 +12,9 @@ import (
...
@@ -12,9 +12,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper"
)
)
func
TestClients
(
t
*
testing
.
T
)
{
func
TestClients
(
t
*
testing
.
T
)
{
...
...
internal/gitlabnet/discover/client.go
View file @
ff46222a
...
@@ -5,9 +5,9 @@ import (
...
@@ -5,9 +5,9 @@ import (
"net/http"
"net/http"
"net/url"
"net/url"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
)
)
type
Client
struct
{
type
Client
struct
{
...
...
internal/gitlabnet/discover/client_test.go
View file @
ff46222a
...
@@ -7,9 +7,9 @@ import (
...
@@ -7,9 +7,9 @@ import (
"net/url"
"net/url"
"testing"
"testing"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
...
...
internal/gitlabnet/healthcheck/client.go
View file @
ff46222a
...
@@ -4,8 +4,8 @@ import (
...
@@ -4,8 +4,8 @@ import (
"fmt"
"fmt"
"net/http"
"net/http"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
)
)
const
(
const
(
...
...
internal/gitlabnet/healthcheck/client_test.go
View file @
ff46222a
...
@@ -5,8 +5,8 @@ import (
...
@@ -5,8 +5,8 @@ import (
"net/http"
"net/http"
"testing"
"testing"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
)
)
...
...
internal/gitlabnet/httpclient_test.go
View file @
ff46222a
...
@@ -10,8 +10,8 @@ import (
...
@@ -10,8 +10,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
const
(
const
(
...
...
internal/gitlabnet/httpsclient_test.go
View file @
ff46222a
...
@@ -9,9 +9,9 @@ import (
...
@@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper"
)
)
func
TestSuccessfulRequests
(
t
*
testing
.
T
)
{
func
TestSuccessfulRequests
(
t
*
testing
.
T
)
{
...
...
internal/gitlabnet/lfsauthenticate/client.go
View file @
ff46222a
...
@@ -5,9 +5,9 @@ import (
...
@@ -5,9 +5,9 @@ import (
"net/http"
"net/http"
"strings"
"strings"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
)
)
type
Client
struct
{
type
Client
struct
{
...
...
internal/gitlabnet/lfsauthenticate/client_test.go
View file @
ff46222a
...
@@ -8,9 +8,9 @@ import (
...
@@ -8,9 +8,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
const
(
const
(
...
...
internal/gitlabnet/testserver/testserver.go
View file @
ff46222a
...
@@ -14,7 +14,7 @@ import (
...
@@ -14,7 +14,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper"
)
)
var
(
var
(
...
...
internal/gitlabnet/twofactorrecover/client.go
View file @
ff46222a
...
@@ -5,10 +5,10 @@ import (
...
@@ -5,10 +5,10 @@ import (
"fmt"
"fmt"
"net/http"
"net/http"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/discover"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/discover"
)
)
type
Client
struct
{
type
Client
struct
{
...
...
internal/gitlabnet/twofactorrecover/client_test.go
View file @
ff46222a
...
@@ -9,11 +9,11 @@ import (
...
@@ -9,11 +9,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/discover"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/discover"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
var
(
var
(
...
...
internal/handler/exec.go
View file @
ff46222a
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
"gitlab.com/gitlab-org/gitaly/auth"
"gitlab.com/gitlab-org/gitaly/auth"
"gitlab.com/gitlab-org/gitaly/client"
"gitlab.com/gitlab-org/gitaly/client"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
"gitlab.com/gitlab-org/labkit/tracing"
"gitlab.com/gitlab-org/labkit/tracing"
"google.golang.org/grpc"
"google.golang.org/grpc"
)
)
...
...
internal/keyline/key_line.go
View file @
ff46222a
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"regexp"
"regexp"
"strings"
"strings"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/executable"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
)
)
var
(
var
(
...
...
internal/logger/logger.go
View file @
ff46222a
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
"os"
"os"
"sync"
"sync"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/config"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
log
"github.com/sirupsen/logrus"
log
"github.com/sirupsen/logrus"
)
)
...
...
internal/sshenv/sshenv_test.go
View file @
ff46222a
...
@@ -4,7 +4,7 @@ import (
...
@@ -4,7 +4,7 @@ import (
"testing"
"testing"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/testhelper"
"gitlab.com/gitlab-org/gitlab-shell/internal/testhelper"
)
)
func
TestLocalAddr
(
t
*
testing
.
T
)
{
func
TestLocalAddr
(
t
*
testing
.
T
)
{
...
...
internal/testhelper/requesthandlers/requesthandlers.go
View file @
ff46222a
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-shell/
go/
internal/gitlabnet/testserver"
"gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/testserver"
)
)
func
BuildDisallowedByApiHandlers
(
t
*
testing
.
T
)
[]
testserver
.
TestRequestHandler
{
func
BuildDisallowedByApiHandlers
(
t
*
testing
.
T
)
[]
testserver
.
TestRequestHandler
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment