aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/api_org_test.go
diff options
context:
space:
mode:
authorZettat123 <zettat123@gmail.com>2024-02-24 20:38:43 +0800
committerGitHub <noreply@github.com>2024-02-24 12:38:43 +0000
commitc42083a33950be6ee9f822c6d0de3c3a79d1f51b (patch)
treeabbcefa5ef6f76d7c61a15c0836efa0907d7c2d9 /tests/integration/api_org_test.go
parent267dbb4e938cc42dc09a4a893cca631b2f755557 (diff)
downloadgitea-c42083a33950be6ee9f822c6d0de3c3a79d1f51b.tar.gz
gitea-c42083a33950be6ee9f822c6d0de3c3a79d1f51b.zip
Allow non-admin users to delete review requests (#29057)
Fix #14459 The following users can add/remove review requests of a PR - the poster of the PR - the owner or collaborators of the repository - members with read permission on the pull requests unit
Diffstat (limited to 'tests/integration/api_org_test.go')
-rw-r--r--tests/integration/api_org_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/api_org_test.go b/tests/integration/api_org_test.go
index 1cd82fe4e0..70d3a446f7 100644
--- a/tests/integration/api_org_test.go
+++ b/tests/integration/api_org_test.go
@@ -177,7 +177,7 @@ func TestAPIGetAll(t *testing.T) {
var apiOrgList []*api.Organization
DecodeJSON(t, resp, &apiOrgList)
- assert.Len(t, apiOrgList, 11)
+ assert.Len(t, apiOrgList, 12)
assert.Equal(t, "Limited Org 36", apiOrgList[1].FullName)
assert.Equal(t, "limited", apiOrgList[1].Visibility)
@@ -186,7 +186,7 @@ func TestAPIGetAll(t *testing.T) {
resp = MakeRequest(t, req, http.StatusOK)
DecodeJSON(t, resp, &apiOrgList)
- assert.Len(t, apiOrgList, 7)
+ assert.Len(t, apiOrgList, 8)
assert.Equal(t, "org 17", apiOrgList[0].FullName)
assert.Equal(t, "public", apiOrgList[0].Visibility)
}