Steven Silvester
62a6302181
PYTHON-2683 Convert change stream spec tests to unified test format ( #950 )
2022-06-01 18:26:52 -05: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
fb20975a1f
PYTHON-2245 Change default uuidRepresentation to UNSPECIFIED (ie disable UUID encoding by default) ( #724 )
...
This change also stops decoding both 3 and 4 subtypes as UUIDs.
With standard, only subtype 4 is decoded to UUID and subtype 3 is decoded to Binary.
With legacy representations, only subtype 3 is decoded to UUID and subtype 4 is decoded to Binary.
2021-09-14 16:48:52 -07:00
Bernie Hackett
f64c5aa940
PYTHON-2904 Further language modernization
2021-09-14 12:24:06 -07:00
Prashant Mital
f07da34f97
PYTHON-2545 Test Atlas Serverless ( #664 )
2021-07-27 16:35:09 -07:00
Shane Harvey
b4b7a07b81
PYTHON-2762 Avoid duplicating unified test files for LB testing ( #649 )
...
Create new client for each cursor/session __del__ test.
Always close cursors in spec tests.
2021-06-25 16:20:21 -07:00
Shane Harvey
2a74601572
PYTHON-2676 Unified Test Runner changes in preparation for Load Balancer Support ( #623 )
...
Resync crud, change stream, SDAM, server_selection, transactions, uri-options, tests.
PYTHON-2348 Correctly express lack of event assertions in change stream tests.
2021-05-18 10:20:36 -07:00
Prashant Mital
4088c1cee0
Python 2548/add update description.truncated arrays field ( #572 )
2021-03-02 11:06:56 -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
Prashant Mital
65699332c4
PYTHON-2376 Fix change stream test failures due to new updateDescription.truncatedArrays field in changeEvent documents ( #489 )
2020-09-28 15:55:07 -07:00
Prashant Mital
98f8470b5b
PYTHON-2306 Test that change streams don't resume from ElectionInProgress ( #465 )
2020-07-16 18:18:19 -07:00
Prashant Mital
065001ef2e
PYTHON-2305 Cache postBatchResumeToken when an aggregate command returns an empty firstBatch ( #456 )
2020-07-08 14:51:17 -07:00
Prashant Mital
956ce3d4b0
Incorporate review changes
2020-07-01 16:47:33 -07:00
Prashant Mital
9fc7ed1e11
PYTHON-2143 Use an allow-list to determine resumable change stream errors
2020-07-01 16:43:27 -07:00
Shane Harvey
6ee80cecfa
PYTHON-2124 Assert no gc.garbage at test suite teardown and enable debug output
2020-02-20 15:04:31 -08:00
Shane Harvey
9079596bf0
PYTHON-2120 Skip failing ChangeStream tests on 4.4
2020-02-10 12:49:45 -08:00
Prashant Mital
e31a0ef95f
PYTHON-1911 Implement missing changeStream prose tests
2019-11-20 19:46:07 -08:00
Prashant Mital
ef3df1663c
PYTHON-1918 Stop using BSON.encode and BSON.decode functions
2019-09-09 18:06:46 -07:00
Prashant Mital
ddac30d2ff
PYTHON-1742 add postBatchResumeToken support
...
PYTHON-1815 add tests for postBatchResumeToken support
PYTHON-1845 clarify resume token used in resuming and getResumeToken
2019-07-25 17:18:35 -07:00
Prashant Mital
886cf657bb
PYTHON-1905 Don't send fullDocument field by default with every
...
$changeStream pipeline stage
2019-07-16 19:13:57 -07:00
Prashant Mital
26d25cd74e
PYTHON-1841 ChangeStream should not resume after errors with NonRetryableChangeStreamError label
2019-07-02 18:55:35 -07:00
Prashant Mital
3ba46a9911
PYTHON-1877 Fix result assertion in changeStream spec tests
...
PYTHON-1713 Resync change stream tests to test all new notification types
2019-07-02 13:26:21 -07:00
Prashant Mital
0b72f88363
PYTHON-1871 ChangeStreams must honor batchSize
2019-06-14 10:25:41 -07:00
Shane Harvey
afbf18b0ad
PYTHON-1720 Add start_after parameter to watch() methods
2019-06-04 16:06:47 -07:00
Shane Harvey
5ebd2938bd
PYTHON-1792 More reliable tests for ChangeStream.try_next
2019-03-27 13:36:32 -07:00
Shane Harvey
92ddc09b7e
PYTHON-1662 Add ChangeStream.try_next API
2019-03-26 11:14:21 -07:00
Shane Harvey
9dcd828a0f
PYTHON-1739 Skip failing change stream test on sharded clusters ( #397 )
2019-02-07 16:01:32 -08:00
Prashant Mital
f82706c870
PYTHON-1597 Don't run Change Stream tests on MMAPv1 ( #356 )
2018-06-26 13:01:20 -04:00
Shane Harvey
994cf80c7c
PYTHON-1545 Resume more getMore errors for ChangeStreams
2018-06-21 12:41:30 -07:00
Prashant Mital
96291c88b0
PYTHON-1565 Add helpers and options for Change Streams Follow-on Work ( #355 )
...
PYTHON-1565 Add helpers and options for Change Streams Follow-on Work (#355 )
Add MongoClient.watch() and Database.watch().
Add start_at_operation_time to all watch() helpers.
2018-06-21 12:22:59 -07:00
Shane Harvey
a423dc6b1b
PYTHON-1583 Update ChangeStream tests for "drop" operationType
2018-06-12 11:01:10 -07:00
Shane Harvey
adbcc2d6d4
PYTHON-1582 Fix TestChangeStream.test_next_blocks
2018-06-12 11:01:10 -07:00
Shane Harvey
49cee292cc
PYTHON-1408 Cursor iteration should complete when another thread closes the cursor.
...
Closing a cursor should not raise an error when killCursors fails.
2017-11-13 13:08:38 -08:00
Shane Harvey
95d42a857b
PYTHON-1405 Test ChangeStreams on mongos.
2017-11-08 16:05:52 -08:00
Shane Harvey
ba0c528380
PYTHON-1338 Add readConcern ChangeStream test.
2017-11-08 16:04:53 -08:00
Shane Harvey
5b5128c773
PYTHON-1394 Close ChangeStream cursor when the resume token is missing.
2017-10-30 10:28:46 -04:00
Shane Harvey
4d2825b0af
PYTHON-1372 Avoid using RawBSONDocument in ChangeStream.
2017-10-30 10:28:46 -04:00
A. Jesse Jiryu Davis
3cba982db9
PYTHON-1332 - Test lsid with all commands
2017-09-29 14:52:26 -04:00
Shane Harvey
e775295ab5
PYTHON-1367 Ignore uuid_representation when decoding BSON binary subtype 4.
2017-09-12 17:20:14 -07:00
Shane Harvey
74605b73f6
PYTHON-1338 Support change stream API.
2017-09-07 17:12:45 -07:00