refactor: include the read project scope

This commit is contained in:
Dinesh Salunke 2025-07-14 22:31:48 +05:30
parent dc41382cef
commit c224fc9885

View File

@ -105,7 +105,7 @@ func TestAPIListOrgProjects(t *testing.T) {
defer tests.PrepareTestEnv(t)()
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))
req := NewRequest(t, "GET", link.String()).AddTokenAuth(token)