Commit Graph

130 Commits

Author SHA1 Message Date
Steven Silvester
0b2900d162
PYTHON-5413 Handle flaky tests (#2395) 2025-07-01 15:42:58 -05:00
Noah Stapp
e2bfa9a590
PYTHON-5248 - Drop support for MongoDB 4.0 (#2353) 2025-06-20 14:25:19 -04:00
Iris
65089ead4c
PYTHON-5386 Better test assertions for isinstance (#2347) 2025-05-22 16:15:44 -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
Noah Stapp
04ebbcde87
PYTHON-5259 - Better test assertions for error substrings (#2253) 2025-04-02 08:22:25 -04:00
Iris
1145c9de54
PYTHON-5046 Support $lookup in CSFLE and QE (#2210) 2025-03-20 13:55:52 -07:00
Shane Harvey
189923f7c3
PYTHON-5198 Fix test_03_invalid_keyid (#2195) 2025-03-12 15:19:40 -07:00
Noah Stapp
34ca759f85
PYTHON-5113 - Refactor test utils for async (#2149) 2025-03-12 12:59:56 -04:00
Shane Harvey
820701f15a
PYTHON-5038 Resolve certificate verify failed: Missing Authority Key Identifier (#2062) 2025-01-15 12:23:12 -08:00
Steven Silvester
493fc2ab3e
PYTHON-5014 Fix handling of async socket errors in kms request (#2054) 2025-01-10 13:05:57 -06:00
Shane Harvey
6c9a20a49d
PYTHON-5014 Tests that use HTTPSConnection should only use stdlib ssl (#2053) 2025-01-10 09:32:07 -08:00
Steven Silvester
1b89da4829
PYTHON-5006 Skip test_kms_retry when using PyOpenSSL (#2030) 2024-12-04 10:53:27 -06:00
Shane Harvey
ff2f95987f
PYTHON-2560 Retry KMS requests on transient errors (#2024) 2024-12-03 16:16:47 -08:00
Noah Stapp
0f61ebb115
PYTHON-4995 - Skip TestNoSessionsSupport tests on crypt_shared (#2022) 2024-12-02 12:35:31 -05:00
Noah Stapp
0e8d70457f
Async client uses tasks instead of threads
PYTHON-4725 - Async client should use tasks for SDAM instead of threads
PYTHON-4860 - Async client should use asyncio.Lock and asyncio.Condition
PYTHON-4941 - Synchronous unified test runner being used in asynchronous tests
PYTHON-4843 - Async test suite should use a single event loop
PYTHON-4945 - Fix test cleanups for mongoses

Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com>
2024-11-26 16:55:27 -05:00
Steven Silvester
351196b91b
PYTHON-4813 Update specification documentation links (#1977) 2024-10-30 15:46:52 -05:00
Steven Silvester
97ac3ebee2
PYTHON-4738 Skip encryption fork test (#1972) 2024-10-25 09:49:37 -05:00
Noah Stapp
3a662291e0
PYTHON-4700 - Convert CSFLE tests to async (#1907) 2024-10-11 10:48:24 -04:00
Noah Stapp
8118aea985
PYTHON-4844 - Skip async test_encryption.AsyncTestSpec.test_legacy_ti… (#1914) 2024-10-11 08:29:12 -04:00
Steven Silvester
6d472a10a1
PYTHON-4738 Skip encryption test_fork on PyPy (#1865) 2024-09-17 20:00:06 -05:00
Noah Stapp
163e3d4a0d
PYTHON-4738 - Make test_encryption.TestClientSimple.test_fork sync-only (#1862) 2024-09-17 12:56:03 -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
e683b81bf4
PYTHON-4739 - Use AsyncBulkTestBase in Async TestEncryptedBulkWrite (#1846) 2024-09-09 11:05:04 -04:00
Noah Stapp
e6b95f6595
PYTHON-4673 - Add Async Encryption Tests (#1818) 2024-08-29 10:02:47 -04:00
Steven Silvester
f16206cb89
PYTHON-4392 Support Range Indexes as GA (#1795) 2024-08-19 14:29:18 -05:00
Noah Stapp
993171cd3d
PYTHON-4565 - Use pytest markers for test suite configuration (#1741) 2024-07-23 14:28:55 -05:00
Noah Stapp
cfa215c185
PYTHON-4530 - Move synchronized test code into top-level test directory (#1718) 2024-07-02 08:59:39 -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
76f1221e22
PYTHON-4206 - QE Range Protocol V2 (#1670) 2024-06-12 10:02:59 -07:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta (#1629) 2024-06-06 09:01:24 -07:00
Noah Stapp
da03da34c6
PYTHON-4406 Skip rangePreview tests on server version 8.0+ (#1636) 2024-05-10 10:00:13 -07:00
Shane Harvey
50eeb6788b
PYTHON-4348 Reinstate fork warning because network I/O and threads are not fork safe (#1597) 2024-04-16 16:22:39 -07:00
Shane Harvey
698599c737
PYTHON-2267 Test passing UUID to encrypt_expression (#1510) 2024-02-05 15:53:44 -08:00
Noah Stapp
62c6d0f330
PYTHON-3587 Do not perform server selection to determine sessions support (#1491) 2024-02-05 13:19:26 -08:00
ilukyanchikov
da2bf9dbcc
PYTHON-2267: Allow UUID key_id to be passed to ClientEncryption.encrypt (#1494) 2024-02-02 10:29:14 -08:00
Shane Harvey
55f12c684c
PYTHON-4112 Revert to testing with pymongocrypt@master and update mock KMS ports (#1492) 2024-01-30 17:51:15 -08:00
Shane Harvey
0615df47b5
PYTHON-4112 Support named KMS providers (#1487)
Requires pymongocrypt >= 1.9.0 and libmongocrypt >= 1.9.0.
2024-01-30 12:00:24 -08:00
Steven Silvester
68d22b20bd
PYTHON-4151 Use Centralized Scripts for CSFLE Tests (#1477) 2024-01-29 17:19:24 -06:00
Shane Harvey
c05a62b188
PYTHON-4170 Fix test_invalid_hostname_in_kms_certificate (#1488) 2024-01-26 10:22:21 -08:00
Steven Silvester
923c8a5abe
PYTHON-4024 Use ruff formatter (#1419) 2023-11-02 12:46:40 -05:00
Steven Silvester
7936708d97
PYTHON-4014 Apply QA Suggestions from Scientific Python Library Development Guide (#1414) 2023-11-01 19:37:22 -05:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff (#1399) 2023-10-19 11:56:22 -05:00
Noah Stapp
b16e06acfd
PYTHON-3727 Use tox for unit tests and switch to pytest (#1249) 2023-06-21 15:07:14 -07:00
Shane Harvey
2cfebf52cd
PYTHON-3706 Skip flaky test on Windows/macOS (#1241) 2023-06-15 12:34:02 -07:00
Steven Silvester
bda9e3a0bb
PYTHON-3469 Error if RewrapManyDataKey is called with masterKey and without provider (#1214) 2023-05-15 06:36:36 -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
deb0566c3e
PYTHON-3614 Support Queryable Encryption protocol v2 on 7.0+ (#1197)
Resync FLE spec tests and update docs for new QE protocol on 7.0.
Add client side error for createEncryptedCollection on MongoDB < 7.0.
KMS timeout errors should always have exc.timeout==True.
PYTHON-3583 Drivers should not create the ECC collection in v2 of queryable encryption.
2023-05-01 09:16:28 -07:00
Shane Harvey
bc9029a228
PYTHON-3679 Support mypy 1.2 (#1194) 2023-04-28 14:27:06 -07:00
Steven Silvester
148f7877cf
PYTHON-3644 Test encryption KMS connections with stdlib ssl, not just pyopenssl (#1178) 2023-04-03 17:13:23 -05:00
Steven Silvester
1f80805251
PYTHON-3607 FAIL: test_01_aws (test.test_encryption.TestKmsTLSOptions) (#1159) 2023-02-17 08:31:09 -06:00