diff options
Diffstat (limited to 'tests/integration/git_lfs_ssh_test.go')
-rw-r--r-- | tests/integration/git_lfs_ssh_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/integration/git_lfs_ssh_test.go b/tests/integration/git_lfs_ssh_test.go index 9cb7fd089b..c6011523a8 100644 --- a/tests/integration/git_lfs_ssh_test.go +++ b/tests/integration/git_lfs_ssh_test.go @@ -55,9 +55,14 @@ func TestGitLFSSSH(t *testing.T) { return strings.Contains(s, "POST /api/internal/repo/user2/repo1.git/info/lfs/objects/batch") }) countUpload := slices.ContainsFunc(routerCalls, func(s string) bool { - return strings.Contains(s, "PUT /user2/repo1.git/info/lfs/objects/") + return strings.Contains(s, "PUT /api/internal/repo/user2/repo1.git/info/lfs/objects/") + }) + nonAPIRequests := slices.ContainsFunc(routerCalls, func(s string) bool { + fields := strings.Fields(s) + return !strings.HasPrefix(fields[1], "/api/") }) assert.NotZero(t, countBatch) assert.NotZero(t, countUpload) + assert.Zero(t, nonAPIRequests) }) } |