diff options
author | Nick Thomas <nick@gitlab.com> | 2019-06-06 16:02:02 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-06-06 16:02:02 +0000 |
commit | 86dc733108e490a23d768b31e6c7119ce5a4dcff (patch) | |
tree | 3557c79227b01376a90f381c5f60f0ef42727baa /go/internal/command/commandargs/command_args_test.go | |
parent | eb2b186f7d209a638b7523c674bc79cbafe764b6 (diff) | |
parent | 888cd2c4ecb7d8a82328c5b3d68545596466b1a2 (diff) | |
download | gitlab-shell-86dc733108e490a23d768b31e6c7119ce5a4dcff.tar.gz |
Merge branch 'id-git-lfs-authenticate' into 'master'
Go implementation for LFS authenticate
Closes #163
See merge request gitlab-org/gitlab-shell!308
Diffstat (limited to 'go/internal/command/commandargs/command_args_test.go')
-rw-r--r-- | go/internal/command/commandargs/command_args_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/go/internal/command/commandargs/command_args_test.go b/go/internal/command/commandargs/command_args_test.go index 7c360ad..e60bb92 100644 --- a/go/internal/command/commandargs/command_args_test.go +++ b/go/internal/command/commandargs/command_args_test.go @@ -90,6 +90,13 @@ func TestParseSuccess(t *testing.T) { "SSH_ORIGINAL_COMMAND": "git-upload-archive 'group/repo'", }, expectedArgs: &CommandArgs{SshArgs: []string{"git-upload-archive", "group/repo"}, CommandType: UploadArchive}, + }, { + desc: "It parses git-lfs-authenticate command", + environment: map[string]string{ + "SSH_CONNECTION": "1", + "SSH_ORIGINAL_COMMAND": "git-lfs-authenticate 'group/repo' download", + }, + expectedArgs: &CommandArgs{SshArgs: []string{"git-lfs-authenticate", "group/repo", "download"}, CommandType: LfsAuthenticate}, }, } |