Luke Lovett
5136bb723c
PYTHON-707 Add a BSONInt64 type.
2014-07-18 14:59:21 +00:00
A. Jesse Jiryu Davis
55f18f0937
SocketInfo's 'host' parameter is no longer optional.
2014-07-17 15:26:58 -04:00
A. Jesse Jiryu Davis
118b47e6e3
Unused imports.
2014-07-17 15:23:40 -04:00
A. Jesse Jiryu Davis
ccb79b1cda
PYTHON-726 Document how to run tests with Gevent.
2014-07-17 15:13:33 -04:00
A. Jesse Jiryu Davis
403b93eb84
PYTHON-726 Fix tests to run with Gevent's monkey-patching.
...
Gevent and multiprocessing work poorly together, so don't use
multiprocessing in test_objectid. Additionally, Gevent 0.13.8
deadlocks with more than about 40 concurrent greenlets on Mac,
so reduce the concurrency to about 20. test_interrupt_signal
still fails with 0.13.8, but others pass, and *all* tests pass
with Gevent 1.0.1:
python -m gevent.monkey setup.py test
2014-07-17 15:13:22 -04:00
A. Jesse Jiryu Davis
1bfac99f08
PYTHON-724 Remove Gevent-specific code.
...
PyMongo 2.x has Gevent-specific code to support Gevent with or without
patch_thread. However, patch_socket is always required with Gevent.
In PyMongo 3, we remove all Gevent-specific code and rely on Gevent's
patch_all.
Remove the "use_greenlets" option and attribute for MongoClient and
MongoReplicaSetClient.
2014-07-17 15:09:46 -04:00
A. Jesse Jiryu Davis
2177256da0
Fix intermittent failure in test_exhaust_network_error.
2014-07-17 14:08:43 -04:00
A. Jesse Jiryu Davis
648301e082
PYTHON-724 Fix test_pooling for PyPy.
...
Coding mistakes introduced in 5ce1dd.
2014-07-17 14:03:45 -04:00
A. Jesse Jiryu Davis
7cd1662ba5
Unused import.
2014-07-15 18:24:51 -04:00
A. Jesse Jiryu Davis
be5b4aeff9
PYTHON-724 Remove greenlet- and gevent-specific client tests.
2014-07-15 18:24:51 -04:00
A. Jesse Jiryu Davis
4ab4a979f8
PYTHON-724 Remove use_greenlets from high-availability tests.
2014-07-15 18:24:51 -04:00
A. Jesse Jiryu Davis
5ce1ddfcce
PYTHON-724 Remove greenlet- and gevent-specific pool tests.
2014-07-15 18:24:50 -04:00
Luke Lovett
8c5a21a70f
Skip test_exhuast_network_error when connected to a mongos, since mongos doesn't support exhaust cursors.
2014-07-15 21:26:45 +00:00
A. Jesse Jiryu Davis
ac437f5feb
PYTHON-724 Explain changes in PyMongo 3.0's Gevent support.
2014-07-15 17:04:57 -04:00
A. Jesse Jiryu Davis
b57a2d2036
PYTHON-724 Remove use_greenlets from docs and comments.
2014-07-15 16:37:52 -04:00
A. Jesse Jiryu Davis
622e9e7d45
Redundant imports.
2014-07-15 16:18:18 -04:00
A. Jesse Jiryu Davis
ae984f7a84
PYTHON-732 Test network error during authentication.
...
As hoped, rewriting the error-handling code to use context managers
(PYTHON-722) has already fixed PYTHON-732 in the 3.0-dev branch.
2014-07-15 16:11:44 -04:00
A. Jesse Jiryu Davis
6f129dea13
Don't test MongoClientNew with auth until it supports auth.
2014-07-15 16:06:56 -04:00
A. Jesse Jiryu Davis
94b73af1af
PYTHON-715 Fix ipv6 tests for restricted localhost exception.
...
IPv6 clients must be authenticated to use MongoDB 2.7.1+,
even over the localhost interface.
2014-07-15 16:06:07 -04:00
Luke Lovett
f22ff8ca68
PYTHON-679 add 'socketKeepAlive' option to MongoClient and MongoReplicaSetClient.
2014-07-15 01:09:57 +00:00
A. Jesse Jiryu Davis
96184d05d8
Fix ResourceWarning in test_dead_request_socket_with_max_size.
2014-07-14 16:16:53 -04:00
A. Jesse Jiryu Davis
f10f7f91a5
PYTHON-722 Use SocketInfo in a with-statement.
...
SocketInfo is now responsible for sending and receiving messages,
for closing itself on error, and for returning itself to the pool
when its with-statement is exited.
Pool.discard_socket is removed. Returning a closed socket to the
pool has the same effect as discard_socket had.
Remove client._exhaust_next.
2014-07-14 16:11:35 -04:00
A. Jesse Jiryu Davis
6f5b61cf81
More robust stepdown testing.
...
A 2.6 primary may not be ready to step down immediately after the RS
is initialized: "no secondaries within 10 seconds of optime". Keep
trying for a while.
2014-07-14 16:09:34 -04:00
A. Jesse Jiryu Davis
f615983bec
Fix test.utils.read_from_which_host for the new read preferences.
2014-07-14 16:09:34 -04:00
Bernie Hackett
d408d1101d
PYTHON-730 - Add a validate option to uri_parser
2014-07-11 15:23:25 -07:00
Bernie Hackett
709601f022
Clean up SSL support.
2014-07-09 07:22:54 -07:00
Luke Lovett
75395df8db
connection_string() helper should use given seed list even without auth enabled.
2014-07-07 21:53:18 +00:00
Luke Lovett
d7ec3a7704
PYTHON-715 Fix tests for MongoDB >= 2.7.1 when running with auth enabled.
2014-07-07 19:05:21 +00:00
Bernie Hackett
c2e6471ee6
PYTHON-727 - Implement and use PoolOptions class
2014-07-03 14:10:37 -07:00
A. Jesse Jiryu Davis
698ddd88c5
Add docstrings in Cluster and related classes.
2014-07-03 14:17:46 -04:00
A. Jesse Jiryu Davis
b32d2f1019
Skip MongoClientNew tests when necessary.
2014-07-02 17:28:53 -04:00
Bernie Hackett
3383d38342
Minor cluster update optimization.
2014-07-02 14:01:20 -07:00
Bernie Hackett
af58f9e9e7
Another fix for test_client_new.
2014-07-02 13:24:56 -07:00
Bernie Hackett
4120399a11
Fix test_client_new for standalone and mongos.
2014-07-02 12:56:09 -07:00
Bernie Hackett
6e3da18114
PYTHON-525 - Cluster monitoring python 3 support.
2014-07-02 11:51:34 -07:00
Bernie Hackett
fcba34b50c
PYTHON-525 - Add required properties to MongoClientNew
2014-07-02 11:50:16 -07:00
A. Jesse Jiryu Davis
d79ab6eb5e
PYTHON-525 Implement Cluster, Server, and Monitor.
...
This is prelude to a unified MongoClient class to replace the current
MongoClient and MongoReplicaSetClient. Conforms to the Cluster Monitoring Spec.
2014-07-01 22:53:24 -04:00
Luke Lovett
4fa96c6c2e
PYTHON-683 Separate unit tests and integration tests in the pymongo test suite.
...
Raise SkipTest in tests that require a connection to MongoDB when none is available.
2014-06-30 17:42:29 +00:00
A. Jesse Jiryu Davis
ea74333b01
Spelling.
2014-06-28 12:37:03 -07:00
Bernie Hackett
81dc7e41d2
Fix read preference tests.
2014-06-27 19:25:49 -07:00
Bernie Hackett
be35ff71a2
PYTHON-719 Read preference backward compatibility
...
This commit does a few things:
- Adds tag_sets back (deprecated)
- Adds secondary_acceptable_latency_ms back (deprecated)
- Makes acceptable latency a per read preference setting
- Cleans up read preference instance generation
- Adds latencyThresholdMS as an alias for secondaryAcceptableLatencyMS.
The name may change before 3.0 is released.
2014-06-27 15:05:20 -07:00
Bernie Hackett
665440be62
Make gridfs tests pass regardless of execution order.
2014-06-27 12:41:18 -07:00
Bernie Hackett
92e7eea8de
Fix an issue with mongos read preferences.
2014-06-25 17:42:27 -07:00
Bernie Hackett
80a789e167
PYTHON-718 - Use SSLContext when available.
...
This commit also introduces a fake SSLContext class
for use in python versions that don't provide one.
2014-06-25 16:09:55 -07:00
Bernie Hackett
6caa320d47
PYTHON-717 - Implement MongoCredential
2014-06-25 15:25:03 -07:00
Luke Lovett
77457f0795
PYTHON-714 Work around localhost exception issues in add_user when connected to MongoDB >= 2.7.1.
2014-06-25 21:26:29 +00:00
Bernie Hackett
e94a6405da
Fix tests under pypy3.
2014-06-21 22:49:05 -07:00
A. Jesse Jiryu Davis
ac512ce170
PYTHON-709 insert _id in document after applying non-copying SONManipulators.
2014-06-19 14:51:09 -04:00
A. Jesse Jiryu Davis
468bec6c32
Revert "PYTHON-710, simplify SON's equality operator."
...
This reverts commit 551e1e3edf .
The change did not work as expected in Jython.
2014-06-19 14:11:45 -04:00
A. Jesse Jiryu Davis
825f779a1a
Use modern 'distinct' syntax in tests.
...
The old syntax is now an error:
https://jira.mongodb.org/browse/SERVER-12642
2014-06-18 20:35:49 -04:00