[Test] ee/spec/lib/duo_pro/bulk_user_assignment_spec.rb | DuoPro::BulkUserAssignment#execute on self managed instances when the AddOn is purchased with enough seats returns success and failed assignments
Test metadata (don't modify)
Field |
Value |
File URL |
ee/spec/lib/duo_pro/bulk_user_assignment_spec.rb#L82 |
Filename |
ee/spec/lib/duo_pro/bulk_user_assignment_spec.rb |
Description |
DuoPro::BulkUserAssignment#execute on self managed instances when the AddOn is purchased with enough seats returns success and failed assignments |
Test level |
unit |
Hash |
8c6824155af7137ebba008e414a24d510f4d8a6ff |
Duration |
0.82 seconds |
Expected duration |
< 27.12 seconds |
Stack trace
Failure/Error:
expect(results[:failed_assignments]).to eq([
"Failed to assign seat to user: code_suggestions_blocked_user, Errors: [\"INVALID_USER_MEMBERSHIP\"]",
"Failed to assign seat to user: code_suggestions_banned_user, Errors: [\"INVALID_USER_MEMBERSHIP\"]",
"Failed to assign seat to user: code_suggestions_bot_user, Errors: [\"INVALID_USER_MEMBERSHIP\"]",
"Failed to assign seat to user: code_suggestions_ghost_user, Errors: [\"INVALID_USER_MEMBERSHIP\"]",
"User is not found: code_suggestions_not_found_username"
])
expected: ["Failed to assign seat to user: code_suggestions_blocked_user, Errors: [\"INVALID_USER_MEMBERSHIP\"]...r, Errors: [\"INVALID_USER_MEMBERSHIP\"]", "User is not found: code_suggestions_not_found_username"]
got: ["Failed to assign seat to user: code_suggestions_banned_user, Errors: [\"INVALID_USER_MEMBERSHIP\"]"...r, Errors: [\"INVALID_USER_MEMBERSHIP\"]", "User is not found: code_suggestions_not_found_username"]
(compared using ==)
Shared Example Group: "bulk user assignment with enough seats" called from ./ee/spec/lib/duo_pro/bulk_user_assignment_spec.rb:82
Reports (1)
- 2024-02-12: https://gitlab.com/gitlab-org/gitlab/-/jobs/6155858394 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1174086119)