summaryrefslogtreecommitdiff
path: root/go/internal/command
diff options
context:
space:
mode:
authorMałgorzata Ksionek <mksionek@gitlab.com>2019-10-01 14:59:00 +0200
committerMałgorzata Ksionek <mksionek@gitlab.com>2019-10-01 14:59:00 +0200
commit1ba172d426274832f4a76a1b540dce462ec932f3 (patch)
tree552b07398739fbc2af55fb93ec8c5f4986060305 /go/internal/command
parent650ecad9bad69dbc12745c71d959a89b87ffdac7 (diff)
downloadgitlab-shell-1ba172d426274832f4a76a1b540dce462ec932f3.tar.gz
Update methods to use new path
Diffstat (limited to 'go/internal/command')
-rw-r--r--go/internal/command/lfsauthenticate/lfsauthenticate_test.go2
-rw-r--r--go/internal/command/receivepack/customaction_test.go2
-rw-r--r--go/internal/command/shared/accessverifier/accessverifier_test.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/go/internal/command/lfsauthenticate/lfsauthenticate_test.go b/go/internal/command/lfsauthenticate/lfsauthenticate_test.go
index a6836a8..3b5d11c 100644
--- a/go/internal/command/lfsauthenticate/lfsauthenticate_test.go
+++ b/go/internal/command/lfsauthenticate/lfsauthenticate_test.go
@@ -90,7 +90,7 @@ func TestLfsAuthenticateRequests(t *testing.T) {
},
},
{
- Path: "/api/v4/internal/allowed",
+ Path: "/api/v4/internal/allowed/secure",
Handler: func(w http.ResponseWriter, r *http.Request) {
b, err := ioutil.ReadAll(r.Body)
defer r.Body.Close()
diff --git a/go/internal/command/receivepack/customaction_test.go b/go/internal/command/receivepack/customaction_test.go
index bd4991d..045dd6c 100644
--- a/go/internal/command/receivepack/customaction_test.go
+++ b/go/internal/command/receivepack/customaction_test.go
@@ -22,7 +22,7 @@ func TestCustomReceivePack(t *testing.T) {
requests := []testserver.TestRequestHandler{
{
- Path: "/api/v4/internal/allowed",
+ Path: "/api/v4/internal/allowed/secure",
Handler: func(w http.ResponseWriter, r *http.Request) {
b, err := ioutil.ReadAll(r.Body)
require.NoError(t, err)
diff --git a/go/internal/command/shared/accessverifier/accessverifier_test.go b/go/internal/command/shared/accessverifier/accessverifier_test.go
index c19ed37..df9c834 100644
--- a/go/internal/command/shared/accessverifier/accessverifier_test.go
+++ b/go/internal/command/shared/accessverifier/accessverifier_test.go
@@ -24,7 +24,7 @@ var (
func setup(t *testing.T) (*Command, *bytes.Buffer, *bytes.Buffer, func()) {
requests := []testserver.TestRequestHandler{
{
- Path: "/api/v4/internal/allowed",
+ Path: "/api/v4/internal/allowed/secure",
Handler: func(w http.ResponseWriter, r *http.Request) {
b, err := ioutil.ReadAll(r.Body)
require.NoError(t, err)