[SERVER-4254] benchRun doesn't work with authentication enabled Created: 11/Nov/11  Updated: 11/Jul/16  Resolved: 10/Jul/12

Status: Closed
Project: Core Server
Component/s: Security, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Bug Priority: Minor - P4
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-4237 Enable the full js test suite to run ... Closed
Related
is related to SERVER-6388 Make tests that use benchRun work whe... Closed
Operating System: ALL
Participants:

 Description   

mongo
MongoDB shell version: 2.0.1
connecting to: test
test[19:37:37]> db.foo.count()
Thu Nov 10 19:37:41 uncaught exception: count failed: {
"assertion" : "unauthorized db:test lock type:-1 client:127.0.0.1",
"assertionCode" : 10057,
"errmsg" : "db assertion failure",
"ok" : 0
}
test[19:37:41]> db.auth('spencer','password')
1
test[19:37:51]> db.foo.count()
10001
test[19:37:55]> benchRun({ops:[{op:"findOne", ns:'test' + ".$cmd", query:{dbstats:1}}], host:db.getMongo().host, parallel:2, seconds:2});
Thu Nov 10 19:38:04 Error: invalid parameter: expected an object () (anon):1



 Comments   
Comment by auto [ 10/Jul/12 ]

Author:

{u'date': u'2012-07-09T17:56:26-07:00', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: Don't run tests with auth that we know will fail. SERVER-4254 SERVER-6327 SERVER-6368 SERVER-4237
Branch: master
https://github.com/mongodb/mongo/commit/781f22c175e41e30ff217aa87fe93f4c478ede38

Comment by Spencer Brody (Inactive) [ 10/Jul/12 ]

jstests/sharding/parallel.js is failing when run with authentication.

Comment by Spencer Brody (Inactive) [ 05/Dec/11 ]

https://github.com/mongodb/mongo/commit/6865f14009fc894152b3e58201f1d2292c6cb7db

Comment by Eliot Horowitz (Inactive) [ 11/Nov/11 ]

We should add username and password options to benchRun

Generated at Thu Feb 08 03:05:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.