Commit fd7caccb authored by Stan Hu's avatar Stan Hu

Merge branch '35238-flaky-spec-spec-requests-api-members_spec-rb-146' into 'master'

Resolve "Flaky spec: spec/requests/api/members_spec.rb:146"

Closes #35238

See merge request gitlab-org/gitlab!19355
parents 744e367f 4e9fdf4f
...@@ -151,9 +151,15 @@ describe API::Members do ...@@ -151,9 +151,15 @@ describe API::Members do
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
expect(response).to include_pagination_headers expect(response).to include_pagination_headers
expect(json_response).to be_an Array expect(json_response).to be_an Array
expect(json_response.map { |u| u['id'] }).to eq [developer.id, maintainer.id, nested_user.id, project_user.id, linked_group_user.id]
expect(json_response.map { |u| u['access_level'] }).to eq [Gitlab::Access::DEVELOPER, Gitlab::Access::OWNER, Gitlab::Access::DEVELOPER, expected_users_and_access_levels = [
Gitlab::Access::DEVELOPER, Gitlab::Access::DEVELOPER] [developer.id, Gitlab::Access::DEVELOPER],
[maintainer.id, Gitlab::Access::OWNER],
[nested_user.id, Gitlab::Access::DEVELOPER],
[project_user.id, Gitlab::Access::DEVELOPER],
[linked_group_user.id, Gitlab::Access::DEVELOPER]
]
expect(json_response.map { |u| [u['id'], u['access_level']] }).to match_array(expected_users_and_access_levels)
end end
it 'finds all group members including inherited members' do it 'finds all group members including inherited members' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment