Commit Graph

958 Commits

Author SHA1 Message Date
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
behackett
39943aa62a Support the SASL PLAIN mechanism PYTHON-519
This is initially for LDAP authentication support in
MongoDB 2.6 (forthcoming). Warning: the username and
password are sent over the wire in clear text per
RFC 4616. SSL with cert validation should be used in
conjunction with the PLAIN mechanism to encrypt the
channel.
2013-06-12 13:30:54 -07:00
A. Jesse Jiryu Davis
9103755d06 Better error message when C extension raises InvalidStringData, PYTHON-533 2013-06-06 13:33:48 -05:00
A. Jesse Jiryu Davis
0041d6bfe9 Clarify network_timeout and commands PYTHON-495 2013-06-03 23:47:18 -04:00
A. Jesse Jiryu Davis
842e675299 Fix null pointer when decoding invalid DBRef PYTHON-532 2013-06-03 15:51:43 -07:00
A. Jesse Jiryu Davis
519733457f Fix test_socket_reclamation in Gevent 1.0, PYTHON-521 2013-05-28 11:48:59 -04:00
A. Jesse Jiryu Davis
b51c38785a Merge pull request #184 from reversefold/PYTHON-436_reintegrate
Python 2.4 doesn't have ternary ifs :-(
2013-05-24 13:10:56 -07:00
Justin Patrin
2e2bb75626 Python 2.4 doesn't have ternary ifs :-( 2013-05-24 12:08:24 -07:00
A. Jesse Jiryu Davis
c7cde4fc33 Use gevent.sleep where appropriate in tests 2013-05-24 14:08:35 -04:00