Implement killSessions
command
#1552
Labels
code/feature
Some user-visible feature is not implemented yet
not ready
Issues that are not ready to be worked on; PRs that should skip CI
What should be done?
Use cases to consider
Please note! For testing, authentication must be enforced (e.g. through
--auth
flag in MongoDB), so different users have differentuid
s for sessions, and therefore testing is more accurate.This is not the full list of use cases, but list of scenarios that comes to the mind:
killSessions
for a non-existent sessionkillSessions
for a session of another user (not the currently authenticated user)killSessions
for an existing session of the current user and try to callkillSessions
/refreshSessions
/endSessions
for the same session again.lsid
of the killed session for a new operation.find
,getMore
, kill the current session, test what happens with the cursor (it will be closed)killSessions
for all possible states of a transactionThe text was updated successfully, but these errors were encountered: