Skip to content

Failure in ee/spec/finders/security/approval_groups_finder_spec.rb | Security::ApprovalGroupsFinder#execute with inaccessible groups excluded authorization excludes groups the user lacks access to

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Test metadata (don't modify)

Field Value
File URL ee/spec/finders/security/approval_groups_finder_spec.rb#L81
Filename ee/spec/finders/security/approval_groups_finder_spec.rb
Description Security::ApprovalGroupsFinder#execute with inaccessible groups excluded authorization excludes groups the user lacks access to
Test level unit
Hash d8b1b9dea2baa90e79d70f0ad61a17cc7995dca26
Duration 1.7 seconds
Expected duration < 45.4 seconds

Stack trace

Failure/Error: expect(subject).to contain_exactly(group_b)

  expected collection contained:  [#<Group id:2698 @group672/group-dolores>]
  actual collection contained:    [#<Group id:2696 @group671/group-dolores>, #<Group id:2698 @group672/group-dolores>]
  the extra elements were:        [#<Group id:2696 @group671/group-dolores>]

Reports (2)

  1. 2023-12-15: https://gitlab.com/gitlab-org/gitlab/-/jobs/5757523348 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1107745779)
  2. 2023-12-15: https://gitlab.com/gitlab-org/gitlab/-/jobs/5758090783 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1107848052)
Edited by 🤖 GitLab Bot 🤖