Commit Graph

886 Commits

Author SHA1 Message Date
A. Jesse Jiryu Davis
a060c15ef8 Fix null pointer when decoding invalid DBRef PYTHON-532 2013-05-31 10:17:46 -04:00
A. Jesse Jiryu Davis
7667c10ded MongoClient respects _connect=False even with auth PYTHON-516 2013-05-10 14:32:17 -04:00
A. Jesse Jiryu Davis
81b6e1fa3a Add _connect option to MongoReplicaSetClient PYTHON-516 2013-05-10 14:31:50 -04:00
A. Jesse Jiryu Davis
142db6e6fc Avoid timeout in test_auth_during_failover 2013-05-09 15:50:55 -04:00
A. Jesse Jiryu Davis
9a0006ebe9 Only kill mongos instances once in ha_tools 2013-05-09 15:50:27 -04:00
A. Jesse Jiryu Davis
be57168ead More debug output in ha_tools 2013-05-09 15:50:04 -04:00
Ross Lawley
02b318f9f2 Merge branch 'pull-179' 2013-05-08 13:34:04 +00:00
Ross Lawley
3f5cb6ff28 Fix cursor cloning issue with deepcopy and regex #179 2013-05-08 13:31:38 +00:00
A. Jesse Jiryu Davis
17655f936a More reliable test_max_pool_size_with_redundant_request. 2013-05-06 12:37:58 -04:00
behackett
f6fff22ca2 Index test reliability on Windows. 2013-05-02 17:14:49 -07:00
behackett
69565d2dce Make test more reliable on slow machines PYTHON-467 2013-05-02 13:56:47 -07:00
A. Jesse Jiryu Davis
198dd246a9 Fix test_repr for MongoReplicaSetClient in Jython 2013-05-01 18:15:15 -04:00
A. Jesse Jiryu Davis
78bcc97846 Handle unicode connection URIs in Python 2.4
Unicode MongoDB connection URIs, if they have options like "/?fsync=true", raised a TypeError in old Pythons.
2013-05-01 15:27:45 -04:00
A. Jesse Jiryu Davis
50d00ef8ce Remove test_fork's docstring 2013-05-01 14:14:21 -04:00
A. Jesse Jiryu Davis
922165dcc8 More reliable test_primary_stepdown 2013-05-01 14:14:21 -04:00
A. Jesse Jiryu Davis
460c8beb7a test_ha cleanup 2013-05-01 14:14:21 -04:00
A. Jesse Jiryu Davis
4630bace22 More debug output from ha_tools 2013-05-01 14:14:21 -04:00
A. Jesse Jiryu Davis
6c2e009f45 Fix MongoReplicaSetClient race conditions PYTHON-467
* RSState, Member, and MovingAverage are now immutable
* In refresh(), try up members before down ones
* A test_ha fixup (clear process-list after killing them in each test, so we don't re-kill previous tests' processes)
2013-05-01 14:14:20 -04:00
A. Jesse Jiryu Davis
55f1df7577 Spelling 2013-05-01 14:14:20 -04:00
A. Jesse Jiryu Davis
88d09e0a0b Don't run test_max_pool_size_with_leaked_request_massive with greenlets
Can restore once Gevent 1.0 lands, but 0.13.8 still deadlocks on this test on Mac; not PyMongo's bug.
2013-04-27 14:04:04 -04:00
behackett
40af3efed1 Raise DuplicateKeyError for commands PYTHON-507
Only when appropriate. The findAndModify command
can return duplicate key error when doing an upsert.
2013-04-26 10:44:17 -07:00
behackett
879318ee6c Fix test_safe_update for mongo 2.5 nightly. 2013-04-24 19:10:03 -07:00
behackett
176e39e74a Fix misc. $options issues in json_util PYTHON-510 2013-04-24 18:27:38 -07:00
A. Jesse Jiryu Davis
02bdbdf0de Hide slow unittests from Nose by default PYTHON-509 2013-04-24 20:55:43 -04:00
A. Jesse Jiryu Davis
9a2fe4981e Fix PYTHON-509, rare connection leaks in Python <= 2.7.0 2013-04-24 20:45:38 -04:00
A. Jesse Jiryu Davis
e56b08d43f Fix test_index_2dsphere for latest MongoDB
2.5 shows 'S2Cursor: BtreeCursor geo_2dsphere multi' in the explain output, not just 'S2Cursor'
2013-04-16 17:39:42 -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
346fa24c17 Fix a bug in and pep8ify test_auth.py 2013-03-21 16:59:15 -07:00
behackett
6a5a8b95ac Support MongoDB 2.4 options in add_user. 2013-03-21 15:51:47 -07:00
Ross Lawley
bc6368dafa Fixing write concern logic on a collection - PYTHON-474
Adding warnings in documentation about a change
in side effects when calling write_concern
2013-03-21 09:42:50 +00:00
Sam Helman
acb48295a5 Added full_response parameter to find_and_modify PYTHON-492 2013-03-19 14:48:52 -04:00
Ross Lawley
4b7cc70f7f Don't mask invalid hostname certificate errors. PYTHON-478 2013-02-28 10:50:54 +00:00
Bernie Hackett
9dc5e7a0fe Minor test fix for python 2.5. 2013-02-27 15:34:21 -08:00
Bernie Hackett
a59255ff63 Spelling. 2013-02-23 13:26:49 -08:00
behackett
40f241d2b4 Fix exception handling when ssl isn't available. 2013-02-22 12:58:35 -08:00
behackett
d2a286693e Add HASHED and GEOSPHERE index constants PYTHON-468 2013-02-22 12:43:48 -08:00
behackett
4976d28596 Skip text index test on mongos.
setParameter doesn't work through mongos so we
can't actually enable text search. SERVER-8660.
2013-02-21 16:15:50 -08:00
behackett
dd14d3544e Fix up SSL tests.
Tests shouldn't fail if python doesn't have an ssl
module. Other changes include:

- Document how to test all this (i.e. how to start the server for
  these tests to run)
- Don't do requirements testing in setUp since it's run before every
  method.
- Move the "no ssl module" test into it's own test class
2013-02-19 21:00:17 -08:00
A. Jesse Jiryu Davis
8536acb4a0 Standardize tests' handling of DB_IP and DB_PORT, fix PYTHON-475 2013-02-19 15:09:28 -05:00
Ross Lawley
48046b2efd SSL certificate verification PYTHON-466 2013-02-19 15:45:57 +00:00
behackett
f09e38879d MONGO-CR -> MONGODB-CR (spec change) 2013-02-15 16:06:38 -08:00
behackett
902c1d67ec Minor fixes to authentication tests. 2013-02-15 16:00:19 -08:00
behackett
774e08a465 Make test_legacy_connections work standalone. 2013-02-14 17:17:51 -08:00
behackett
8de9051228 Remove MongoAuthenticationMechanism PYTHON-465
The spec changed - MongoAuthenticationMechanism is
no longer required.
2013-02-12 14:30:11 -08:00
A. Jesse Jiryu Davis
d77e198668 Rename test_threads_replica_set_connection.py to test_threads_replica_set_client.py 2013-02-12 12:44:11 -05: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
94b08ab7c6 Rm obsolete test_paired.py PYTHON-451 2013-02-11 20:57:17 -05:00
A. Jesse Jiryu Davis
876f9146ea Dead code 2013-02-11 20:57:17 -05:00
A. Jesse Jiryu Davis
9260995ed3 test_ha uses MongoClient instead of Connection PYTHON-451 2013-02-11 20:57:17 -05:00
A. Jesse Jiryu Davis
d35bec12e5 Tests use MongoClient instead of Connection PYTHON-451 2013-02-11 20:57:17 -05:00