Commit Graph

84 Commits

Author SHA1 Message Date
Shane Harvey
7d2095dc45 PYTHON-1719 Stop testing getpreverror on MongoDB 4.1+ 2019-02-01 11:05:26 -08:00
Prashant Mital
4cdd3450ac
PYTHON-1670: Implement Unified URI Options (#386) 2019-01-17 10:02:37 -08:00
Shane Harvey
ecc852c322 PYTHON-1673 Mongos pinning for sharded transactions
In a sharded transaction, a session is pinned to the mongos server
selected for the initial command. All subsequent commands in the same
transaction are routed to the pinned mongos server.
2018-12-06 15:28:58 -08:00
Bernie Hackett
587e448b69 PYTHON-1604 - Stop testing reindex with mongos and MongoDB 4.1+ 2018-07-03 12:44:30 -07:00
Bernie Hackett
749c1a2f0b PYTHON-1467 - PyMongo no longer supports Python 2.6 2018-07-02 15:15:43 -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
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
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
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
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
022da1f5a7 PYTHON-1563 Init ClientContext before test
Increase connect timeout to reduce test flakes.
2018-06-04 14:44:23 -07:00
Bernie Hackett
cb85eb02a2 PYTHON-1563 - Avoid import deadlocks in the test suite 2018-06-03 07:34:26 -07:00
Bernie Hackett
335cb97a34 PYTHON-1278, PYTHON-1553 - Support OP_COMPRESSED 2018-05-22 11:44:21 -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
876fa50dbd PYTHON-1508 Transaction tests require 3.7.7 2018-04-25 16:04:05 -07:00
Bernie Hackett
5b9257644f PYTHON-1464 - Implement SCRAM-SHA-256 2018-03-06 17:54:40 -08:00
Shane Harvey
5f3f398ff1 PYTHON-1415 Fail CI when test suite cannot connect 2018-02-26 15:50:56 -08:00
Bernie Hackett
4fa72033dd PYTHON-1488 - Fix auth tests for MongoDB 3.7 2018-02-26 15:32:55 -08:00
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -08:00
Shane Harvey
8c3c56218b PYTHON-1414 Jython takes a long time to connect.
Raise Jython memory limit for enterprise auth tests.
2017-11-16 13:42:47 -08:00
Shane Harvey
8b1aa3aafa PYTHON-1339 Retryable single-statement writes.
Add retryWrites MongoClient and URI setting.
Retry once for supported single-statement write operations including:
insert_one, update_one, delete_one, find_one_and_update, find_one_and_replace,
find_one_and_delete, update and remove with multi=False, and find_and_modify.
2017-10-30 14:23:16 -04:00
A. Jesse Jiryu Davis
df018e88e2 PYTHON-1332 - Gossip $clusterTime 2017-10-12 09:08:38 -04:00
A. Jesse Jiryu Davis
3cba982db9 PYTHON-1332 - Test lsid with all commands 2017-09-29 14:52:26 -04:00
A. Jesse Jiryu Davis
9923be5509 Don't drop test user at end of tests 2017-09-11 17:50:07 -04:00
A. Jesse Jiryu Davis
1057562df0 PYTHON-1332 - Update sessions tests for auth 2017-09-11 17:38:52 -04:00
A. Jesse Jiryu Davis
d0da78ae54 PYTHON-1332 - Pool server sessions
Also check if the topology supports sessions, error otherwise.
2017-09-01 18:18:26 -04:00
A. Jesse Jiryu Davis
0d1424ae31 PYTHON-1313 - Fix replset tests 2017-08-01 17:57:07 -04:00
A. Jesse Jiryu Davis
72e61277b2 Deprecate db.authenticate and db.eval
PYTHON-1313, and PYTHON-1315.
2017-08-01 16:30:42 -04:00
Bernie Hackett
b90295d806 PYTHON-1221 - Skip test_ipv6 with TLS and no ipaddress module 2017-02-17 13:55:50 -08:00
Shane Harvey
6142f761e7 PYTHON-1216 Tests should pass without MongoDB running 2017-02-17 13:55:50 -08:00
Bernie Hackett
ba6ef88d10 PYTHON-1026 - Single member replica set testing 2016-11-15 15:25:04 -08:00
Bernie Hackett
c1a7bdfd4e PYTHON-1026 - Make test suite resilient against elections 2016-10-27 10:42:44 -07:00
Shane Harvey
5905a86785 PYTHON-1075 Support running the entire test suite with SSL/TLS
SSL connections are configurable via the environment variables
"CLIENT_PEM", "CA_PEM", and "CERT_REQS".
2016-09-28 16:34:14 -07:00
Bernie Hackett
e89ba4bcd0 PYTHON-1026 - Remove test assumption about primary host 2016-09-21 11:15:43 -07:00
Shane Harvey
b057cd47e8 PYTHON-1075 Support running the entire test suite with TLS 2016-08-02 17:15:02 -07:00
A. Jesse Jiryu Davis
a2f97f92a4 PYTHON-1105 Configurable heartbeatFrequencyMS. 2016-07-08 16:30:56 -04:00
Bernie Hackett
1ee5e27f9a Fix testing with no server 2016-06-24 10:28:18 -07:00
A. Jesse Jiryu Davis
2964f53423 Test failures with capitalized hostname. 2016-06-20 15:27:17 -07:00
aherlihy
d98a745700 PYTHON-1067 - Implement SDAM Monitoring 2016-06-14 15:20:19 +02:00
Bernie Hackett
f282babff0 PYTHON-926 - ReadPreference.NEAREST shouldn't pick arbiters. 2015-05-07 14:50:38 -07:00
Bernie Hackett
4026787edf Fix docstring. 2015-04-20 15:04:54 -07:00
Bernie Hackett
bc5e7d6ac9 PYTHON-905 - Fix $readPreference with query modifiers. 2015-04-20 15:02:17 -07:00
Bernie Hackett
aec685b374 Fix up copyright dates. 2015-03-25 11:55:02 -07:00
aherlihy
70c06d11a9 PYTHON-813 Removed client_knobs where no longer needed 2015-03-11 13:03:59 -07:00
aherlihy
fa1466179f PYTHON-813 Added support for serverSelectionTimeoutMS 2015-03-09 12:38:24 -07:00
A. Jesse Jiryu Davis
47a736da89 PYTHON-799 Avoid deadlock in Cursor destructor with PyPy.
Use a background thread to periodically close destroyed
cursors instead of killing them directly from Cursor.__del__.
2015-01-05 15:21:51 -05:00
A. Jesse Jiryu Davis
8a64f261fd Fix how unittests check for "enableTestCommands" server option. 2014-12-12 10:33:39 -05:00
A. Jesse Jiryu Davis
7adf3e6ec5 Tests detect when Mongo Orchestration has enabled test commands. 2014-12-09 15:56:14 -05:00
A. Jesse Jiryu Davis
0e222c4c4c Rename "set_name" to "replica_set_name".
Rename the attributes of IsMaster, ServerDescription, TopologyDescription, and
TopologySettings from "set_name" to "replica_set_name" for greater clarity.
2014-11-17 20:29:16 -05:00
A. Jesse Jiryu Davis
c2d4ca1a13 Fix require_test_commands decorator for unittests. 2014-11-13 15:48:45 -05:00