From c224fc988532172db0765a5bb3f426f54b1c76cc Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Mon, 14 Jul 2025 22:31:48 +0530 Subject: [PATCH] refactor: include the read project scope --- tests/integration/api_project_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/api_project_test.go b/tests/integration/api_project_test.go index 66c3baefb20..01392cfc974 100644 --- a/tests/integration/api_project_test.go +++ b/tests/integration/api_project_test.go @@ -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)