Commit Graph

88 Commits

Author SHA1 Message Date
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
Steven Silvester
b63dfbe1e4
PYTHON-3533 Permit tlsDisableOCSPEndpointCheck in KMS TLS options (#1155) 2023-02-15 11:36:42 -06:00
Julius Park
2e6e9a8507
PYTHON-3592 createEncryptedCollection should raise a specialized exception to report the intermediate encryptedFields (#1148) 2023-02-07 10:23:59 -08:00
Julius Park
79ccf4e287
PYTHON-3589 createEncryptedCollection should not accept keyAltNames (#1147) 2023-02-03 21:10:30 -08:00
Julius Park
b492263826
PYTHON-3357 Automatically create Queryable Encryption keys (#1145) 2023-01-31 14:58:37 -08:00
Julius Park
d3117ce75d
PYTHON-3280 Support for Range Indexes (#1140) 2023-01-24 15:33:56 -08:00
Julius Park
57f757b74c
PYTHON-3446 Do not connect to mongocryptd if shared library is loaded (#1136) 2023-01-17 23:14:26 -08:00
Julius Park
6419266395
PYTHON-3492 Test mongocryptd is not spawned when shared library is loaded (#1124) 2022-12-06 15:29:48 -08:00
Shane Harvey
79aa5e6757
PYTHON-3516 Improve test EventListener api (#1114) 2022-11-14 08:50:08 -08:00
Steven Silvester
3fc301cd22
PYTHON-3256 Obtain AWS credentials for CSFLE in the same way as for MONGODB-AWS (#1035) 2022-10-24 14:55:58 -05:00
Steven Silvester
e3ff041b47
PYTHON-3433 Failure: test.test_encryption.TestSpec.test_legacy_maxWireVersion_operation_fails_with_maxWireVersion___8 (#1052) 2022-09-09 16:28:15 -05:00
Shane Harvey
1e6b4a48d4
PYTHON-3406 Log traceback when fork() test encounters a deadlock (#1045)
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-08-22 14:16:27 -07:00
Shane Harvey
7f19186cac
PYTHON-3406 Refactor fork tests to print traceback on failure (#1042) 2022-08-18 17:06:02 -07:00
Shane Harvey
cfc99c82f3
PYTHON-3402 Fix TestRewrapWithSeparateClientEncryption (#1040) 2022-08-18 14:01:35 -07:00
Ben Warner
dd3b4b11d2
PYTHON-3403 Skips unit test if eventlent or gevent is imported (#1039) 2022-08-18 12:15:44 -07:00
Ben Warner
a20ff68d51
PYTHON-3390 Test for encrypted client post-fork (#1037) 2022-08-15 12:07:49 -07:00
Steven Silvester
c0dadcb6ca
PYTHON-3385 Add prose test for RewrapManyDataKey (#1034) 2022-08-12 13:53:07 -05:00
Julius Park
61add4a1cf
PYTHON-3303 Upgrade encryption testing to macos 10.15+ (#1004) 2022-07-14 16:30:52 -07:00
Julius Park
b9884f34a9
Test Failure - crypt_shared FLE tests fail on Windows/macos (#999) 2022-07-08 12:30:39 -07:00
Julius Park
6d916d68c2
PYTHON-3315 Remove index_key_id option from ClientEncryption encrypt method (#989) 2022-07-01 12:36:12 -07:00
Steven Silvester
b37b146ac8
PYTHON-3053 Key Management API (#958) 2022-06-30 12:35:29 -05:00
Steven Silvester
0631039118
PYTHON-3319 Require contentionFactor for "Indexed" explicit encryption (#987) 2022-06-29 16:08:38 -05:00
Julius Park
ae71872fa9
PYTHON-3297 Test auto decryption occurs after CommandSucceeded events (#980) 2022-06-24 10:52:09 -07:00
Julius Park
02a9df69f6
PYTHON-3227 Clustered Indexes for all Collections (#971) 2022-06-15 13:16:22 -07:00
Steven Silvester
98d3933364
PYTHON-3253 Provide FLE 2.0 API example for docs team (#969) 2022-06-13 19:54:36 -05:00
Julius Park
6b088ffa4e
PYTHON-3241 Add Queryable Encryption API to AutoEncryptionOpts (#957) 2022-06-06 12:33:31 -04:00
Shane Harvey
154d8787c5
PYTHON-3245 Support explicit queryable encryption (#959) 2022-06-03 13:11:28 -07:00
Shane Harvey
cf08d46ff9
PYTHON-3277 Rename csfle library to crypt_shared (#956) 2022-06-01 16:48:08 -07:00
Julius Park
f4fc742ff3
PYTHON-3276 [pymongo] FLE 1.0 shared library (#947) 2022-05-27 12:34:22 -07:00
Shane Harvey
78476d0217
PYTHON-3187 Avoid tight poll() loop on pyopenssl connections (#953) 2022-05-26 15:14:59 -07:00
Shane Harvey
ede07f44dd
PYTHON-3250 Speed up majority writes in test suite (#936) 2022-05-03 14:41:24 -07:00
Shane Harvey
ff288faf39
PYTHON-3221 Resync CSFLE spec tests (#929) 2022-04-13 12:20:54 -07:00
Shane Harvey
3cb16cae24
PYTHON-3210 Remove flakey string assertion from invalid aws creds FLE test (#922) 2022-04-06 12:09:47 -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
Shane Harvey
561ee7cf77
PYTHON-3110 Remove use of example.com in CSFLE tests (#848) 2022-02-07 19:33:16 -06:00
Steven Silvester
abfa0d35bc
PYTHON-3075 bulk_write does not apply CodecOptions to upserted_ids result (#840) 2022-02-02 13:53:58 -06:00
Bernie Hackett
68b818141a
PYTHON-2903 Migrate testing from Amazon1 to Ubuntu 18.04 (#822) 2021-12-13 16:30:36 -08:00
Shane Harvey
99aab1b0ba
PYTHON-3017 Properly check for closed KMS connections (#790) 2021-11-16 14:34:36 -08:00
Shane Harvey
a7fb3281ea
PYTHON-3004 Support kmip FLE KMS provider (#786)
Resync CSFLE spec tests.
2021-11-15 16:23:59 -08:00
Shane Harvey
370e1652ad
PYTHON-3003 Add kms_tls_options to configure options for KMS provider connections (#784) 2021-11-10 16:49:31 -08:00
Shane Harvey
d559b28efb
PYTHON-2905 Fix CSFLE after UUID decoding changes (#732) 2021-09-16 17:50:22 -07:00