diff options
author | 6543 <6543@obermui.de> | 2024-04-30 10:43:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 08:43:08 +0000 |
commit | f2d8ccc5bb2df25557cc0d4d23f2cdd029358274 (patch) | |
tree | 1bac43ce9e1b4f0950bfc1a4ebcdfb2a7b331b08 /tests | |
parent | 059b2718a5615c01b897283f6ae53c9702f11239 (diff) | |
download | gitea-f2d8ccc5bb2df25557cc0d4d23f2cdd029358274.tar.gz gitea-f2d8ccc5bb2df25557cc0d4d23f2cdd029358274.zip |
Get repo assignees and reviewers should ignore deactivated users (#30770)
If an user is deactivated, it should not be in the list of users who are
suggested to be assigned or review-requested.
old assignees or reviewers are not affected.
---
*Sponsored by Kithara Software GmbH*
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/api_repo_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration/api_repo_test.go b/tests/integration/api_repo_test.go index bc2720d51e..f33827e58b 100644 --- a/tests/integration/api_repo_test.go +++ b/tests/integration/api_repo_test.go @@ -684,7 +684,9 @@ func TestAPIRepoGetReviewers(t *testing.T) { resp := MakeRequest(t, req, http.StatusOK) var reviewers []*api.User DecodeJSON(t, resp, &reviewers) - assert.Len(t, reviewers, 4) + if assert.Len(t, reviewers, 3) { + assert.ElementsMatch(t, []int64{1, 4, 11}, []int64{reviewers[0].ID, reviewers[1].ID, reviewers[2].ID}) + } } func TestAPIRepoGetAssignees(t *testing.T) { |