Bernie Hackett
d32016274b
PYTHON-736 - Don't close sockets on OperationFailure
...
This also speeds up returning exhaust sockets to the pool
when the server returns an error and fixes the tests to
run against all MongoDB versions we test against.
2014-07-24 13:22:23 -07:00
A. Jesse Jiryu Davis
9ad421a58a
PYTHON-736 Fix exhaust cursor error-handling.
...
Connection-pool semaphore leak on server error when
creating or iterating an exhaust cursor.
2014-07-23 16:35:01 -07:00
A. Jesse Jiryu Davis
b293b7735b
import style
2014-07-15 11:08:43 -04:00
A. Jesse Jiryu Davis
e1a7bc5058
PYTHON-732 Handle network errors when adding existing credentials to sockets.
2014-07-15 09:34:23 -04:00
Bernie Hackett
952953d3a1
Fix tests under pypy3.
2014-06-21 22:44:33 -07:00
A. Jesse Jiryu Davis
e904f014d9
PYTHON-709 insert _id in document after applying non-copying SONManipulators.
2014-06-19 14:50:41 -04:00
A. Jesse Jiryu Davis
6c68762960
Use modern 'distinct' syntax in tests.
...
The old syntax is now an error:
https://jira.mongodb.org/browse/SERVER-12642
2014-06-18 20:34:45 -04:00
A. Jesse Jiryu Davis
91a56702cf
PYTHON-710 test that SON.to_dict doesn't change data.
2014-06-18 17:44:12 -04:00
A. Jesse Jiryu Davis
fb207af4cf
PYTHON-712 ObjectId.is_valid(None) should be False.
2014-06-18 16:19:58 -04:00
behackett
2dc840955a
PYTHON-705 - Fix Bulk API legacy upsert _id compatibility
...
Versions of MongoDB previous to 2.6 only return the upserted
field for an upsert operation if the _id value is an ObjectId.
This patch works around that issue to ensure nUpserted counts
are correct regardless of server version.
2014-06-06 15:37:31 -07:00
Bernie Hackett
47825d9d39
PYTHON-697 - Fix upsert _id backward compatibility
2014-05-20 11:28:06 -07:00
Bernie Hackett
f739025e0c
PYTHON-698 - Try encoding types with broken __getattr__ methods
2014-05-16 14:02:12 -07:00
Bernie Hackett
6991b73734
Fix a few tests for MongoDB 2.7.0
2014-05-12 14:07:25 -07:00
Bernie Hackett
04ff22e3c9
Various fixes for auth tests with old mongos versions.
2014-05-02 15:15:08 -07:00
Bernie Hackett
13cd9bee6f
Fix a few tests with really old mongos versions.
2014-05-01 19:20:33 -07:00
Bernie Hackett
348bd628aa
PYTHON-690 - Various fixes to indexing docstrings.
2014-05-01 09:59:09 -07:00
Bernie Hackett
9d47f1cd3d
PYTHON-691 - Fix UserWarning command issues.
...
Don't raise UserWarning for helpers and internal calls to
commands that do not obey read preference.
2014-05-01 09:21:52 -07:00
Bernie Hackett
d703ebb832
PYTHON-684 - Use unordered bulk for unordered test.
2014-04-29 13:44:51 -07:00
Bernie Hackett
f61b0e4f59
PYTHON-684 - Ignore wnote/jnote from legacy servers.
...
Stop unnecessarily raising OperationFailure in the Bulk API
when a pre-2.6 server returns a result with a wnote or jnote
field.
2014-04-29 11:41:35 -07:00
A. Jesse Jiryu Davis
bd334626ab
More lenient timeout in test_max_pool_size.
2014-04-03 12:10:42 -04:00
A. Jesse Jiryu Davis
9f7580fd61
More robust test_read_preference.
2014-04-03 09:45:54 -04:00
A. Jesse Jiryu Davis
cb101acb29
Fix race in test_request_during_failover.
2014-04-02 21:16:10 -04:00
A. Jesse Jiryu Davis
f6a0686583
Fix TestHealthMonitor.test_primary_stepdown.
2014-04-02 21:16:10 -04:00
Bernie Hackett
8054e95010
Fix auth test util.
2014-04-02 17:37:07 -07:00
A. Jesse Jiryu Davis
595c2752d6
Remove redundant Bulk API test.
2014-04-02 19:08:40 -04:00
A. Jesse Jiryu Davis
595a47f8c1
Fix --nojournal tests for MongoDB 2.6.
2014-04-02 19:08:40 -04:00
A. Jesse Jiryu Davis
4915a15218
Fix test_ship_of_theseus.
2014-04-02 17:17:16 -04:00
A. Jesse Jiryu Davis
d0fdb89875
Python 3 compatibility in test_multi_chunk_file
2014-04-01 17:03:14 -04:00
A. Jesse Jiryu Davis
974899f565
More efficient test_multi_chunk_file.
2014-04-01 16:19:35 -04:00
A. Jesse Jiryu Davis
85fe2d7353
Skip test_ident in Jython.
2014-04-01 16:18:36 -04:00
A. Jesse Jiryu Davis
f42d77a115
Skip test_use_greenlets_without_gevent on Jython.
2014-04-01 16:15:54 -04:00
A. Jesse Jiryu Davis
4b9f3ec285
More efficient test_large_limit.
2014-04-01 10:55:03 -04:00
A. Jesse Jiryu Davis
3a4d894afa
Lower default GridFS chunk size to 255k, PYTHON-661.
2014-03-24 16:37:10 -04:00
Bernie Hackett
cb4adb2193
Fix large update tests.
...
The server is less forgiving now. You can no
longer update a document to larger than 16MB.
2014-03-14 14:07:20 -07:00
A. Jesse Jiryu Davis
97be203bf9
Avoid "not master" error from update or remove with lazy-connecting MongoClient, PYTHON-653.
2014-03-12 14:44:28 -04:00
A. Jesse Jiryu Davis
4f230575a8
Verify that a lazily-connecting client raises OperationFailure if auth fails, PYTHON-517.
2014-03-12 14:42:35 -04:00
A. Jesse Jiryu Davis
3076a2113e
Race condition in GridFS test.
...
test_gridfs_secondary_lazy asserts that get_last_version on a secondary raises
NoFile. This fails if setUp()'s dropCollection command hasn't yet replicated:
there's still a file on the secondary.
2014-03-10 08:48:04 -04:00
A. Jesse Jiryu Davis
e4d9af2706
Fix test_write_concern_failure_ordered for 2.6.
2014-03-10 01:10:44 -04:00
A. Jesse Jiryu Davis
a85198be3b
Test that _id is generated on client for Bulk API insert.
2014-03-10 00:11:01 -04:00
A. Jesse Jiryu Davis
a6d11fcfd0
Bulk operations raise OperationFailure, not BulkWriteError, if write concern is invalid.
2014-03-10 00:09:59 -04:00
A. Jesse Jiryu Davis
1277fc9a36
Factor out oid_generated_on_client test utility.
2014-03-09 23:45:07 -04:00
Luke Lovett
da40fb0ddc
test interaction of w, j, and fsync options test for getLastErrorDefaults interaction
2014-03-09 18:22:45 -07:00
A. Jesse Jiryu Davis
c000f48cfd
Test parallel_scan more thoroughly, PYTHON-633.
2014-03-07 17:29:52 -05:00
A. Jesse Jiryu Davis
da3bb9fff1
More reliable test_multiple_error_unordered_batch.
2014-03-07 16:37:53 -05:00
A. Jesse Jiryu Davis
af446e43ff
Verify reporting of nModified from collection.update(), PYTHON-648.
2014-03-07 13:18:58 -05:00
A. Jesse Jiryu Davis
4b30644318
Omit nModified field from Bulk API results if legacy server, PYTHON-647.
2014-03-06 16:27:27 -05:00
A. Jesse Jiryu Davis
b06ec170bb
Style.
2014-03-06 15:32:06 -05:00
A. Jesse Jiryu Davis
64ee93183a
Additional Bulk API testing, PYTHON-630.
2014-03-06 15:08:30 -05:00
A. Jesse Jiryu Davis
47a851fe50
Skip test_max_time_ms_getmore on servers before 2.5.3.
2014-03-06 11:55:45 -05:00
A. Jesse Jiryu Davis
d0fca05fcf
Improved testing for max_time_ms, PYTHON-550.
2014-03-05 12:09:13 -05:00