Commit Graph

118 Commits

Author SHA1 Message Date
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
Shane Harvey
b5f0104048
PYTHON-4980 Ignore network error on killAllSessions (#2011) 2024-11-19 15:43:28 -08:00
Shane Harvey
a3bdc133ca
PYTHON-4356 Unskip spec tests for agg $out (#2008) 2024-11-18 12:17:33 -08:00
Shane Harvey
0733c4da44
PYTHON-4925 Fix test bugs in $$matchAsDocument and $$matchAsRoot (#1988)
Fixes a bug where the driverConnectionId field was missing from "server heartbeat failed" log messages.
Avoids sending "upsert": False since various client.bulkWrite spec tests assume this field is only sent when it's True.
2024-11-05 12:19:51 -08:00
Noah Stapp
a9caaf0d6a
PYTHON-4941 - Fix Synchronous unified test runner being used in async… (#1993) 2024-11-04 09:24:29 -05:00
Steven Silvester
351196b91b
PYTHON-4813 Update specification documentation links (#1977) 2024-10-30 15:46:52 -05:00
Noah Stapp
fa263dc87d
PYTHON-4847 - Convert test.test_collection_management.py to async (#1916) 2024-10-15 15:48:05 -04:00
Steven Silvester
3c5e71a1cb
PYTHON-4862 Fix handling of interrupt_loop in unified test runner (#1924) 2024-10-14 07:32:38 -05:00
Noah Stapp
6973d2d274
PYTHON-4528 - Convert unified test runner to async (#1913) 2024-10-11 11:02:06 -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
039db2f20a
PYTHON-4590 - Make type guards more compatible (#1850) 2024-09-11 08:46:44 -04:00
Steven Silvester
f6a418f590
PYTHON-4182 Unskip test_unpin_after_TransientTransactionError_error_on_abort on latest (#1847) 2024-09-09 09:44:03 -05:00
Shane Harvey
6bdaf19c78
PYTHON-4617 Skip unified retryable writes tests on MMAPv1 (#1841) 2024-09-06 10:46:10 -07:00
Shane Harvey
29bbf77dad
PYTHON-4607 Use LogRecord.getMessage() not LogRecord.message (#1837) 2024-09-05 14:18:48 -07:00
Noah Stapp
5a70039ad2
PYTHON-4701 - Topology logging should use suppress_event (#1826) 2024-09-03 16:57:41 -04:00
Noah Stapp
c6967ab139
PYTHON-3472 - Add log messages to SDAM spec (#1771)
Co-authored-by: Jib <Jibzade@gmail.com>
2024-08-28 14:48:49 -04:00
Shane Harvey
30b32d00c4
PYTHON-4649 Skip CSOT tests on slow Windows and macOS hosts (#1784) 2024-08-12 10:10:19 -07:00
Shruti Sridhar
d08fec6342
PYTHON-4550 Add MongoClient.bulk_write API (#1745) 2024-08-06 11:10:01 -07:00
Shane Harvey
9c7adf89ef
PYTHON-4609 Speed up unified tests (#1768) 2024-08-02 16:32:11 -07:00
Noah Stapp
294f10b724
PYTHON-4021 - Publish TopologyDescriptionChangedEvent on topology close (#1762) 2024-08-02 09:42:49 -07:00
Steven Silvester
3235d392c1
PYTHON-4242 Convert retryable writes spec tests to unified test format (#1752) 2024-07-31 16:36:49 -05:00
Steven Silvester
272538513a
PYTHON-4551 Remove Serverless Proxy Incremental Rollout Tests (#1742) 2024-07-23 14:02:08 -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
Shane Harvey
1d9adfa3b9
Cleanup sys.version_info compat code (#1698) 2024-06-25 12:31:30 -07:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta (#1629) 2024-06-06 09:01:24 -07:00
Shane Harvey
8456293da2
PYTHON-4398 Close mongos test clients to avoid thread build up (#1643) 2024-05-21 11:30:43 -07:00
Steven Silvester
594dacaaf9
MOTOR-1315 Fix handling of explicitly skipped tests (#1642) 2024-05-20 10:07:30 -04:00
Steven Silvester
328c06d454
PYTHON-4356 & PYTHON-4414 Skip Failing Tests (#1638) 2024-05-14 14:56:09 -05:00
Casey Clements
e8900ad9f4
PYTHON-4227 Unified tests: Advance cluster_time of ClientSessions after initialData creation (#1603) 2024-04-24 06:27:06 -05:00
Shane Harvey
9d2a1ce4ba
PYTHON-4362 Resync CMAP tests (#1586) 2024-04-12 17:56:08 -07:00
Noah Stapp
bc7181c3c0
PYTHON-4354 & PYTHON-4355 - Increase logging limit for tests cleanup (#1585) 2024-04-12 17:13:57 -07:00
Noah Stapp
29df4159ed
PYTHON-4354 & PYTHON-4355 - Increase logging limit for tests (#1584) 2024-04-12 16:15:54 -07:00
Casey Clements
c8727e98eb
PYTHON-4303 Temporarily skip two transaction tests (#1577) 2024-04-12 10:20:33 -04:00
Steven Silvester
e40ff35168
PYTHON-4322 Fix racy unified tests of unacknowledged writes (#1578) 2024-04-10 20:19:51 -05:00
Shane Harvey
4e5813c07b
PYTHON-4299 Add support for TopologyDescriptionChangedEvent to expectEvents (#1572) 2024-04-10 17:16:20 -07:00
Steven Silvester
1e0ef67ab8
PYTHON-3664 OIDC: Automatic token acquisition for GCP Identity Provider (#1540) 2024-04-03 16:07:41 -05:00
Steven Silvester
61488918f9
PYTHON-4303 Fix Unified Transaction Test Runner (#1568) 2024-04-01 11:57:30 -05:00
Steven Silvester
e68bd6f83e
PYTHON-2723 Make mongos_clients a class property (#1563) 2024-03-27 13:37:19 -05:00
Steven Silvester
3699f513fa
PYTHON-4265 Rename OIDC property PROVIDER_NAME and config values (#1545)
Co-authored-by: Jib <Jibzade@gmail.com>
2024-03-27 12:29:45 -05:00
Steven Silvester
e37394d402
PYTHON-2723 Convert transactions spec tests to unified test format (#1543) 2024-03-26 17:28:32 -05:00
Noah Stapp
f7a7b5a332
PYTHON-4271 Skip failing serverless proxy tests (#1555) 2024-03-19 15:23:47 -07:00
Steven Silvester
5d01a4102c
PYTHON-4182 Skip additional TransientTransactionError test on latest (#1529) 2024-02-20 18:46:36 -06:00
Noah Stapp
ebb94b669e
PYTHON-3457 Easier debugging with standardized logging (#1515)
PYTHON-3458 Add command logging.
PYTHON-3459 Add server selection logging.
PYTHON-3473 Add connection pool logging.
PYTHON-4167 Add documentation and examples.

Co-authored-by: sleepyStick <itsirisho@gmail.com>
2024-02-15 11:35:08 -08:00
Steven Silvester
2f94927354
PYTHON-4182 Skip test_unpin_after_TransientTransactionError_error_on_abort on latest (#1508) 2024-02-05 20:30:35 -06:00
Steven Silvester
4bc2a482d9
PYTHON-3467 OIDC: Automatic token acquisition for Azure Identity Provider (#1443)
Co-authored-by: Jib <Jibzade@gmail.com>
2024-02-02 09:53:48 -06: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
Noah Stapp
c4e4bd638f
PYTHON-3175 Preemptively cancel in progress operations when SDAM heartbeats timeout (#1465) 2024-01-19 10:55:10 -08:00
Noah Stapp
b1939e1470
PYTHON-2822 Add server connectionId to command monitoring events (#1438) 2023-12-01 14:33:37 -08:00
Steven Silvester
923c8a5abe
PYTHON-4024 Use ruff formatter (#1419) 2023-11-02 12:46:40 -05:00