summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-07-24 12:46:38 +0800
committerGitHub <noreply@github.com>2020-07-24 12:46:38 +0800
commit7744b36e56aefc16fce321b1bf0d8614a470d894 (patch)
tree6b7e361b0f47197dc614d3b67365dd56fcc6c61d
parent0186497e676b531787045863647f08f076ed0b32 (diff)
downloadgitea-7744b36e56aefc16fce321b1bf0d8614a470d894.tar.gz
gitea-7744b36e56aefc16fce321b1bf0d8614a470d894.zip
Use a small size repo for migrate test (#12300)
Signed-off-by: a1012112796 <1012112796@qq.com>
-rw-r--r--integrations/api_repo_test.go12
-rw-r--r--integrations/repo_migrate_test.go2
2 files changed, 7 insertions, 7 deletions
diff --git a/integrations/api_repo_test.go b/integrations/api_repo_test.go
index 7797b8f498..f0f43ac32c 100644
--- a/integrations/api_repo_test.go
+++ b/integrations/api_repo_test.go
@@ -304,11 +304,11 @@ func TestAPIRepoMigrate(t *testing.T) {
cloneURL, repoName string
expectedStatus int
}{
- {ctxUserID: 1, userID: 2, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-admin", expectedStatus: http.StatusCreated},
- {ctxUserID: 2, userID: 2, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-own", expectedStatus: http.StatusCreated},
- {ctxUserID: 2, userID: 1, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-bad", expectedStatus: http.StatusForbidden},
- {ctxUserID: 2, userID: 3, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-org", expectedStatus: http.StatusCreated},
- {ctxUserID: 2, userID: 6, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-bad-org", expectedStatus: http.StatusForbidden},
+ {ctxUserID: 1, userID: 2, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-admin", expectedStatus: http.StatusCreated},
+ {ctxUserID: 2, userID: 2, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-own", expectedStatus: http.StatusCreated},
+ {ctxUserID: 2, userID: 1, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-bad", expectedStatus: http.StatusForbidden},
+ {ctxUserID: 2, userID: 3, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-org", expectedStatus: http.StatusCreated},
+ {ctxUserID: 2, userID: 6, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-bad-org", expectedStatus: http.StatusForbidden},
}
defer prepareTestEnv(t)()
@@ -348,7 +348,7 @@ func testAPIRepoMigrateConflict(t *testing.T, u *url.URL) {
assert.NoError(t, err)
userID := user.ID
- cloneURL := "https://github.com/go-gitea/git.git"
+ cloneURL := "https://github.com/go-gitea/test_repo.git"
req := NewRequestWithJSON(t, "POST", "/api/v1/repos/migrate?token="+httpContext.Token,
&api.MigrateRepoOption{
diff --git a/integrations/repo_migrate_test.go b/integrations/repo_migrate_test.go
index f95218a114..a9970655ef 100644
--- a/integrations/repo_migrate_test.go
+++ b/integrations/repo_migrate_test.go
@@ -38,5 +38,5 @@ func testRepoMigrate(t testing.TB, session *TestSession, cloneAddr, repoName str
func TestRepoMigrate(t *testing.T) {
defer prepareTestEnv(t)()
session := loginUser(t, "user2")
- testRepoMigrate(t, session, "https://github.com/go-gitea/git.git", "git")
+ testRepoMigrate(t, session, "https://github.com/go-gitea/test_repo.git", "git")
}