File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Gitea Authors. All rights reserved.
2
+ // Use of this source code is governed by a MIT-style
3
+ // license that can be found in the LICENSE file.
4
+
5
+ package integrations
6
+
7
+ import (
8
+ "net/http"
9
+ "testing"
10
+ )
11
+
12
+ func TestLinksNoLogin (t * testing.T ) {
13
+ prepareTestEnv (t )
14
+
15
+ var links = []string {
16
+ "/explore/repos" ,
17
+ "/explore/repos?q=test&tab=" ,
18
+ "/explore/users" ,
19
+ "/explore/users?q=test&tab=" ,
20
+ "/explore/organizations" ,
21
+ "/explore/organizations?q=test&tab=" ,
22
+ "/" ,
23
+ "/user/sign_up" ,
24
+ "/user/login" ,
25
+ "/user/forgot_password" ,
26
+ "/swagger" ,
27
+ }
28
+
29
+ for _ , link := range links {
30
+ req := NewRequest (t , "GET" , link )
31
+ MakeRequest (t , req , http .StatusOK )
32
+ }
33
+ }
You can’t perform that action at this time.
0 commit comments