|
|
|
@ -450,6 +450,7 @@ func TestAPIRepoTransfer(t *testing.T) {
|
|
|
|
|
{ctxUserID: 1, newOwner: "user2", teams: &[]int64{2}, expectedStatus: http.StatusUnprocessableEntity}, |
|
|
|
|
{ctxUserID: 1, newOwner: "user3", teams: &[]int64{5}, expectedStatus: http.StatusForbidden}, |
|
|
|
|
{ctxUserID: 1, newOwner: "user3", teams: &[]int64{2}, expectedStatus: http.StatusAccepted}, |
|
|
|
|
{ctxUserID: 2, newOwner: "user2", teams: nil, expectedStatus: http.StatusAccepted}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
defer prepareTestEnv(t)() |
|
|
|
|