Commit Graph

37 Commits

Author SHA1 Message Date
Bernie Hackett
e6b0f3847d PYTHON-1581 - Deprecate Collection/Cursor count 2018-06-18 10:50:26 -07:00
Shane Harvey
a15c8283dc PYTHON-1584 Skip maxScan tests on 4.1+ 2018-06-12 10:20:49 -07:00
Bernie Hackett
f847be3fcb PYTHON-1502 - Deprecate the snapshot cursor option 2018-03-22 08:47:34 -07:00
Bernie Hackett
1736f702a0 PYTHON-1469 - Ignore unexpected error fields in tests 2018-02-20 13:46:48 -08:00
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -08:00
Bernie Hackett
036188a832 PYTHON-1385 - Publish command responses in _first_batch 2017-11-09 10:24:18 -08:00
Bernie Hackett
f107c08754 PYTHON-1355 - list_collections improvements 2017-10-26 16:50:19 -07:00
A. Jesse Jiryu Davis
df018e88e2 PYTHON-1332 - Gossip $clusterTime 2017-10-12 09:08:38 -04:00
Shane Harvey
3e778334e7 PYTHON-1299 Remove test logic for MongoDB <2.6. 2017-09-29 12:09:24 -07:00
A. Jesse Jiryu Davis
a4245ee649 Ensure TestGlobalListener cleans up
This test left unclean global state that broke sessions tests with auth
(PYTHON-1332).
2017-09-13 13:35:34 -04:00
A. Jesse Jiryu Davis
7b1cbace17 PYTHON-1217 - Deprecate the "modifiers" find option 2017-07-24 12:40:15 -04:00
Bernie Hackett
dc3048c79b PYTHON-1254 - Fix test_find_and_get_more for 3.5+ 2017-03-14 12:58:16 -07:00
Bernie Hackett
ba62a400ff PYTHON-1236 - Always publish tuples for connection_id 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
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
aherlihy
d98a745700 PYTHON-1067 - Implement SDAM Monitoring 2016-06-14 15:20:19 +02:00
Luke Lovett
dde4a658b5 PYTHON-981 - Implement ReadConcern. 2015-11-18 14:12:28 -08:00
aherlihy
5396444f3c PYTHON-978 - Use killCursors command 2015-11-18 12:57:48 -08:00
aherlihy
1a3aeea426 PYTHON-978 - Use find/getMore commands 2015-11-18 12:57:47 -08:00
Bernie Hackett
01eb25b2b0 PYTHON-979 - Update fsyncUnlock helper for command monitoring 2015-11-18 12:57:47 -08:00
Bernie Hackett
ec47de71f2 PYTHON-979 - Update currentOp helper for command monitoring 2015-11-18 12:57:47 -08:00
Bernie Hackett
101f704744 PYTHON-952 - Redact command and reply documents for sensitive commands 2015-10-11 14:19:16 -07:00
Bernie Hackett
5c9f97e66c PYTHON-952 - Fix global tests when auth is enabled 2015-10-11 09:48:24 -07:00
Bernie Hackett
6c494079a7 PYTHON-952 - Minor test fix 2015-10-09 17:59:23 -07:00
Bernie Hackett
28885b25e8 PYTHON-952 - API improvements
This commit implements the following simplifications and improvements:

- The Subscriber ABC has been renamed to CommandListener
- The subscribe function has been renamed to register
- The COMMAND constant has been removed
- The get_subscribers function has been removed
- Command listeners can now be registered per MongoClient instance
  instead of just globally
2015-10-09 17:03:51 -07:00
Bernie Hackett
a2a83c005f PYTHON-952 - Publish events for uses of _first_batch 2015-09-30 10:14:04 -07:00
Bernie Hackett
62e180ac2b PYTHON-952 - More robust delete_many / remove tests 2015-09-23 17:41:49 -07:00
Bernie Hackett
173046ef01 PYTHON-952 - Avoid killCursors in tests 2015-09-10 11:33:31 -07:00
Bernie Hackett
e89a60afe4 PYTHON-952 - Make tests more predictable 2015-09-10 10:20:32 -07:00
Bernie Hackett
b80fa6d632 PYTHON-952 - Bulk write operations monitoring
This change adds monitoring of bulk write operations (i.e.
Collection.bulk_write, Collection.insert_many, Collection.insert with multiple
documents, Bulk.execute, etc.). It also fixes bugs in conversion of legacy
write results to write command result format and conversion of legacy queries
to find command documents. Finally, it adds an operation_id attribute to the
published events to tie related events together.
2015-09-10 09:10:19 -07:00
Bernie Hackett
0e4f79c7c3 PYTHON-952 - Non-bulk write operation monitoring 2015-08-21 12:47:08 -07:00
Bernie Hackett
5dba74c005 PYTHON-952 - killCursors monitoring 2015-08-17 16:22:19 -07:00
Bernie Hackett
202215d3a4 PYTHON-952 - Publish explain commands when $explain is used 2015-08-14 12:19:50 -07:00
Bernie Hackett
0bc75c1281 Fix monitoring test under auth 2015-08-12 18:25:25 -07:00
Bernie Hackett
07d2199477 PYTHON-952 - Fix duration measurements.
We weren't including the time to decode responses in
a number of places. This commit also fixes an issue with
handling "cursor not found" errors from mongos versions
older than 2.4.
2015-08-12 14:04:21 -07:00
Bernie Hackett
fa4a6a39d3 PYTHON-952 - Query and getMore monitoring
This commit adds support for monitoring queries and getMore
operations, including getMore operations for command cursors
(e.g. aggregate cursor getMore). It also fixes a bug in duration
calculation.
2015-08-11 12:19:28 -07:00
Bernie Hackett
f0a85a4869 PYTHON-952 - Basic command monitoring
This commit adds support for publishing events when commands
(ismaster, findAndModify, listCollections, etc.) start and
succeed or fail. See the new module, pymongo.monitoring, for
details.

This commit only adds basic infrastructure and support for
monitoring generic commands. Support for monitoring queries,
getMores, killCursors, and write operations are forthcoming.
2015-08-11 11:39:03 -07:00