Commit Graph

2675 Commits

Author SHA1 Message Date
Julius Park
9083821300
PYTHON-3454 Specifying a generic type for a collection does not correctly enforce type safety when inserting data (#1081) 2022-11-01 14:33:21 -07: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
84fbc1f319
PYTHON-3367 Add support for GCP attached service accounts when using GCP KMS (#1064) 2022-10-21 05:22:39 -05:00
Shane Harvey
3d3ffaf6f3
PYTHON-3410 Resync CSOT spec tests to be less flaky (#1087) 2022-10-20 13:06:34 -07:00
Shane Harvey
614e22c46c
PYTHON-3478 Improve test_change_stream_can_resume_after_timeouts (#1083) 2022-10-19 15:14:46 -07:00
Steven Silvester
df77653ccc
PYTHON-3347 Test against Python 3.11 prerelease (#1069) 2022-10-13 06:09:23 -05:00
Steven Silvester
4a5e0f6655
PYTHON-3313 Cache AWS Credentials Where Possible (#982) 2022-10-12 10:21:06 -05:00
Steven Silvester
24a343b830
PYTHON-3468 Test failures in test_srv_polling.TestSrvPolling (#1073) 2022-10-11 14:14:59 -05:00
Shane Harvey
8abeb882b4
PYTHON-3452 Skip SDAM test that relies on retryWrites on MMAPv1 (#1071) 2022-10-10 12:48:42 -07:00
Shane Harvey
85f0987e1d PYTHON-3400 Only use new electionId/setVersion logic on 6.0+ 2022-10-05 13:02:15 -07:00
Shane Harvey
64d7d6da8a PYTHON-2970 Prioritize electionId over setVersion for stale primary check (#845) 2022-10-05 13:02:15 -07:00
Julius Park
c874c96e29
PYTHON-3232 Improved change stream event visibility for C2C Replication (#1062) 2022-09-27 15:31:20 -07:00
Julius Park
2af12e6463
PYTHON-3444 MyPy Errors With Version 0.981 (#1063) 2022-09-26 15:48:48 -07:00
Steven Silvester
eb028d0195
PYTHON-3420 Update ChangeStreamEvent type definition to include clusterTime (#1057) 2022-09-16 13:41:06 -05:00
Shane Harvey
179efda312
PYTHON-3406 Reinstate warning and docs that PyMongo is not fork safe (#1050)
Log child process C-level stacks when fork tests deadlock.
Encode hostname to bytes to avoid getaddrinfo importlib deadlock.
2022-09-13 14:14:53 -07: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
1575e53ef7
PYTHON-3409 Retry flakey CSOT tests twice (#1046) 2022-08-22 16:19:30 -07: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
a0a5c7194d
PYTHON-3405/PYTHON-2531 Fix tests for primary step down (#1041) 2022-08-18 15:38:09 -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
4170dc958e
PYTHON-3393 Added fork-safety stress test. (#1036) 2022-08-16 10:40:28 -07:00
Julius Park
6d2e27a1b7
PYTHON-3355 Test with consistent versions of crypt_shared and server (#1033) 2022-08-15 21:18: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
Ben Warner
3204290e93
PYTHON-2484 Added lock sanitization for MongoClient and ObjectId (#985) 2022-08-04 16:58:56 -07:00
Ben Warner
46673c3705
PYTHON-3379 Refactored DatetimeConversionOpts to DatetimeConversion (#1031) 2022-08-04 12:53:57 -07:00
Shane Harvey
13e2715af0
PYTHON-3312 Convert SDAM integration tests to unified (#1028) 2022-08-03 15:34:16 -07:00
Shane Harvey
5b85ad2bcf
PYTHON-3391 Skip unsupported CSOT tests on serverless (#1030) 2022-08-03 13:30:41 -07:00
Shane Harvey
7c19ff7f7a
PYTHON-3389 Close ChangeStream after non-resumable non-timeout errors (#1029) 2022-08-03 12:23:50 -07:00
Shane Harvey
1166bb96cd
PYTHON-3382 Resync csfle tests (#1027) 2022-07-29 15:39:11 -07:00
Ben Warner
0c56d56658
PYTHON-3371 Remove DatetimeConversionOpts.__repr__ (#1023)
* Removed __repr__ and adjusted repr string

* Changed to %s

Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-28 15:55:34 -07:00
Ben Warner
14002a5a0d
PYTHON-1824 Allow encoding/decoding out-of-range datetimes via DatetimeMS and datetime_conversion (#981)
https://jira.mongodb.org/browse/PYTHON-1824

Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-27 16:53:52 -07:00
Steven Silvester
e96f112d84
PYTHON-3274 Add commandStartedEvent assertions to clustered index spec tests (#1022) 2022-07-27 18:28:23 -05:00
Shane Harvey
864812d400
PYTHON-3366 Support mypy 0.971 and test with latest version (#1021)
PYTHON-3369 Use https://www.gevent.org
2022-07-25 15:25:41 -07:00
Shane Harvey
f5ac946020
PYTHON-3368 Add test that reads are not retried in a transaction (#1020) 2022-07-25 15:19:22 -07:00
Shane Harvey
925537575b
PYTHON-3284 Fix test_snapshot_query by waiting for documents to be committed to the snapshot (#1019) 2022-07-25 14:22:51 -07:00
Shane Harvey
065b02bcb3
PYTHON-3358 Skip obsolete StaleShardVersion test on 6.1.0+ (#1018) 2022-07-21 11:47:02 -07:00
Shane Harvey
6172c00dbe
PYTHON-3362 Fix CSOT gridfs test (#1015) 2022-07-19 19:08:54 -07:00
Shane Harvey
4d4fddaf69
PYTHON-3363 Allow change stream to be resumed after a timeout (#1014)
Apply client timeoutMS to ChangeStream iteration.
2022-07-19 18:17:12 -07:00
Shane Harvey
935f926bd9
PYTHON-3362 Ignore wtimeout when timeoutMS or timeout() is configured (#1013)
Apply client timeoutMS to gridfs operations.
2022-07-19 17:46:09 -07:00
Shane Harvey
db3f2dca05
PYTHON-2459 Implement unified GridFS tests (#1012) 2022-07-19 15:01:41 -07:00
Shane Harvey
667046129a
PYTHON-3289 Apply client timeoutMS to every operation (#1011) 2022-07-18 23:22:43 -07:00
Shane Harvey
5c38676d53
PYTHON-3359 Remove Database and Collection timeout override (#1009)
Remove MongoClient.timeout in favor of client.options.timeout.
2022-07-18 19:54:45 -05:00
Shane Harvey
c43486101f
PYTHON-3291 Add PyMongoError.timeout to identify timeout related errors (#1008) 2022-07-18 15:58:20 -05:00
Julius Park
484374eb3f
PYTHON-3298 Add flag to create_collection to skip listCollections pre-check (#1006) 2022-07-18 13:40:16 -07:00
Julius Park
61add4a1cf
PYTHON-3303 Upgrade encryption testing to macos 10.15+ (#1004) 2022-07-14 16:30:52 -07:00
Shane Harvey
309a7e0b3d
PYTHON-3353 Improve reliability of SDAM heartbeat error spec tests (#1005) 2022-07-14 17:09:42 -05:00
Steven Silvester
135efdd23f
PYTHON-3153 Update initial DNS seedlist discovery tests to support dedicated load balancer port (#1002) 2022-07-14 14:57:52 -05:00