Commit Graph

4191 Commits

Author SHA1 Message Date
Shane Harvey
5bff89d932 Add TODO to omit writeConcern 2018-04-16 09:57:45 -04:00
Shane Harvey
ab73a7a164 Re-sync transactions tests 2018-04-16 09:57:45 -04:00
Shane Harvey
b4f153a811 Add and test default_transaction_options 2018-04-16 09:57:45 -04:00
Shane Harvey
e5f5fa229b Revert read_preference pinning 2018-04-16 09:57:45 -04:00
Shane Harvey
a2937aa8eb Revert "Pin transactions to a single server address"
This reverts commit 25bc0858ff566abfabadeca4a3fea177e9c2697c.
2018-04-16 09:57:45 -04:00
Shane Harvey
c6488c117d Ending a session always aborts the transaction 2018-04-16 09:57:45 -04:00
Shane Harvey
c66235176e Test find/getMore with stmtId in transactions 2018-04-16 09:57:45 -04:00
Shane Harvey
3b02e59b70 Add errorCodeName assertion to transaction tests 2018-04-16 09:57:45 -04:00
Shane Harvey
0967c7ed6c Add startTransaction:true to the start of all transactions
Also add autocommit:false to all commands in transactions.
2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
fca0058566 Ignore all server/network errs in abort_transaction 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
4579cd1eb0 Test multi-deletes in transactions 2018-04-16 09:57:45 -04:00
Shane Harvey
f710664f9a Test abortTransaction ignores TransactionAborted errors 2018-04-16 09:57:45 -04:00
Shane Harvey
6f217ec3f2 Test incrementing txnNumber with retryable writes and transactions 2018-04-16 09:57:45 -04:00
Shane Harvey
6eb0e13393 Support causal consistency with transactions 2018-04-16 09:57:45 -04:00
Shane Harvey
712637ac8b Refactor transaction attributes into _Transaction class
Re-sync transaction spec tests.
2018-04-16 09:57:45 -04:00
Shane Harvey
015cdf1fb6 Session may be None in retryable write code path 2018-04-16 09:57:45 -04:00
Shane Harvey
673de92ec2 Transactions inherit writeConcern from client 2018-04-16 09:57:45 -04:00
Shane Harvey
49494c2548 Add support for start_transaction with-statement 2018-04-16 09:57:45 -04:00
Shane Harvey
656aa1e703 Pin transactions to a single server address 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
116d2c278f Update _finish_transaction()
Check if the session is ended, and always increment txnNumber.
2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
6671ee242c Parse sessionOptions from tests, not transactionOptions 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
b41c2af3a0 Enable session.abort_transaction() 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
3177616f53 Re-sync spec tests from #e9791101 2018-04-16 09:57:45 -04:00
Shane Harvey
cd92850b36 Test changing transaction readPreference
Add original readPreference to getMores to simplify code check.
2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
17d94ea8af fix bulkWrite transaction test, import transactional write tests 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
c305f14e18 cache Query/GetMore.as_command, send stmtId with commit/abortTransaction
fix comparison of insertedIds in test_transactions.py
2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
54ba1b34f3 rewrite how ClientSession handles _ServerSession 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
00878a2f53 new logic for error scenarios 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
9df87b6401 prototype transaction tests 2018-04-16 09:57:45 -04:00
Bernie Hackett
04de1697cb PYTHON-1436 - Automate Atlas connectivity tests 2018-04-09 17:04:15 -07:00
Mateusz Piotrowski
d672c40524 Stylize GitHub correctly (#351)
Fix a link to PyMongo GitHub source
2018-04-06 13:30:32 -07:00
Bernie Hackett
cb2c67eadd PYTHON-1515 - Add MongoDB 3.4 benchmarks 2018-04-06 13:26:20 -07:00
Bernie Hackett
73478106eb PYTHON-1463 - Implement read / write concern spec 2018-04-06 12:55:09 -07:00
Bernie Hackett
8f7aa361a5 PYTHON-1487 - Resync GriFS spec tests 2018-04-05 15:12:52 -07:00
Bernie Hackett
3cd6f32e7c PYTHON-1509 - Update auth docs for SCRAM-SHA-256 2018-03-30 19:17:35 -07:00
Bernie Hackett
6c09ce0a1e PYTHON-1454 - Document the status of MONGODB-CR in MongoDB 2018-03-30 19:05:14 -07:00
Bernie Hackett
1c7085d371 PYTHON-1458 - Make MD5 digest optional in GridFS 2018-03-30 18:59:19 -07:00
Bernie Hackett
0b72e369f3 PYTHON-1501 - Deprecate max_scan 2018-03-30 18:58:03 -07:00
Bernie Hackett
5423c5b0a0 PYTHON-1465 - Agg, cmd, and index examples for docs 2018-03-30 16:49:34 -07:00
Bernie Hackett
15f62db70c Remove SUSE 11 from CI testing
It ships OpenSSL 0.9.8, which doesn't support
TLS 1.2, making it impossible to install packages
from PyPI once all previous protocols are disabled.
2018-03-22 17:03:27 -07:00
Bernie Hackett
f847be3fcb PYTHON-1502 - Deprecate the snapshot cursor option 2018-03-22 08:47:34 -07:00
Shane Harvey
a30eb87db3 PYTHON-1495 Document PythonAnywhere incompatibility 2018-03-08 13:00:08 -08:00
Bernie Hackett
f3cec2b7b2 PYTHON-1496 - Support Sphinx 1.7 2018-03-06 20:30:11 -08:00
Bernie Hackett
5b9257644f PYTHON-1464 - Implement SCRAM-SHA-256 2018-03-06 17:54:40 -08:00
Bernie Hackett
00968e5bb1 PYTHON-1457 - Implement SASLprep 2018-03-06 17:54:40 -08:00
Bernie Hackett
3733971e35 PYTHON-1456 - Use SSLContext.check_hostname with Python 3.7+
Continue using our bundled match_hostname otherwise.
2018-03-06 17:25:49 -08:00
Bernie Hackett
e2332fb5f2 PYTHON-1494 - Test PyPy 3.5 in Evergreen 2018-03-06 15:52:58 -08:00
Bernie Hackett
fd68e161fe PYTHON-1461 - Test Python 3.7 in Evergreen 2018-03-06 15:52:58 -08:00
Bernie Hackett
1e9296abf2 Start work on 3.7 2018-03-06 15:52:08 -08:00
Shane Harvey
a9e2192919 BUMP 3.6.1 2018-02-28 19:00:09 -08:00