Commit Graph

4191 Commits

Author SHA1 Message Date
Bernie Hackett
8cc2f72e20 PYTHON-1471 - Reenable arbiter tests on 4.0 and latest 2018-06-04 13:54:38 -07:00
Bernie Hackett
3c36692f40 PYTHON-1532 - Clean up after test_lazy_connect_w0 2018-06-04 13:53:08 -07:00
Bernie Hackett
02191a91ea PYTHON-1544 - Resync SDAM tests 2018-06-03 08:19:06 -07:00
Bernie Hackett
b937130364 PYTHON-1537 - Remove test/high_availability 2018-06-03 08:12:45 -07:00
Bernie Hackett
cb85eb02a2 PYTHON-1563 - Avoid import deadlocks in the test suite 2018-06-03 07:34:26 -07:00
A. Jesse Jiryu Davis
c63c068611 PYTHON-1564 Add DriverInfo to handshake metadata
Allow drivers that wrap PyMongo to add their info to the handshake
metadata, using a "driver" option like:

  MongoClient(driver=DriverInfo("MyDriver", "1.2.3"))

The DriverInfo is appended to PyMongo's own metadata.
2018-06-03 10:04:45 -04:00
Bernie Hackett
981e39281f PYTHON-1529 - No implicit sessions with parallel_scan 2018-06-01 18:32:44 -07:00
Bernie Hackett
54b8058c66 PYTHON-1571 - Skip group tests with MongoDB 4.1+ 2018-06-01 18:29:30 -07:00
Bernie Hackett
83eb724aa2 PYTHON-1570 - Add MongoDB 4.0 to the Evergreen matrix 2018-06-01 18:29:30 -07:00
Shane Harvey
ca6a34f51d PYTHON-1508 SPEC-1097 Resync transaction tests
Database.command without a read_preference defaults to the
transaction's or Primary if the session is not in a transaction
Add runCommand transaction tests.
Update count tests.
2018-06-01 16:29:11 -07:00
Bernie Hackett
3fd6fd9784 PYTHON-1572 - Don't import hash functions until needed 2018-06-01 07:53:25 -07:00
Bernie Hackett
61850357a0 PYTHON-1521 - Use FNV-1a for ObjectId machine bytes 2018-05-31 12:26:53 -07:00
Shane Harvey
714577c83e PYTHON-1508 commitTransaction can be called multiple times
This change allows applications to check if their transaction was commited or
not by repeatedly calling commit until the transaction state is known.
If a session is used after a commit for any operation (not including
another commit), the operation is not part of a transaction and the session's
transaction state is reset.
2018-05-29 14:33:21 -07:00
Shane Harvey
5a9b3340d9 PYTHON-1508 Fix read preference regression in mapreduce 2018-05-24 13:53:22 -07:00
Shane Harvey
3c2432d641 PYTHON-1543 Write operations should raise WTimeoutError 2018-05-23 19:57:00 -07:00
Bernie Hackett
3e075b0a58 PYTHON-1278 - Fix Windows builds 2018-05-22 15:35:39 -07:00
Shane Harvey
5ff33a2a37 PYTHON-1554 Fix datetime decoding memory leak 2018-05-22 13:42:59 -07:00
Shane Harvey
cac0d5548f PYTHON-1508 Remove autoStartTransaction and resync tests
Also use the test file's database name and collection name.
2018-05-22 13:29:41 -07:00
Bernie Hackett
335cb97a34 PYTHON-1278, PYTHON-1553 - Support OP_COMPRESSED 2018-05-22 11:44:21 -07:00
Prashant Mital
505b6ebc37
PYTHON-1558 Use nameOnly option in list_collection_names and collection_names methods 2018-05-18 14:29:44 -07:00
Nikolai Matiushev
72cab9356d PYTHON-1556 Fix compatibility issues with Python >= 3.6 (#352)
Use raw strings to avoid invalid escape sequence warnings in Python >= 3.6
2018-05-15 15:20:03 -07:00
Shane Harvey
5a652be993 PYTHON-1508 Add read_preference to TransactionOptions
All read operations use the transaction's read preference.
Add transaction read preference spec tests.
Remove write test in test_read_preferences.
2018-05-08 11:38:28 -07:00
Shane Harvey
04693ae33a PYTHON-1513 Efficiently read data using memoryview and recv_into
On Python 2, preallocate a bytearray and use slice assignment instead of
using str +=.
On Python 3, preallocate a bytearray and use a memoryview with recv_into.
2018-05-08 11:28:12 -07:00
Shane Harvey
9dd16cefc4 PYTHON-1549 Pop time fields before comparing last error responses 2018-05-03 09:57:46 -07:00
Shane Harvey
7aeec7b56b PYTHON-1508 Remove stmtId from transaction commands
The statement identifier is no longer required by the server.
2018-04-25 16:04:13 -07:00
Shane Harvey
876fa50dbd PYTHON-1508 Transaction tests require 3.7.7 2018-04-25 16:04:05 -07:00
Bernie Hackett
984977ba9e PYTHON-1425 - Implement the auth spec and tests 2018-04-25 10:25:00 -07:00
Bernie Hackett
94c680c7da PYTHON-1436 - Test with only TLSv1.2 2018-04-25 09:04:26 -07:00
Bernie Hackett
6e340f889d Continue work on 3.7 2018-04-25 09:03:48 -07:00
Shane Harvey
537b033327 BUMP 3.7.0b0 2018-04-18 10:03:26 -07:00
Bernie Hackett
d8abb4b3f3 Improve Atlas and TLS documentation 2018-04-17 18:01:16 -07:00
Shane Harvey
958642f74f PYTHON-1508 Transaction beta examples for docs 2018-04-17 16:56:01 -07:00
Shane Harvey
ffcd66561f PYTHON-1508 Add has_label to temporary transaction errors 2018-04-17 16:56:01 -07:00
Shane Harvey
d1ee646d72 PYTHON-1508 Expand transaction documentation 2018-04-17 13:23:52 -07:00
Shane Harvey
a9b48a1242 PYTHON-1508 Remove obsolete transaction tests 2018-04-17 13:23:52 -07:00
Bernie Hackett
d37164e340 PYTHON-1436 - Test pypy3.2 connections to Atlas 2018-04-17 12:03:42 -07:00
Bernie Hackett
03f8d56d8a PYTHON-1436 - Test against Atlas with TLSv1.0 disabled 2018-04-17 12:02:07 -07:00
A. Jesse Jiryu Davis
e945190688 Sync transactions spec tests 2018-04-17 09:37:48 -04:00
A. Jesse Jiryu Davis
a9e643241d PYTHON-1508 Jython-compatible transaction tests 2018-04-17 09:37:47 -04:00
Bernie Hackett
84d0338d39 Update changelog for 3.7 work so far 2018-04-16 21:27:01 -07:00
Bernie Hackett
82c6bdbac1 PYTHON-1526 - Update SCRAM-SHA-256 for spec change 2018-04-16 21:05:10 -07:00
Shane Harvey
1e6b7f7eed PYTHON-1523 Do not send default writeConcern 2018-04-16 14:56:43 -07:00
A. Jesse Jiryu Davis
c194109c0f Test aggregate in transactions 2018-04-16 14:56:11 -07:00
A. Jesse Jiryu Davis
34ab244898 Obsolete workaround in test_transactions.py 2018-04-16 14:56:06 -07:00
A. Jesse Jiryu Davis
9eab96259f Kill sessions before starting transaction test 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
95d8f783c0 Resync transactions spec tests 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
3da3ab4d1a Update transactions test runner 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
8d4626c623 Don't send writeConcern within transaction 2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
61b7d0f042 Configurable read concern with start_transaction 2018-04-16 09:57:45 -04:00
Shane Harvey
09891a4ff3 Bring autoStartTransaction up to spec 2018-04-16 09:57:45 -04:00