Failure in rspec ./spec/requests/api/users_spec.rb:470 # API::Users GET /users when authenticated and ldap is enabled returns non-ldap user
Job #571601294 failed for 7180b0ab:
1) API::Users GET /users when authenticated and ldap is enabled returns non-ldap user
Failure/Error: expect(json_response.first["username"]).to eq user.username
expected: "user.with.dot"
got: "user24"
(compared using ==)
# ./vendor/ruby/2.6.0/gems/rspec-support-3.9.2/lib/rspec/support.rb:97:in `block in <module:Support>'
# ./vendor/ruby/2.6.0/gems/rspec-support-3.9.2/lib/rspec/support.rb:106:in `notify_failure'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:38:in `handle_failure'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:27:in `with_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/expectation_target.rb:65:in `to'
# ./spec/requests/api/users_spec.rb:477:in `block (4 levels) in <top (required)>'
Failed in https://gitlab.com/gitlab-org/gitlab/-/jobs/572008227 with:
1) API::Users GET /users when authenticated and ldap is enabled returns non-ldap user
Failure/Error:
expect(json_response.map { |u| u['username'] })
.not_to include(ldap_user.username)
expected ["user24", "user.with.dot", "user1"] not to include "user24"
# ./vendor/ruby/2.6.0/gems/rspec-support-3.9.2/lib/rspec/support.rb:97:in `block in <module:Support>'
# ./vendor/ruby/2.6.0/gems/rspec-support-3.9.2/lib/rspec/support.rb:106:in `notify_failure'
Edited by Kyle Wiebers