Commit Graph

204 Commits

Author SHA1 Message Date
Shane Harvey
6de82d2526 PYTHON-1874 Fix coll.aggregate() when result is missing the "ns" field 2019-06-14 10:57:27 -07:00
Prashant Mital
81529713ba
PYTHON-1699 Add database level aggregate helper 2019-06-12 16:37:39 -07:00
Prashant Mital
749116287a
PYTHON-1783 Decode user-facing documents but not internal driver-server
communications.
2019-04-16 15:01:42 -07:00
Shane Harvey
11967eb160 PYTHON-1784 Add filter support to list_collection_names
Adhere to enumerate collection spec for setting nameOnly when filter
is provided to allow filtering based on collection options.
2019-03-22 17:06:51 -07:00
Shane Harvey
da2ba8d7ed PYTHON-1709 Always use codec_options in Database.current_op 2019-03-13 11:51:25 -07:00
Shane Harvey
c77a0d8e1f PYTHON-1719 Stop testing getpreverror on MongoDB 4.1+ 2019-01-31 17:00:26 -08:00
Shane Harvey
d43ca118f9 PYTHON-1654 Ignore $clusterTime in test_command assertion 2018-10-09 15:55:10 -07:00
Bernie Hackett
356eed66f5 PYTHON-1607 - Stop testing eval and SystemJS with MongoDB 4.1+ 2018-07-03 12:44:40 -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
9dd16cefc4 PYTHON-1549 Pop time fields before comparing last error responses 2018-05-03 09:57:46 -07:00
Bernie Hackett
5b9257644f PYTHON-1464 - Implement SCRAM-SHA-256 2018-03-06 17:54:40 -08:00
Bernie Hackett
4fa72033dd PYTHON-1488 - Fix auth tests for MongoDB 3.7 2018-02-26 15:32:55 -08:00
Bernie Hackett
cacc0ab877 PYTHON-1459 - Remove uses of the forceerror command 2018-02-13 09:59:23 -08:00
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -08:00
Bernie Hackett
f107c08754 PYTHON-1355 - list_collections improvements 2017-10-26 16:50:19 -07:00
jagrut
8468dfdd41 PYTHON-1355 Implement Collections Enumeration spec. (#336)
New method Collection.list_collections.
2017-10-24 14:15:01 -07: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
72e61277b2 Deprecate db.authenticate and db.eval
PYTHON-1313, and PYTHON-1315.
2017-08-01 16:30:42 -04:00
Bernie Hackett
018afe4b80 PYTHON-1258 - Fix test_command for MongoDB 3.5+ 2017-03-25 13:08:00 -07:00
Bernie Hackett
e3b3d88928 PYTHON-1229 - Set max MongoDB version to 3.5.0 2017-02-17 13:55:50 -08:00
Bernie Hackett
b530755cfc PYTHON-1229 - Update another agg test for MongoDB 3.5+ 2017-02-17 13:55:50 -08:00
Bernie Hackett
9a6fdc1f8f PYTHON-1229 - Update aggregate tests for MongoDB 3.5+
The aggregate command now requires either the 'cursor' or 'explain'
option.
2017-02-17 13:55:50 -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
Bernie Hackett
e89ba4bcd0 PYTHON-1026 - Remove test assumption about primary host 2016-09-21 11:15:43 -07:00
Luke Lovett
b36a4345fd PYTHON-1101 - Support sending writeConcern for commands that write. 2016-08-11 14:02:22 -07:00
Bernie Hackett
1ee5e27f9a Fix testing with no server 2016-06-24 10:28:18 -07:00
Bernie Hackett
53a7bea492 PYTHON-1022 - Drop support for Python 3.2
This change removes the u() helper from bson.py3compat
and all of its uses in the driver and tests. PyPy3 continues
to be supported since, even though it is based on python 3.2.5,
it has always supported the u string prefix.

The README and install docs are now explicit about PyPy(3) support.
2016-06-15 10:05:43 -07:00
Bernie Hackett
98dcaa2363 PYTHON-1056 - Disallow double quotes in database names 2016-03-02 16:25:50 -05:00
Luke Lovett
dde4a658b5 PYTHON-981 - Implement ReadConcern. 2015-11-18 14:12:28 -08:00
A. Jesse Jiryu Davis
06b32a00ab PYTHON-1003 Test _list_collections uses one socket at a time. 2015-10-16 17:06:06 -04:00
Bernie Hackett
f5eed9707c Fix up profiling tests for MongoDB 3.1.x 2015-09-11 16:28:36 -07:00
Luke Lovett
6a0d85451e Fix authentication error in test_authenticate_multiple for MongoDB 2.2 sharded. 2015-06-25 14:23:08 -07:00
Bernie Hackett
d3aa09a165 PYTHON-895 - Fix _list_collections OP_GET_MORE for legacy servers.
This also pedantically fixes the same issue for list_indexes, which
can't technically fail in the same way since you are limited
to 64 indexes on a collection.
2015-04-14 12:03:47 -07:00
Bernie Hackett
aec685b374 Fix up copyright dates. 2015-03-25 11:55:02 -07:00
Bernie Hackett
c87424e7af PYTHON-856 - as_class -> document_class
This commit changes the name of the as_class option
in CodecOptions to document_class, to match the name
of the MongoClient option.
2015-03-09 14:32:42 -07:00
Bernie Hackett
4fd6f8a0b1 PYTHON-854 max_pool_size -> maxPoolSize
With this change the max_pool_size named parameter to
MongoClient is removed. It is replaced by the maxPoolSize
MongoDB URI option, which can be passed in a URI, or as a
keyword argument to MongoClient.
2015-03-09 10:08:13 -07:00
Bernie Hackett
0b9d79fb92 Move another legacy test. 2015-03-06 08:32:18 -08:00
Bernie Hackett
21e1e1d67f PYTHON-850 - Fix an authentication test. 2015-02-26 16:40:45 -08:00
A. Jesse Jiryu Davis
7f42430978 PYTHON-847 Remove disconnect(), synonym of MongoClient.close().
close() seems more standard among MongoDB drivers.
2015-02-25 14:52:34 -05:00
Bernie Hackett
a817fa9a28 PYTHON-821 - Add test_legacy_api.py 2015-02-19 09:32:14 -08:00
Bernie Hackett
30af616009 PYTHON-821 - Migrate most tests to new the CRUD API. 2015-02-13 08:46:43 -08:00
A. Jesse Jiryu Davis
a2c13090d8 PYTHON-826 Move codec_options submodule from pymongo to bson. 2015-02-02 09:38:49 -05:00
A. Jesse Jiryu Davis
60b6dc6408 Clean up a stray user. 2015-01-26 16:38:16 -05:00
A. Jesse Jiryu Davis
301bf8066c Replace more tearDowns with addCleanup. 2015-01-26 16:38:16 -05:00
A. Jesse Jiryu Davis
0a75f04384 Remove pre-MongoDB-2.0 version checks from tests. 2015-01-26 16:19:12 -05:00
behackett
c07e543e58 PYTHON-820 - API changes for find/find_one to comply with CRUD spec.
- Changed parameter names (default values and behaviors remain the same):
  - spec (spec_or_id in find_one) -> filter
  - fields -> projection
  - partial -> allow_partial_results

- The "timeout" option is renamed to "no_cursor_timeout" with its default
  changed to False.

- The tailable, await_data, and exhaust options will be replaced with a
  cursor_type option. Valid values:
  - cursor.NON_TAILABLE
  - cursor.TAILABLE
  - cursor.TAILABLE_AWAIT
  - cursor.EXHAUST

- The following options are added:
  - oplog_replay (bool - default False) - only valid with tailable cursors
    against the oplog.
  - modifiers (document - default None) - A dict of query modifiers. See
    http://docs.mongodb.org/manual/reference/operator/query-modifier/#modifiers for
    options.

- The following options are removed, replaced by the "modifiers" option:
  - max_scan
  - snapshot

- The as_class option is removed. Use Collection.with_options instead.
2015-01-19 22:10:56 -08:00
Bernie Hackett
755d5c74eb PYTHON-814 - API and behavior changes for Database.command.
Database.command no longer obeys Database.read_preference or
Database.codec_options. Explicit parameters have been added
for both options. See the ticket for a full explanation.
2015-01-09 13:18:36 -08:00
A. Jesse Jiryu Davis
89466cd3f9 Clean up test_auto_ref_and_deref_list. 2014-12-22 14:49:11 -06:00
Bernie Hackett
1b1457ab1f PYTHON-677 - Finish transition to WriteConcern. 2014-12-20 22:34:48 -08:00