Bernie Hackett
749c1a2f0b
PYTHON-1467 - PyMongo no longer supports Python 2.6
2018-07-02 15:15:43 -07:00
Bernie Hackett
3733971e35
PYTHON-1456 - Use SSLContext.check_hostname with Python 3.7+
...
Continue using our bundled match_hostname otherwise.
2018-03-06 17:25:49 -08:00
Bernie Hackett
4fa72033dd
PYTHON-1488 - Fix auth tests for MongoDB 3.7
2018-02-26 15:32:55 -08:00
Bernie Hackett
507f954ed4
Update copyright dates
2017-12-01 17:23:39 -08:00
Bernie Hackett
cd97b5c5c0
PYTHON-1384 - Fix test_cert_ssl_validation_hostname_matching
2017-10-27 13:44:00 -07:00
Shane Harvey
3e778334e7
PYTHON-1299 Remove test logic for MongoDB <2.6.
2017-09-29 12:09:24 -07:00
A. Jesse Jiryu Davis
3cba982db9
PYTHON-1332 - Test lsid with all commands
2017-09-29 14:52:26 -04:00
A. Jesse Jiryu Davis
72e61277b2
Deprecate db.authenticate and db.eval
...
PYTHON-1313, and PYTHON-1315.
2017-08-01 16:30:42 -04:00
Bernie Hackett
b90295d806
PYTHON-1221 - Skip test_ipv6 with TLS and no ipaddress module
2017-02-17 13:55:50 -08:00
Bernie Hackett
9379a01277
PYTHON-1221 PYTHON-1208 - TLS test fixes
...
This change updates server.pem and crl.pem, and updates the test suite
expectations accordingly. It also works around the inability of python
2.6 to parse SANs properly.
2017-02-17 13:55:50 -08:00
Shane Harvey
92a9d401b7
PYTHON-1208 Disable test_cert_ssl_validation_hostname_matching
2017-02-17 13:55:50 -08:00
Bernie Hackett
1600059015
PYTHON-1184 - Don't require X.509 user with MongoDB 3.4
2016-11-16 14:31:14 -08:00
Shane Harvey
5905a86785
PYTHON-1075 Support running the entire test suite with SSL/TLS
...
SSL connections are configurable via the environment variables
"CLIENT_PEM", "CA_PEM", and "CERT_REQS".
2016-09-28 16:34:14 -07:00
Bernie Hackett
e89ba4bcd0
PYTHON-1026 - Remove test assumption about primary host
2016-09-21 11:15:43 -07:00
Bernie Hackett
29196b6566
PYTHON-1129 - Support IP addresses in match_hostname
2016-08-25 16:28:19 -07:00
Shane Harvey
d8ab05628c
PYTHON-1125 More helpful error message for invalid ssl_certfiles
2016-08-23 17:13:23 -07:00
Shane Harvey
b057cd47e8
PYTHON-1075 Support running the entire test suite with TLS
2016-08-02 17:15:02 -07:00
Bernie Hackett
53a7bea492
PYTHON-1022 - Drop support for Python 3.2
...
This change removes the u() helper from bson.py3compat
and all of its uses in the driver and tests. PyPy3 continues
to be supported since, even though it is based on python 3.2.5,
it has always supported the u string prefix.
The README and install docs are now explicit about PyPy(3) support.
2016-06-15 10:05:43 -07:00
Bernie Hackett
db1dea6f73
PYTHON-1042 - Support client certificate passphrase
2016-05-26 14:59:42 -07:00
Bernie Hackett
d7abe6e7be
PYTHON-1073 - Support certificate revocation lists
2016-05-24 11:47:49 -07:00
Bernie Hackett
87580b188b
PYTHON-934 - Add another simple URI test.
2015-06-15 13:18:58 -07:00
Bernie Hackett
16d22915ea
PYTHON-874 - Support wincertstore as ca_certs fallback on Windows.
2015-04-03 13:39:11 -07:00
Bernie Hackett
fbeca92430
PYTHON-874 - Support certifi as ca_certs fallback on old pythons.
2015-04-03 09:46:18 -07:00
Bernie Hackett
f42422a310
PYTHON-872 - Test ConfigurationError.
2015-04-01 15:43:39 -07:00
Bernie Hackett
5dca43758e
PYTHON-872 - Can't test loading system CA certs on Windows.
2015-04-01 15:43:39 -07:00
Bernie Hackett
330e6c8e04
PYTHON-872 - Add tests.
2015-04-01 15:43:39 -07:00
Bernie Hackett
d396068e6a
PYTHON-872 - Default to ssl.CERT_REQUIRED when ssl=True.
...
If ssl=True is passed as a keyword arg (or ssl=true in the URI)
but no value for ssl_cert_reqs or ssl_ca_certs has been provided,
assume ssl.CERT_REQUIRED for cert_reqs and attempt to load
system provided CA certificates. Raise ConfigurationError if
the necessary SSLContext methods don't exist.
2015-04-01 15:43:39 -07:00
Bernie Hackett
aec685b374
Fix up copyright dates.
2015-03-25 11:55:02 -07:00
Bernie Hackett
0b104af222
PYTHON-842 - SSL URI config support.
...
Credit for the ideas in this patch go to Len Buckens (buckensl)
from https://github.com/mongodb/mongo-python-driver/pull/253 .
2015-03-20 17:41:13 -07:00
aherlihy
70c06d11a9
PYTHON-813 Removed client_knobs where no longer needed
2015-03-11 13:03:59 -07:00
aherlihy
fa1466179f
PYTHON-813 Added support for serverSelectionTimeoutMS
2015-03-09 12:38:24 -07:00
Bernie Hackett
761c630d4d
PYTHON-834 - Add option to disable match_hostname.
2015-03-05 14:03:49 -08:00
Bernie Hackett
8f0bd0a6d4
PYTHON-850 - Change some uses of ConfigurationError to Type/ValueError.
2015-02-26 16:02:25 -08:00
Bernie Hackett
30af616009
PYTHON-821 - Migrate most tests to new the CRUD API.
2015-02-13 08:46:43 -08:00
A. Jesse Jiryu Davis
301bf8066c
Replace more tearDowns with addCleanup.
2015-01-26 16:38:16 -05:00
A. Jesse Jiryu Davis
5c1a31c1ae
Update test_cert_ssl_validation_hostname_fail for replica set in 3.0-dev.
2014-11-24 10:08:06 -05:00
A. Jesse Jiryu Davis
3c9fd60fed
PYTHON-525 Use MongoClient in replica set tests.
...
Connect the MongoClient to the replica set if one is running,
otherwise connect it to the standalone. Only continue to use
MongoReplicaSetClient when testing the specific behavior of
that deprecated class.
Also suppress some warnings when running tests, and better
determine whether to test IPv6.
2014-09-20 08:42:23 -04:00
A. Jesse Jiryu Davis
324d1de030
PYTHON-525 Update test_ssl for new MongoClient.
2014-09-03 17:38:30 -04:00
A. Jesse Jiryu Davis
20dd80e5f2
PYTHON-525 Skip SSL tests quickly if SSL is disabled.
...
Don't wait 5 seconds to determine that an SSL-enabled server is unavailable.
2014-09-03 17:32:24 -04:00
A. Jesse Jiryu Davis
2f9d24ade6
PYTHON-525 Reimplement MongoClient to use Cluster.
...
Replace MongoClient with an implementation that relies on Cluster and Server. The new MongoClient takes over MongoReplicaSetClient's responsibilities.
Authentication, secondary-pinning, and Mongos high-availability are broken and will be reimplemented in a future commit. RS tests are temporarily disabled.
2014-08-28 16:57:57 -04:00
A. Jesse Jiryu Davis
6bdce59b08
Allow certificate-validation tests to run.
2014-07-29 08:43:20 -04:00
Bernie Hackett
709601f022
Clean up SSL support.
2014-07-09 07:22:54 -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
Luke Lovett
26fb43cf78
PYTHON-681 Reuse MongoClient whenever possible in the tests
2014-05-21 20:41:18 +00:00
Luke Lovett
141200083e
PYTHON-680 Stop using nose in favor of pure unittest/unittest2
2014-04-25 22:57:33 +00:00
Luke Lovett
4d6d1e067b
PYTHON-676 python 2/3 single-source for the test module
2014-04-23 18:37:02 +00:00
Luke Lovett
9bb7b73390
added failure cases for x509 auth tests
2014-02-25 12:34:42 -08:00
A. Jesse Jiryu Davis
2fa1750b07
Update copyright notices and company name.
2014-01-31 09:36:46 -05:00
A. Jesse Jiryu Davis
349f4f08ea
MongoClient() should raise CertificateError when appropriate, not AutoReconnect.
2013-12-24 11:08:47 -06:00
A. Jesse Jiryu Davis
7075d4c7d1
Don’t always skip SSL cert tests.
2013-12-24 11:08:47 -06:00