Commit Graph

121 Commits

Author SHA1 Message Date
Steven Silvester
b60d266ad7
PYTHON-3898 Add coverage to all variants (#2705) 2026-02-17 12:23:34 -06:00
Noah Stapp
11d3488026
PYTHON-5415 - Unskip tests that rely on server hostname (#2398) 2025-07-07 09:59:48 -04:00
Shane Harvey
c16ef0a13e
PYTHON-5414 Add test for hostname verification error message regression (#2385) 2025-06-13 11:45:47 -07:00
Iris
c3e3373df2
PYTHON-5309 Ensure AsyncMongoClient doesn't use PyOpenSSL (#2286)
Co-authored-by: Noah Stapp <noah@noahstapp.com>
2025-04-24 16:19:09 -07:00
Steven Silvester
42cb70e9ab
PYTHON-5341 Fix handling of SSL tests with Stable API (#2305) 2025-04-23 14:43:49 -05:00
Noah Stapp
34ca759f85
PYTHON-5113 - Refactor test utils for async (#2149) 2025-03-12 12:59:56 -04:00
Noah Stapp
554e1fddb8
PYTHON-5106 - Convert test.test_ssl to async (#2125) 2025-02-04 09:43:35 -05:00
Noah Stapp
a1ade45dd3
PYTHON-4881 - Use OvertCommandListener wherever sensitive events are not needed (#1943)
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
2024-10-18 13:32:09 -04:00
Noah Stapp
739510214b
PYTHON-4731 - Explicitly close all MongoClients opened during tests (#1855) 2024-09-17 09:22:17 -04:00
Noah Stapp
d0193eb045
PYTHON-4533 - Convert test/test_client.py to async (#1730) 2024-07-10 13:15:13 -07:00
Noah Stapp
ffa6555485
PYTHON-4476 Separate data and IO classes more effectively (#1678) 2024-06-26 10:12:39 -07:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta (#1629) 2024-06-06 09:01:24 -07:00
Steven Silvester
923c8a5abe
PYTHON-4024 Use ruff formatter (#1419) 2023-11-02 12:46:40 -05:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff (#1399) 2023-10-19 11:56:22 -05:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 (#1196)
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
Shane Harvey
2cc8fb1f2e
PYTHON-3672 Increase server selection timeout in more tests (#1192) 2023-04-14 15:35:20 -07:00
Shane Harvey
78476d0217
PYTHON-3187 Avoid tight poll() loop on pyopenssl connections (#953) 2022-05-26 15:14:59 -07:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting (#868) 2022-02-17 06:44:08 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter (#852) 2022-02-09 06:44:28 -06:00
Steven Silvester
f4cef37328
PYTHON-3064 Add typings to test package (#844) 2022-02-07 19:33:41 -06:00
Julius Park
42324c69cf
PYTHON-2973 Revert back to using quote_plus/unquote_plus (#767) 2021-10-29 16:30:55 -07:00
Julius Park
11e6f9860a
PYTHON-1579 Update URI parser to adhere to new connection string spec (#755) 2021-10-20 13:39:32 -07:00
Shane Harvey
df6f6496a4
PYTHON-2927 PYTHON-2937 Skip failing tests on PyPy (#753)
Cleanup test clients more eagerly.
2021-10-13 10:29:38 -07:00
Shane Harvey
11752ed594
PYTHON-2899 Remove code for MongoDB <= 3.4 (#729)
Remove unneeded memoryview to bytes conversion.
2021-09-16 16:53:50 -07:00
Bernie Hackett
ad4315134c PYTHON-2803 Get rid of most uses of 'master'
This change also resolves PYTHON-2848 for MongoDB 4.0.
2021-09-13 12:50:49 -07:00
Shane Harvey
2eb0df812c
PYTHON-2879 Fix get_ssl_context for CSFLE and ocsptest.py (#713) 2021-08-24 13:36:37 -04:00
Prashant Mital
b3118e034e
PYTHON-2162 Remove support for ssl* URI options (#706) 2021-08-19 14:58:31 -07:00
Shane Harvey
e1b068d37a
PYTHON-2525 Remove Collection.count and Cursor.count (#700) 2021-08-10 13:52:29 -07:00
Shane Harvey
6d1ebf4597
PYTHON-2798 Workaround windows cert issue with SSL_CERT_FILE (#670) 2021-07-12 14:17:01 -07:00
Prashant Mital
6e1009e8b6
PYTHON-2396 Deprecate ssl_keyfile and ssl_certfile URI options (#616) 2021-05-05 15:50:01 -07:00
Shane Harvey
93046431df
PYTHON-2603 Standardize on ubuntu1804 zseries, power8, and arm64 (#600)
PYTHON-2647 Fix test_use_openssl_when_available when service_identity<18.1 is installed
2021-04-27 11:00:20 -07:00
Shane Harvey
95974617bd
PYTHON-1314 Remove Database.authenticate and Database.logout (#568) 2021-02-17 14:16:07 -08:00
Bernie Hackett
70b927a01d PYTHON-2508 Improve PyOpenSSL on Windows and macOS 2021-01-28 16:02:51 -08:00
Bernie Hackett
521f7b9af4 PYTHON-2133 Fix up docs
And finish deleting python 2 specific code.
2021-01-21 15:49:23 -08:00
Bernie Hackett
a72e8b8823 PYTHON-2133 Remove py2 support from test
Also delete bson/py3compat.py
2021-01-20 09:40:36 -08:00
Bernie Hackett
fb4c20adfa PYTHON-2133 - Stop testing Python 2.7 on Evergreen 2021-01-13 16:30:21 -08:00
Shane Harvey
84fd04ec6d
PYTHON-1852 Use TLS option names in test suite ClientContext (#442) 2020-06-18 18:24:08 -07:00
Shane Harvey
0eace78cf4 PYTHON-2158 Support speculative authentication attempts in connection handshake 2020-05-19 11:20:23 -07:00
Prashant Mital
47a6718352
PYTHON-2161 add support for tlsDisableOcspEndpointCheck URI option 2020-03-11 18:35:11 -07:00
Shane Harvey
af1dcc5143 PYTHON-2144 Properly require TLS for test_connect_with_ca_bundle 2020-03-10 18:25:25 -07:00
Shane Harvey
84f1a8c5f9 PYTHON-2144 Handle the case where the peer omits the self-signed issuer cert 2020-03-10 16:44:49 -07:00
Shane Harvey
043c8e822b PYTHON-2140 Test PyOpenSSL on macOS
Handle the case where the peer omits the self-signed issuer cert and
OCSP is not requested by delaying issuer check.
Properly set PYMONGO_MUST_CONNECT in PyOpenSSL tests.
Properly set PYTHON_BINARY in OCSP test.
2020-03-03 10:27:54 -08:00
Bernie Hackett
8e5dbc9f0a PYTHON-2128 Fix test_ssl_pem_passphrase 2020-02-21 09:20:35 -08:00
Bernie Hackett
5df94d08f0 PYTHON-2040 PyOpenSSL support 2020-02-06 18:03:21 -08:00
Prashant Mital
d5b0790da1
PYTHON-2101 Fix SSL failures on MacOS-10.14 2020-01-24 14:10:15 -08:00
Bernie Hackett
820d884ef7 PYTHON-1733 Regenerate test certificates with SHA256 signatures 2019-05-24 10:42:02 -07:00
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