mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-01 08:28:58 +00:00
refactor: include the read project scope
This commit is contained in:
parent
dc41382cef
commit
c224fc9885
@ -105,7 +105,7 @@ func TestAPIListOrgProjects(t *testing.T) {
|
|||||||
defer tests.PrepareTestEnv(t)()
|
defer tests.PrepareTestEnv(t)()
|
||||||
|
|
||||||
orgName := "org17"
|
orgName := "org17"
|
||||||
token := getUserToken(t, "user2", auth_model.AccessTokenScopeReadOrganization, auth_model.AccessTokenScopeReadIssue)
|
token := getUserToken(t, "user2", auth_model.AccessTokenScopeReadOrganization, auth_model.AccessTokenScopeReadIssue, auth_model.AccessTokenScopeReadProject)
|
||||||
link, _ := url.Parse(fmt.Sprintf("/api/v1/orgs/%s/projects", orgName))
|
link, _ := url.Parse(fmt.Sprintf("/api/v1/orgs/%s/projects", orgName))
|
||||||
|
|
||||||
req := NewRequest(t, "GET", link.String()).AddTokenAuth(token)
|
req := NewRequest(t, "GET", link.String()).AddTokenAuth(token)
|
||||||
|
Loading…
Reference in New Issue
Block a user