Files
mongo/jstests/core/administrative/auth2.js
Joseph Prince d04dc10cac SERVER-82311 rename test tag
GitOrigin-RevId: 598fb15a21c0c4e53ef47a4b5c5dc6f5ae5fd5ed
2023-12-14 06:03:22 +00:00

17 lines
397 B
JavaScript

// just make sure logout doesn't break anything
//
// @tags: [
// # The test runs commands that are not allowed with security token: logout.
// not_allowed_with_signed_security_token,
// requires_auth,
// requires_non_retryable_commands
// ]
// SERVER-724
db.runCommand({logout: 1});
let x = db.runCommand({logout: 1});
assert.eq(1, x.ok, "A");
x = db.logout();
assert.eq(1, x.ok, "B");