Commit Graph

2026 Commits

Author SHA1 Message Date
Shane Harvey
92eb90b064 PYTHON-1654 Ignore $clusterTime in test_command assertion
(cherry picked from commit d43ca118f9)
2018-10-09 16:06:46 -07:00
Shane Harvey
a1f2c2517a PYTHON-1650 Always increment txnNumber before starting a retryable write
(cherry picked from commit 6fe00109c1)
2018-10-09 14:37:40 -07:00
Bernie Hackett
bc13d4b655 PYTHON-1606 - Update Ubuntu 12 and Debian 7 testing 2018-07-16 12:24:37 -07:00
Bernie Hackett
a9f08c573a PYTHON-1613 Invalidate cache on changed salt or iterations 2018-07-14 15:33:31 -07:00
Bernie Hackett
8bc2aa67ae PYTHON-1607 - Stop testing eval and SystemJS with MongoDB 4.1+ 2018-07-11 11:49:27 -07:00
Bernie Hackett
c3394affe8 PYTHON-1604 - Stop testing reindex with mongos and MongoDB 4.1+ 2018-07-11 11:49:08 -07:00
Shane Harvey
b63442ace0 PYTHON-1603 Truncate large datetimes properly (#362) 2018-07-09 16:44:22 -07:00
Bernie Hackett
649ae04afe PYTHON-1609 - Fix authing the same user more than once 2018-07-09 16:44:15 -07:00
Prashant Mital
f82706c870 PYTHON-1597 Don't run Change Stream tests on MMAPv1 (#356) 2018-06-26 13:01:20 -04:00
Shane Harvey
4f3b6467ab PYTHON-1598 Fix transaction write concern inheritance 2018-06-26 12:07:12 -04:00
Shane Harvey
98e77ba1d2 PYTHON-1483 Prohibit unack'ed writes with explicit sessions 2018-06-25 13:55:50 -05:00
Bernie Hackett
8573099c4b Move time consuming utf8 tests out of the main suite 2018-06-24 20:45:59 -07:00
stephan-hof
9b632c776c Refactor the the assert into a separate function. 2018-06-24 19:59:16 -07:00
stephan-hof
e113a338e9 Improve the check for legal utf8 in the bson module.
Now python and bson have the same understanding of legal utf8.
2018-06-24 19:59:16 -07:00
Shane Harvey
3b9e99015f PYTHON-1508 Only send readConcern on first command in a transaction 2018-06-24 11:39:23 -04:00
Shane Harvey
05c7c65470 PYTHON-1329 OP_MSG with unacknowledged writes
Replace OP_INSERT/OP_UPDATE/OP_DELETE usage with OP_MSG with moreToCome
flag when the server is 3.6 or greater.
Unack'ed OP_MSG supports bypass_document_validation.
getLastError updatedExisting is always false on mongos after an OP_MSG
unack'ed update.
2018-06-23 11:46:50 -04:00
Bernie Hackett
4d786fd0cd PYTHON-1329 - OP_MSG bulk writes 2018-06-21 16:03:20 -07:00
Shane Harvey
ea8cb6c209 PYTHON-1329 Send/receive commands as OP_MSG
Don't use $query with OP_MSG.
Support compression with OP_MSG.
2018-06-21 15:46:48 -07:00
Shane Harvey
994cf80c7c PYTHON-1545 Resume more getMore errors for ChangeStreams 2018-06-21 12:41:30 -07:00
Prashant Mital
96291c88b0
PYTHON-1565 Add helpers and options for Change Streams Follow-on Work (#355)
PYTHON-1565 Add helpers and options for Change Streams Follow-on Work (#355)

Add MongoClient.watch() and Database.watch().
Add start_at_operation_time to all watch() helpers.
2018-06-21 12:22:59 -07:00
Bernie Hackett
388339e187 PYTHON-1591 - Deprecate Collection.parallel_scan 2018-06-21 12:03:42 -07:00
Bernie Hackett
709b28467f PYTHON-1586 - Deprecate database_names and collection_names 2018-06-18 10:52:11 -07:00
Bernie Hackett
e6b0f3847d PYTHON-1581 - Deprecate Collection/Cursor count 2018-06-18 10:50:26 -07:00
Shane Harvey
9d8024d9ea PYTHON-1590 Avoid thread limit in tests 2018-06-15 13:17:37 -07:00
Shane Harvey
b5e9007af0 PYTHON-1508 PYTHON-1589 Expand where unknown commit label is raised
Remove has_label api.
Bump required server version for transactions.
2018-06-15 11:29:11 -07:00
Shane Harvey
622d33d0cb PYTHON-1545 Support for retryable writeConcernErrors
Return proper BulkWriteResult after a retryable write succeeds.
Reduce retryable writes test suite time from 90 to 30 seconds by
reducing the heartbeat interval.
2018-06-14 09:51:08 -07:00
Shane Harvey
96aaf2f527 PYTHON-1562 Add transaction examples for docs 2018-06-13 18:01:34 -07:00
Shane Harvey
a423dc6b1b PYTHON-1583 Update ChangeStream tests for "drop" operationType 2018-06-12 11:01:10 -07:00
Shane Harvey
adbcc2d6d4 PYTHON-1582 Fix TestChangeStream.test_next_blocks 2018-06-12 11:01:10 -07:00
Shane Harvey
a15c8283dc PYTHON-1584 Skip maxScan tests on 4.1+ 2018-06-12 10:20:49 -07:00
Bernie Hackett
91c3793703 PYTHON-1580 - Implement new count API 2018-06-08 14:27:04 -07:00
Bernie Hackett
bb8130abd8 PYTHON-1273 - Cache SCRAM ClientKey and ServerKey 2018-06-08 14:24:05 -07:00
Bernie Hackett
fc4e8558d6 PYTHON-1574 Don't test TLS with Python26/Windows/MongoDB 4.0+
Python 2.6.6, the last version that shipped installers for
Windows, bundles OpenSSL 0.9.8, which doesn't support TLS 1.1+.
MongoDB 4.0+ requires TLS 1.1+ by default.
2018-06-07 19:23:01 -07:00
Shane Harvey
e4317d286b PYTHON-1508 Retryable commit/abort, has_error_label api
Retryable commitTransaction/abortTransaction.
Retry writes after certain writeConcernErrors.
Add has_error_label api.
Update unacknowledged write concern error messge.
Resync transaction tests and update test runner.
2018-06-07 14:39:52 -07:00
Shane Harvey
96aeb461f9 PYTHON-1545 Consider more errors retryable 2018-06-07 14:37:01 -07:00
Bernie Hackett
64cf053092 PYTHON-1524 - Fix Collection options handling 2018-06-07 07:11:26 -07:00
A. Jesse Jiryu Davis
32d3f0e80b Spelling 2018-06-06 10:17:19 -04:00
Bernie Hackett
577c167c88 PYTHON-1546 - Update various spec tests and adjust runners 2018-06-04 15:44:13 -07:00
Shane Harvey
022da1f5a7 PYTHON-1563 Init ClientContext before test
Increase connect timeout to reduce test flakes.
2018-06-04 14:44:23 -07:00
Bernie Hackett
dbf386c18c PYTHON-1527 - Fix default writeConcern override 2018-06-04 13:56:06 -07:00
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
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
61850357a0 PYTHON-1521 - Use FNV-1a for ObjectId machine bytes 2018-05-31 12:26:53 -07:00