Bernie Hackett
9d9ac1c1da
Fix various tests for mongos and old mongo versions.
2013-08-16 18:58:04 -07:00
Park Hyunwoo
baf53bee2d
Add optional parameter for pymongo.database.collection_names to ignore system collections
2013-08-16 09:47:21 -07:00
A. Jesse Jiryu Davis
0041d6bfe9
Clarify network_timeout and commands PYTHON-495
2013-06-03 23:47:18 -04:00
Bernie Hackett
1ed7718ad1
Don't mask authentication failure details.
...
These changes should make it easier to debug
kerberos configuration issues on the client
and server.
2013-03-22 07:56:15 -07:00
behackett
6a5a8b95ac
Support MongoDB 2.4 options in add_user.
2013-03-21 15:51:47 -07:00
A. Jesse Jiryu Davis
c758efcb34
Rename test_connection -> test_client, test_replica_set_connection -> test_replica_set_client PYTHON-451
2013-02-11 21:33:55 -05:00
A. Jesse Jiryu Davis
d35bec12e5
Tests use MongoClient instead of Connection PYTHON-451
2013-02-11 20:57:17 -05:00
A. Jesse Jiryu Davis
890fc929b0
Unused import
2013-02-09 09:57:28 -05:00
behackett
41254542d9
Auth refactor to prepare for PYTHON-465.
...
This also addresses PYTHON-464 and makes
logout sane.
2013-01-31 18:05:51 -08:00
behackett
118ab45001
Tests should clean up after themselves.
2013-01-23 13:10:54 -08:00
behackett
e52bf75bbf
Allow RO admin and RW non-admin users concurrently PYTHON-458
2013-01-22 17:12:16 -08:00
behackett
2b0c5e73ce
Fix $cmd queries with $readPreference PYTHON-446
2012-12-01 20:21:05 -08:00
Ross Lawley
29b9de45db
Added __ne__ for DBRefs PYTHON-440
2012-11-22 11:12:36 +00:00
Bernie Hackett
e0c373038e
Work around V8 issues in tests.
...
See SERVER-7705 for details.
2012-11-19 06:51:23 -08:00
Bernie Hackett
5319bcc83a
Skip tests that tickle a V8 bug in mongo nightly.
2012-11-16 16:53:46 -08:00
Ross Lawley
4a3279c10a
Add slow_ms as an option to set_profiling_level PYTHON-405
2012-10-25 13:36:50 +00:00
Ross Lawley
8637cfbe27
Adding first user from localhost works but raises OperationFailure - PYTHON-407
2012-10-05 15:04:56 +00:00
behackett
59439e02b8
Fix testing against mongos. PYTHON-373.
2012-07-13 10:38:04 -07:00
behackett
a33b0fce4d
Fix safe with auth for MongoDB >= 2.1.x PYTHON-371
...
The getLastError command requires authentication in
MongoDB 2.2. See the associated ticket for more
information.
2012-07-12 10:49:13 -07:00
behackett
0ee7170cc2
It's 2012...
2012-04-19 12:40:38 -07:00
Bernie Hackett
b3e7054107
Disallow NULL in database names PYTHON-342
2012-04-18 08:36:34 -07:00
behackett
12592be1fe
Python 3 unittest changes PYTHON-84.
2012-03-28 11:53:47 -07:00
behackett
2d21ba9376
Replace deprecated unittest assert method aliases.
...
assert_ -> assertTrue
assertEquals -> assertEqual
This is needed to clean up deprecation warnings
in python >= 3.2
2012-03-16 17:20:21 -07:00
Bernie Hackett
98a6b991c3
Fix or skip broken tests in Jython and PyPy.
...
See comments in the commit for details.
2012-03-15 21:49:39 -07:00
A. Jesse Jiryu Davis
98ac3d364b
Fix bug: database authenticate() always ended request. Code and commentary cleanup. PYTHON-287 PYTHON-296
2012-03-14 17:12:12 -04:00
A. Jesse Jiryu Davis
95974a2595
Broken imports, better commentary on skipped test
2012-02-08 18:21:26 -08:00
A. Jesse Jiryu Davis
fa296b1711
Style fixes and import cleanups
2012-02-08 18:21:26 -08:00
A. Jesse Jiryu Davis
9a05f49e2c
Check more reliably if server has auth enabled before running authentication tests
2012-02-08 18:21:26 -08:00
A. Jesse Jiryu Davis
b6fe9349c2
Clean up imports
2012-02-08 18:21:26 -08:00
A. Jesse Jiryu Davis
20286841ae
Only skip test_profiling_info if server was started with --auth
2012-02-08 18:21:26 -08:00
A. Jesse Jiryu Davis
2ef3059ad3
Skip test_profiling_info until SERVER-4754 is fixed
2012-02-08 18:21:26 -08:00
Ross Lawley
ef67b40fae
Added read_only support to add_user
...
PYTHON-312
2012-01-25 16:12:18 -08:00
A. Jesse Jiryu Davis
91d17eed98
PEP8 style compliance in unittesting code
2011-11-23 13:56:55 -05:00
behackett
e8e1913dea
Fix db.profiling_info test for > 1.9.0
2011-05-31 11:00:24 -07:00
Bernie Hackett
d6f0830e9a
Add dict style SystemJS item access PYTHON-190
2011-05-30 10:05:17 -07:00
behackett
deabf0688e
Database SON manipulator properties PYTHON-150
...
This change adds properties to database.Database
to list the class names of installed SON manipulators
including duplicates.
2011-05-29 18:18:07 -07:00
behackett
3609620d74
More work on Database.validate_collection
...
Added scandata as a keyword parameter before
the full parameter.
validate_collection works with sharding in
MongoDB versions before 1.9 now.
2011-05-04 17:16:05 -07:00
behackett
b18a31038d
Change validate_collection for MongoDB 1.9
...
Database.validate_collection now returns a dict
instead of a string. This change is required due
to API changes in MongoDB 1.9.
2011-04-28 11:25:58 -07:00
behackett
2ed05bec70
PEP8 cleanups.
2011-04-06 14:57:17 -07:00
behackett
dbff6680be
Add a unit test for PYTHON-227
2011-03-31 18:01:27 -07:00
behackett
ca02c09c33
Fix unittests broken due to server side changes.
2011-02-22 15:38:38 -08:00
Mike Dirolf
b0f9875c36
stop using InvalidName in bson package (replace with InvalidDocument)
2010-09-14 13:55:41 -04:00
Mike Dirolf
9c182809f3
Create a separate bson package PYTHON-60
...
Many of the pymongo modules have been moved into the bson
package. Aliases for those modules have been added to the pymongo
package, without deprecation warnings for now. Application developers
should begin to use the bson namespace, as deprecation of moved
modules will probably begin in the next release.
2010-09-14 13:52:50 -04:00
Mike Dirolf
bdc611e280
add list() to db.system_js helper PYTHON-151
2010-08-18 11:04:33 -04:00
jbergstroem
ec22172030
s/failIf/assertFalse
2010-08-11 03:44:06 +08:00
Mike Dirolf
2d8c93940f
Adding a drop() helper on Collection instances PYTHON-126
2010-06-28 17:55:51 -04:00
Mike Dirolf
cf46feb79e
timestamps need to use unsigned in bson encoder/decoder
2010-06-04 12:50:22 -04:00
Mike Dirolf
86a3b2ab5a
clean up command response checking
2010-06-04 12:16:08 -04:00
Mike Dirolf
a8ef8fc2af
accept any type for remove by _id, not just ObjectId
2010-05-24 10:51:55 -04:00
Mike Dirolf
b989e3e34d
improvements to the db.command api
2010-03-19 16:17:59 -04:00