diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-02-18 21:57:01 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-02-18 23:11:00 -0500 |
commit | 6718e33f5ecd0de4a8550afaf789c2fc416b6eee (patch) | |
tree | 64385a447c8792b16f6c190dd629afebd1ff0f4b /jstests/tool/dumprestore_auth2.js | |
parent | 9a9baaaf78677b939b8267d6e9266ec88c345b6b (diff) | |
download | mongo-6718e33f5ecd0de4a8550afaf789c2fc416b6eee.tar.gz |
SERVER:8412: re-write repairDatabase to use new constructs
to make clean, also fix Database::createColection
Diffstat (limited to 'jstests/tool/dumprestore_auth2.js')
-rw-r--r-- | jstests/tool/dumprestore_auth2.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/tool/dumprestore_auth2.js b/jstests/tool/dumprestore_auth2.js index 987ce0aa59f..bc684b7a030 100644 --- a/jstests/tool/dumprestore_auth2.js +++ b/jstests/tool/dumprestore_auth2.js @@ -11,7 +11,8 @@ db.createUser({user: 'user',pwd: 'password', roles: jsTest.basicUserRoles}); db.createRole({role: 'role', roles: [], privileges:[]}); assert.eq(1, db.system.users.count(), "setup") -assert.eq(2, db.system.indexes.count({ns: "admin.system.users"}), "setup2") +assert.eq(2, db.system.indexes.count({ns: "admin.system.users"}), + "setup2: " + tojson( db.system.users.getIndexes() ) ); assert.eq(1, db.system.roles.count(), "setup3") assert.eq(2, db.system.indexes.count({ns: "admin.system.roles"}), "setup4") assert.eq(1, db.system.version.count()); |