From 4027c5dd7c11c1256094e202be591ec1b86a011e Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Mon, 17 Aug 2020 04:07:38 +0100 Subject: Kanban board (#8346) Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com> Co-authored-by: Kerry Co-authored-by: Jaqra Co-authored-by: Kyle Evans Co-authored-by: Tsakiridis Ilias Co-authored-by: Ilias Tsakiridis Co-authored-by: Lunny Xiao Co-authored-by: silverwind Co-authored-by: zeripath Co-authored-by: techknowlogick --- integrations/links_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'integrations/links_test.go') diff --git a/integrations/links_test.go b/integrations/links_test.go index 2db07e8814..2c674c104a 100644 --- a/integrations/links_test.go +++ b/integrations/links_test.go @@ -33,6 +33,9 @@ func TestLinksNoLogin(t *testing.T) { "/user/forgot_password", "/api/swagger", "/api/v1/swagger", + "/user2/repo1", + "/user2/repo1/projects", + "/user2/repo1/projects/1", } for _, link := range links { @@ -58,6 +61,20 @@ func TestRedirectsNoLogin(t *testing.T) { } } +func TestNoLoginNotExist(t *testing.T) { + defer prepareTestEnv(t)() + + var links = []string{ + "/user5/repo4/projects", + "/user5/repo4/projects/3", + } + + for _, link := range links { + req := NewRequest(t, "GET", link) + MakeRequest(t, req, http.StatusNotFound) + } +} + func testLinksAsUser(userName string, t *testing.T) { var links = []string{ "/explore/repos", -- cgit v1.2.3