Skip to content
Snippets Groups Projects
Verified Commit c344befc authored by Smriti Garg's avatar Smriti Garg :speech_balloon: Committed by GitLab
Browse files

Merge branch 'smriti_avoid_calling_activity_manager_users_spec' into 'master'

ActivityService should not be called during password update spec

See merge request gitlab-org/gitlab!154343



Merged-by: default avatarSmriti Garg <sgarg@gitlab.com>
Approved-by: default avatarManoj M J <mmj@gitlab.com>
Reviewed-by: default avatarManoj M J <mmj@gitlab.com>
Reviewed-by: default avatarAbdul Wadood <awadood@gitlab.com>
parents e2471a20 d3a31a2d
No related branches found
No related tags found
2 merge requests!162233Draft: Script to update Topology Service Gem,!154343ActivityService should not be called during password update spec
Pipeline #1308770560 failed
......@@ -1613,6 +1613,16 @@ def update_password(user, admin, password = User.random_password)
end
context 'admin updates their own password' do
# `Users::ActivityService` should not be allowed to execute
# as the same fails on update user_details
# This prevents a failure we saw in
# https://gitlab.com/gitlab-org/quality/engineering-productivity/master-broken-incidents/-/issues/6616
before do
allow_next_instance_of(Users::ActivityService) do |service|
allow(service).to receive(:execute).and_return(true)
end
end
it 'does not force reset on next login' do
update_password(admin, admin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment