adjust tests (4)

This commit is contained in:
6543 2024-10-31 21:22:12 +01:00
parent 7df9ca936a
commit 924e3d5f52
1 changed files with 3 additions and 2 deletions

View File

@ -32,8 +32,7 @@ func TestLinksNoLogin(t *testing.T) {
"/user/login",
"/user/forgot_password",
"/api/swagger",
"/user2/repo1",
"/user2/repo1/",
"/user2/repo1/code",
"/user2/repo1/projects",
"/user2/repo1/projects/1",
"/user2/repo1/releases/tag/delete-tag", // It's the only one existing record on release.yml which has is_tag: true
@ -56,6 +55,8 @@ func TestRedirectsNoLogin(t *testing.T) {
"/user2/repo1/src/master/directory/file.txt": "/user2/repo1/src/branch/master/directory/file.txt",
"/user/avatar/Ghost/-1": "/assets/img/avatar_default.png",
"/api/v1/swagger": "/api/swagger",
"/user2/repo1": "/user2/repo1/code",
"/user2/repo1/": "/user2/repo1/code",
}
for link, redirectLink := range redirects {
req := NewRequest(t, "GET", link)