diff options
Diffstat (limited to 'jstests/auth/system_buckets_invalid_nss.js')
| -rw-r--r-- | jstests/auth/system_buckets_invalid_nss.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/jstests/auth/system_buckets_invalid_nss.js b/jstests/auth/system_buckets_invalid_nss.js deleted file mode 100644 index dd182c48584..00000000000 --- a/jstests/auth/system_buckets_invalid_nss.js +++ /dev/null @@ -1,21 +0,0 @@ -// Validate that *.system.buckets.system.buckets.* is an invalid namespace - -(function() { -"use strict"; - -function runTest(conn) { - const admin = conn.getDB('admin'); - assert.commandWorked(admin.runCommand({createUser: 'admin', pwd: 'admin', roles: ['root']})); - - assert.commandFailedWithCode(admin.system.buckets.system.buckets.foo.insert({x: 1}), - [ErrorCodes.Unauthorized]); - - assert(admin.auth('admin', 'admin')); - assert.commandFailedWithCode(admin.system.buckets.system.buckets.foo.insert({x: 1}), - [ErrorCodes.InvalidNamespace]); -} - -const mongod = MongoRunner.runMongod({auth: ''}); -runTest(mongod); -MongoRunner.stopMongod(mongod); -}()); |
