diff options
Diffstat (limited to 'jstests/core/rename_collection_system_db.js')
| -rw-r--r-- | jstests/core/rename_collection_system_db.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/jstests/core/rename_collection_system_db.js b/jstests/core/rename_collection_system_db.js index 8d46ad27a04..e9e166914c0 100644 --- a/jstests/core/rename_collection_system_db.js +++ b/jstests/core/rename_collection_system_db.js @@ -16,10 +16,9 @@ systemUsers.drop(); coll.drop(); coll.insert({}); -// system.foo isn't in the allowlist so it can't be renamed to or from +// system.foo and system.users aren't in the allowlist so they can't be renamed to or from assert.commandFailed(coll.renameCollection(systemFoo.getName())); assert.commandFailed(systemFoo.renameCollection(coll.getName())); -// system.users is allowlisted so these should work -assert.commandWorked(coll.renameCollection(systemUsers.getName())); -assert.commandWorked(systemUsers.renameCollection(coll.getName())); +assert.commandFailed(coll.renameCollection(systemUsers.getName())); +assert.commandFailed(systemUsers.renameCollection(coll.getName())); |
