Commit Graph

161 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
Steven Silvester
d4b4b740dd
PYTHON-4509 Update to FIPS host with Python 3.8 binary (#1688) 2024-06-17 12:04:12 -05:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta (#1629) 2024-06-06 09:01:24 -07:00
Steven Silvester
3004523ab0
PYTHON-4439 Use environment variable to detect dataLake test (#1637) 2024-05-13 14:14:47 -05: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
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
Shane Harvey
c3458e9d8e
PYTHON-4155 Add perf benchmark with TLS enabled (#1481) 2024-01-22 10:39:26 -08: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
Noah Stapp
015073d4c1
PYTHON-3988 Python Test Suite still uses legacy isMaster Command when… (#1395) 2023-10-17 10:55:18 -07:00
Noah Stapp
14640256cb
PYTHON-3940 Pytest Config Improvements (#1373) 2023-09-13 11:31:43 -07:00
Shane Harvey
02de1ba00e
PYTHON-3909 Fix OIDC reauth for bulk write operations, remove unneeded AUTH_MECH (#1353)
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
2023-08-14 17:41:24 -07:00
Steven Silvester
f7738b8665
PYTHON-3887 Remove custom test command in setup.py (#1350) 2023-08-09 20:11:38 -05:00
Steven Silvester
5d6d8ca68e
PYTHON-3885 Use tox in remaining Evergreen Tests (#1347) 2023-08-09 14:13:59 -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
c5652336ef
PYTHON-3671 Use default server selection timeout in test setup (#1191) 2023-04-14 14:45:57 -07:00
Julius Park
92e6150d84
PYTHON-3493 Bulk Write InsertOne Should Be Parameter Of Collection Type (#1106) 2022-11-10 14:19:55 -08:00
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
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
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
5b85ad2bcf
PYTHON-3391 Skip unsupported CSOT tests on serverless (#1030) 2022-08-03 13:30:41 -07:00
Steven Silvester
b37b146ac8
PYTHON-3053 Key Management API (#958) 2022-06-30 12:35:29 -05:00
Shane Harvey
ede07f44dd
PYTHON-3250 Speed up majority writes in test suite (#936) 2022-05-03 14:41:24 -07:00
Shane Harvey
1d6914f749
PYTHON-3191 Fix test_sigstop_sigcont with Versioned API (#916) 2022-03-31 12:25:45 -07:00
Shane Harvey
c58950a8d4
PYTHON-3186 Avoid SDAM heartbeat timeouts on AWS Lambda (#912)
Poll monitor socket with timeout=0 one last time after timeout expires.
This avoids heartbeat timeouts and connection churn on Lambda and other FaaS envs.
2022-03-30 14:29:46 -07:00
Shane Harvey
9ada6543d5
PYTHON-3174 Remove noisy running Topology check for main test client (#898) 2022-03-15 14:52:47 -07:00
Julius Park
f5eec45250
PYTHON-3111 Rename "Versioned API" to "Stable API" in documentation (#867) 2022-02-17 16:23:23 -08:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting (#868) 2022-02-17 06:44:08 -06:00
Julius Park
341d489f38
PYTHON-3088 Update load balancer tests to support dedicated load balancer port (#866) 2022-02-14 11:26:14 -08: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
e27131546c
PYTHON-2998 Remove md5 checksums from gridfs and remove disable_md5 (#776)
Speed up gridfs tests (shaves off about 2 minutes on macOS).
2021-11-04 17:25:11 -07:00
Shane Harvey
8b2eb24c35
PYTHON-2164 Remove client max_bson_size/max_message_size/max_write_batch_size (#766)
Use the hello command instead:
doc = client.admin.command('hello')
max_bson_size = doc['maxBsonObjectSize']
max_message_size = doc['maxMessageSizeBytes']
max_write_batch_size = doc['maxWriteBatchSize']

Also add documentation for TopologyDescription.apply_selector.
2021-11-01 14:26:47 -07:00
Shane Harvey
968ee7ba96
PYTHON-2868 Test Serverless behind a load balancer (#742) 2021-09-23 15:57:57 -07:00
Shane Harvey
11752ed594
PYTHON-2899 Remove code for MongoDB <= 3.4 (#729)
Remove unneeded memoryview to bytes conversion.
2021-09-16 16:53:50 -07:00
Bernie Hackett
ad4315134c PYTHON-2803 Get rid of most uses of 'master'
This change also resolves PYTHON-2848 for MongoDB 4.0.
2021-09-13 12:50:49 -07:00
Prashant Mital
b3118e034e
PYTHON-2162 Remove support for ssl* URI options (#706) 2021-08-19 14:58:31 -07:00
Shane Harvey
6a18027db8
PYTHON-2534 Avoid race in test_pool_paused_error_is_retryable (#704) 2021-08-16 10:27:37 -07:00
Shane Harvey
f541e7731c
PYTHON-2602 Test that pool paused errors are retryable (#681)
Allow client_knobs to be used as a decorator.
2021-07-30 17:56:01 -07:00
Prashant Mital
f07da34f97
PYTHON-2545 Test Atlas Serverless (#664) 2021-07-27 16:35:09 -07:00
Shane Harvey
6d1ebf4597
PYTHON-2798 Workaround windows cert issue with SSL_CERT_FILE (#670) 2021-07-12 14:17:01 -07:00
Prashant Mital
00ed2321ba
PYTHON-2475 Implement Atlas Data Lake prose specification tests (#665)
* PYTHON-2475 Add prose specification tests for Atlas Data Lake

* add prose tests

* Update evergreen config to bootstrap ADL

* add sleep before connecting to ADL

* print buildinfo

* print buildInfo in conditional block

* refactor skiplogic

* remove sleep

* fix debugging code

* Ensure ADL tests run

* ensure suite fails if not connected

* fix test failure

* improve data_lake variable extraction

* review changes
2021-07-07 23:55:52 -07:00
Shane Harvey
354c96a414
PYTHON-2779 Fix topologies field in snapshot reads test (#657) 2021-06-28 15:11:52 -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
6bc5e088af
PYTHON-1272 Fix deadlock when garbage collecting pinned cursors and sessions (#642)
It's not safe to return the pinned connection to the pool from within
Cursor.del because the Pool's lock may be held by a python thread
while the cyclic garbage collector runs. Instead we send the cursor
cleanup request to the client's background thread. The thread will
send killCursors on the pinned socket and then return the socket to
the pool.
Also fixed a similar bug when garbage collecting a pinned session.
2021-06-22 17:29:26 -07:00
Shane Harvey
bf78a9b2ef
PYTHON-2744 Run LB tests against non-LB clusters (#638)
Fix serviceId fallback to make spec test pass.
Fix socket leak when SocketInfo connection handshake fails.
2021-06-15 14:30:01 -07:00