Commit Graph

96 Commits

Author SHA1 Message Date
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
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
Shane Harvey
4c00227c1d
PYTHON-3668 Use polling SDAM mode on FaaS and add sdamMode=auto/stream/poll (#1360)
Disable streaming SDAM by default on AWS Lambda and similar FaaS platforms.
Introduce the serverMonitoringMode=stream/poll/auto URI option.
Add Unified Test Format version 1.17 to add support for server heartbeat events.
2023-10-12 13:19:16 -07:00
Jib
556557255a
PYTHON-3598 Add Command(Succeeded|Failed)Event.database_name property (#1368) 2023-10-06 10:45:41 -04:00
Jib
6787187f70
PYTHON-1744: Clean-Up, remove setdefault on multi/upsert calls (#1369) 2023-09-13 12:33:33 -04:00
Steven Silvester
1a249386cf
PYTHON-3723 Add search index management helpers (#1224) 2023-07-14 09:51:19 -05:00
Noah Stapp
72e9180558
PYTHON-3795 Simplify db.cursor_command api arguments (#1307) 2023-07-13 13:48:50 -07:00
Noah Stapp
cae124c32c
PYTHON-3588 Expose an API to create a cursor from a command response (#1263) 2023-06-28 14:19:04 -07: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
acc6605ea1
PYTHON-3522 Increase test timeout for Windows (#1181)
Temporarily skip CSOT GridFS tests on Windows.
2023-04-05 11:24:27 -07:00
Julius Park
ccade9bc05
PYTHON-3351 Provide access to raw result document when the server returns an error for a command (#1125) 2022-12-02 12:52:01 -08: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
8abeb882b4
PYTHON-3452 Skip SDAM test that relies on retryWrites on MMAPv1 (#1071) 2022-10-10 12:48:42 -07: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
Shane Harvey
1575e53ef7
PYTHON-3409 Retry flakey CSOT tests twice (#1046) 2022-08-22 16:19:30 -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
13e2715af0
PYTHON-3312 Convert SDAM integration tests to unified (#1028) 2022-08-03 15:34:16 -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