|
|
@ -81,7 +81,7 @@ func testGit(t *testing.T, u *url.URL) { |
|
|
|
rawTest(t, &httpContext, little, big, littleLFS, bigLFS) |
|
|
|
rawTest(t, &httpContext, little, big, littleLFS, bigLFS) |
|
|
|
mediaTest(t, &httpContext, little, big, littleLFS, bigLFS) |
|
|
|
mediaTest(t, &httpContext, little, big, littleLFS, bigLFS) |
|
|
|
|
|
|
|
|
|
|
|
t.Run("CreateAgitFlowPull", doCreateAgitFlowPull(dstPath, &httpContext, "master", "test/head")) |
|
|
|
t.Run("CreateAgitFlowPull", doCreateAgitFlowPull(dstPath, &httpContext, "test/head")) |
|
|
|
t.Run("BranchProtectMerge", doBranchProtectPRMerge(&httpContext, dstPath)) |
|
|
|
t.Run("BranchProtectMerge", doBranchProtectPRMerge(&httpContext, dstPath)) |
|
|
|
t.Run("AutoMerge", doAutoPRMerge(&httpContext, dstPath)) |
|
|
|
t.Run("AutoMerge", doAutoPRMerge(&httpContext, dstPath)) |
|
|
|
t.Run("CreatePRAndSetManuallyMerged", doCreatePRAndSetManuallyMerged(httpContext, httpContext, dstPath, "master", "test-manually-merge")) |
|
|
|
t.Run("CreatePRAndSetManuallyMerged", doCreatePRAndSetManuallyMerged(httpContext, httpContext, dstPath, "master", "test-manually-merge")) |
|
|
@ -122,7 +122,7 @@ func testGit(t *testing.T, u *url.URL) { |
|
|
|
rawTest(t, &sshContext, little, big, littleLFS, bigLFS) |
|
|
|
rawTest(t, &sshContext, little, big, littleLFS, bigLFS) |
|
|
|
mediaTest(t, &sshContext, little, big, littleLFS, bigLFS) |
|
|
|
mediaTest(t, &sshContext, little, big, littleLFS, bigLFS) |
|
|
|
|
|
|
|
|
|
|
|
t.Run("CreateAgitFlowPull", doCreateAgitFlowPull(dstPath, &sshContext, "master", "test/head2")) |
|
|
|
t.Run("CreateAgitFlowPull", doCreateAgitFlowPull(dstPath, &sshContext, "test/head2")) |
|
|
|
t.Run("BranchProtectMerge", doBranchProtectPRMerge(&sshContext, dstPath)) |
|
|
|
t.Run("BranchProtectMerge", doBranchProtectPRMerge(&sshContext, dstPath)) |
|
|
|
t.Run("MergeFork", func(t *testing.T) { |
|
|
|
t.Run("MergeFork", func(t *testing.T) { |
|
|
|
defer tests.PrintCurrentTest(t)() |
|
|
|
defer tests.PrintCurrentTest(t)() |
|
|
@ -329,9 +329,6 @@ func generateCommitWithNewData(size int, repoPath, email, fullName, prefix strin |
|
|
|
} |
|
|
|
} |
|
|
|
written += n |
|
|
|
written += n |
|
|
|
} |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
|
|
|
|
return "", err |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Commit
|
|
|
|
// Commit
|
|
|
|
// Now here we should explicitly allow lfs filters to run
|
|
|
|
// Now here we should explicitly allow lfs filters to run
|
|
|
@ -693,7 +690,7 @@ func doAutoPRMerge(baseCtx *APITestContext, dstPath string) func(t *testing.T) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func doCreateAgitFlowPull(dstPath string, ctx *APITestContext, baseBranch, headBranch string) func(t *testing.T) { |
|
|
|
func doCreateAgitFlowPull(dstPath string, ctx *APITestContext, headBranch string) func(t *testing.T) { |
|
|
|
return func(t *testing.T) { |
|
|
|
return func(t *testing.T) { |
|
|
|
defer tests.PrintCurrentTest(t)() |
|
|
|
defer tests.PrintCurrentTest(t)() |
|
|
|
|
|
|
|
|
|
|
|