Bernie Hackett
74c94a4f14
Fix pooling tests to use imported host and port.
2013-10-10 16:09:55 -07:00
behackett
cc942556b5
Better handling of corrupt/invalid BSON PYTHON-571
2013-10-10 12:58:27 -07:00
A. Jesse Jiryu Davis
db25c61156
Test refactoring: get_pool() and pools_from_rs_client().
...
Conflicts:
test/test_replica_set_client.py
2013-10-10 15:32:02 -04:00
A. Jesse Jiryu Davis
a633a4111d
Test that Pool releases its semaphore after connection error. PYTHON-580
2013-10-10 15:21:19 -04:00
A. Jesse Jiryu Davis
ee67111dc1
Test that RS client accepts waitQueueTimeoutMS and waitQueueMultiple. PYTHON-579
2013-10-10 15:20:26 -04:00
A. Jesse Jiryu Davis
7d0240a88a
Test Pool(use_greenlets=True) when Gevent is not installed. PYTHON-561
2013-10-10 15:14:17 -04:00
Bernie Hackett
acb30ec029
Fix tests that were failing with unstable MongoDB.
2013-09-06 12:16:17 -04:00
A. Jesse Jiryu Davis
4868ebd278
Test max_pool_size=None. PYTHON-566
...
Reproduces TypeError in Python 3 when max_pool_size is None.
2013-09-05 21:32:47 -04:00
A. Jesse Jiryu Davis
d133396162
Revert "Capture all BSON decode errors and wrap with InvalidBSON. PYTHON-494"
...
This reverts commit ba66a2dde7 .
2013-08-17 22:35:17 -04:00
Bernie Hackett
9d9ac1c1da
Fix various tests for mongos and old mongo versions.
2013-08-16 18:58:04 -07:00
behackett
334ea50af7
Fix add_option/remove_option issues PYTHON-546
2013-08-16 14:16:29 -07:00
A. Jesse Jiryu Davis
5eb13b26fa
Avoid ResourceWarnings in Python 3.
2013-08-16 16:43:22 -04:00
A. Jesse Jiryu Davis
280a7fc390
Test GreenletIdent with Gevent enhanced Greenlets.
2013-08-16 16:18:50 -04:00
A. Jesse Jiryu Davis
804b90a163
Style.
2013-08-16 16:18:50 -04: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
9de93d9a29
Change default for Connection and RSC, fix bugs when max_pool_size=None. PYTHON-436
2013-08-16 10:04:57 -04:00
A. Jesse Jiryu Davis
5a88c6c2f4
Update docs for new pool options. PYTHON-436
2013-08-16 09:43:50 -04:00
A. Jesse Jiryu Davis
77f876b767
Bump MongoReplicaSetClient's default max_pool_size from 10 to 100. PYTHON-436
2013-08-15 13:53:29 -04:00
A. Jesse Jiryu Davis
77e769d75a
Style.
2013-08-15 12:58:14 -04:00
A. Jesse Jiryu Davis
7e43c499ed
Style.
2013-08-15 12:15:49 -04:00
A. Jesse Jiryu Davis
e18058c784
Fix comment.
2013-08-15 12:14:09 -04:00
A. Jesse Jiryu Davis
5cf33afdf9
Longer thread / greenlet join timeout in tests.
2013-08-15 10:22:24 -04:00
behackett
f29544bb4d
Ensure connection before we insert PYTHON-414
...
Inserts require that we know the max_bson_size
and max_message_size of the current primary or
master. We have to be connected to get those
values.
2013-08-14 13:24:20 -07:00
A. Jesse Jiryu Davis
ba66a2dde7
Capture all BSON decode errors and wrap with InvalidBSON. PYTHON-494
2013-08-14 11:50:36 -04:00
behackett
ad9228753e
Fix test_disconnected_init PYTHON-414
...
Trying to do an insert as the first operation
with a disconnected client instance will fail
since we haven't yet talked to a server to get
max bson and message size.
2013-08-13 12:03:49 -07:00
behackett
3afd684224
Automatically split batch inserts PYTHON-414
...
With this change PyMongo will automatically
split large batch inserts into multiple messages
based on client.max_message_size (the largest
message mongod/s will accept).
2013-08-13 10:53:02 -07:00
A. Jesse Jiryu Davis
55dd328df1
Redirect mongod's output to /dev/null, not a pipe.
2013-08-13 11:50:47 -04:00
Bernie Hackett
a864761ab3
Backward compat and style fixes in ha_tools.py
2013-08-13 08:32:44 -07:00
Tyler Jones
d20b388b49
Made ha_tools work with Py3
2013-08-13 08:13:13 -07:00
A. Jesse Jiryu Davis
1b455f226a
Support aggregation output as a cursor. PYTHON-542
2013-08-07 21:21:11 -04:00
A. Jesse Jiryu Davis
6974657a95
Remove ancient unused test code.
2013-08-06 13:03:55 -04:00
behackett
4d42258697
Support exhaust cursor flag PYTHON-265
2013-08-05 11:29:11 -07:00
behackett
2225032d84
Better MONGODB-X509 tests PYTHON-535
2013-07-25 16:36:58 -07:00
Bernie Hackett
9307c1d56c
Support MONGODB-X509 PYTHON-535
2013-07-25 16:02:07 -07:00
A. Jesse Jiryu Davis
64523c7ed5
Fix Pool's logic when request sockets are broken. PYTHON-537
2013-07-15 22:17:59 -04:00
A. Jesse Jiryu Davis
2f16045e78
Debugging test_fork_and_schedule_refresh.
2013-07-06 10:06:09 -04:00
A. Jesse Jiryu Davis
63a0a8eb99
Correct a comment.
2013-07-06 10:05:57 -04:00
A. Jesse Jiryu Davis
ef201b88e8
Dead code.
2013-07-05 22:13:16 -04:00
A. Jesse Jiryu Davis
9a5ded59e4
Raise InvalidOperation if monitor thread is dead.
2013-07-05 22:13:04 -04:00
A. Jesse Jiryu Davis
6a88ac727d
Test that schedule_refresh asserts if monitor thread is gone.
2013-07-05 19:23:43 -04:00
A. Jesse Jiryu Davis
8577ca1b23
insert(manipulate=False) should return None if doc has no _id. PYTHON-540
2013-07-05 16:09:52 -04:00
A. Jesse Jiryu Davis
b63ade396b
More reliably test text-search on secondaries. PYTHON-530
2013-06-29 21:28:34 -04:00
A. Jesse Jiryu Davis
50e04921fd
Test text-search on secondaries. PYTHON-530
2013-06-29 19:23:06 -04:00
A. Jesse Jiryu Davis
7b3b0ce2b2
Faster pool tests.
2013-06-29 14:52:33 -04:00
A. Jesse Jiryu Davis
75d0b85645
Add MongoClient.get_default_database(). PYTHON-461
2013-06-27 10:28:01 -07:00
behackett
56753b8a45
Fix test failure on OSX due to low ulimit.
2013-06-24 19:43:20 -07:00
A. Jesse Jiryu Davis
9713508b33
Verify RS client raises the right error if auth fails during lazy connection PYTHON-517
2013-06-22 10:04:16 -07:00
A. Jesse Jiryu Davis
36d58bcf6e
Raise OperationFailure, not AutoReconnect, if auth fails during lazy connection. PYTHON-517
2013-06-22 10:04:16 -07:00
behackett
c96998e9f0
Validate cache_for (and deprecated ttl) PYTHON-518
2013-06-21 09:07:56 -07:00
behackett
ae6aa79ae6
Support gssapiServiceName PYTHON-524
...
This also adds general support for authentication
mechanism specific options and validation.
2013-06-20 10:53:23 -07:00