diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2019-12-03 15:41:13 +1100 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2019-12-03 15:41:13 +1100 |
commit | bcccc30c274e0e92a78114887a6467f0afa16c8e (patch) | |
tree | f1395dc285ae39e2d07d18aa2d8009c0a0bee741 /internal | |
parent | f0a6e62da76c53a0853bcd0c3a6e0c9c384f5dea (diff) | |
download | gitlab-shell-bcccc30c274e0e92a78114887a6467f0afa16c8e.tar.gz |
Add git-lfs upload operation assertion37371-git-clone-on-secondary-geo-node-fetches-lfs-files-from-primary
Diffstat (limited to 'internal')
-rw-r--r-- | internal/command/lfsauthenticate/lfsauthenticate_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/command/lfsauthenticate/lfsauthenticate_test.go b/internal/command/lfsauthenticate/lfsauthenticate_test.go index 22e151a..c2f0fd3 100644 --- a/internal/command/lfsauthenticate/lfsauthenticate_test.go +++ b/internal/command/lfsauthenticate/lfsauthenticate_test.go @@ -64,6 +64,7 @@ func TestFailedRequests(t *testing.T) { func TestLfsAuthenticateRequests(t *testing.T) { userId := "123" + operation := "upload" requests := []testserver.TestRequestHandler{ { @@ -75,6 +76,7 @@ func TestLfsAuthenticateRequests(t *testing.T) { var request *lfsauthenticate.Request require.NoError(t, json.Unmarshal(b, &request)) + require.Equal(t, request.Operation, operation) if request.UserId == userId { body := map[string]interface{}{ @@ -140,7 +142,7 @@ func TestLfsAuthenticateRequests(t *testing.T) { output := &bytes.Buffer{} cmd := &Command{ Config: &config.Config{GitlabUrl: url}, - Args: &commandargs.Shell{GitlabUsername: tc.username, SshArgs: []string{"git-lfs-authenticate", "group/repo", "upload"}}, + Args: &commandargs.Shell{GitlabUsername: tc.username, SshArgs: []string{"git-lfs-authenticate", "group/repo", operation}}, ReadWriter: &readwriter.ReadWriter{ErrOut: output, Out: output}, } |