From 924e3d5f5286fd52ec755fb860acf15930eec1dd Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 31 Oct 2024 21:22:12 +0100 Subject: [PATCH] adjust tests (4) --- tests/integration/links_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/integration/links_test.go b/tests/integration/links_test.go index d3b30448fc..4f9e237159 100644 --- a/tests/integration/links_test.go +++ b/tests/integration/links_test.go @@ -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)