summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests/test_users.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove the dependency on httplib2.Barry Warsaw2017-02-061-48/+48
| | | | Closes #42
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Import order flake8 plugin.Barry Warsaw2016-03-271-1/+1
| | | | Fix lots of import order errors discovered by the new plugin.
* Clean up the rest directory.Barry Warsaw2016-03-251-14/+0
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Major push for completing issue #121. Now in API 3.1, all UUIDs must be theBarry Warsaw2015-12-301-0/+78
| | | | | | | | | hex representations of a UUID, not the int representation. Also: * Some general code cleanup. * Fix issue 185 (REST server crash when subscribing a user without a preferred address).
* Fixes #136 on the 3.0 maintenance branch.Barry Warsaw2015-07-131-0/+27
| | | | | * The REST API incorrectly parsed `is_server_owner` values when given explicitly in the POST that creates a user. (Closes #136)
* * When creating a user via REST using an address that already exists, butBarry Warsaw2015-05-101-2/+35
| | | | | isn't linked, the address is linked to the new user. Given by Aurélien Bompard.
* Plumb the subscription policy through the REST API.Barry Warsaw2015-04-151-1/+2
|
* * When deleting a user object, make sure their preferences are also deleted.Barry Warsaw2015-03-201-0/+21
| | | | Given by Abhishek. (LP: #1418276)
* * When deleting a user via REST, make sure all linked addresses are deleted.Barry Warsaw2015-02-091-69/+114
| | | | Found by Andrew Stuart. (LP: #1419519)
* * When creating a user with an email address, do not create the user recordBarry Warsaw2015-02-051-0/+22
| | | | | if the email address already exists. Given by Andrew Stuart. (LP: #1418280)
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-1/+1
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-3/+0
|
* All the REST tests pass.Barry Warsaw2014-12-151-0/+57
|
* Lots of REST test fixes.Barry Warsaw2014-12-151-1/+1
|
* Checkpointing.Barry Warsaw2014-11-301-3/+2
| | | | | | | | | | By using `six` I think I have most of the imports squared away. There's probably still uses of `unicode` built-ins that need fixing. The idea is to first get the test suite running (which it doesn't yet), and then to fix tests. There's a bug in lazr.config which requires us to patch it for now.
* * Fixed a crash in the REST server when searching for nonmembers viaBarry Warsaw2014-04-151-1/+4
| | | | | | | | ``/find`` which we've never seen before, because those members only have an address record, not a user record. This requires a small change in the API where the JSON response's ``address`` key now contains the URL to the address resource, the new ``email`` key contains the email address as a string, and the ``user`` key is optional.
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* * A user's password can be verified by POSTing to .../user/<id>/login. TheBarry Warsaw2012-12-261-2/+85
| | | | | | data must contain a single parameter `cleartext_password` and if this matches, a 204 (No Content) will be returned, otherwise a 403 (Forbidden) is returned. (LP: #1065447)
* * Finish rewrite of users.rst doctest.Barry Warsaw2012-12-261-2/+81
| | | | | | | * Migrate non-doctests to the test_users.py unittest. * Add more corner cases to the unittest. * Be sure to return a 404 when trying to get the address records of a non-existant user.
* * Deleting a user through the REST API also deletes all the user's linkedBarry Warsaw2012-11-051-0/+87
| | | | | | addresses and memberships. (LP: #1074374) Also: Clean up pyflakes warning by removing an obsolete __all__ entry.
* * Python 2.7 is not required. Python 2.6 is no longer officially supported.Barry Warsaw2012-10-311-6/+2
| | | | | The code base is now also `python2.7 -3` clean, although there are still some warnings in 3rd party dependencies. LP: #1073506
* - Module modernization by adding the print_function() import.Barry Warsaw2012-04-221-3/+4
| | | | - Update many tests to use the transaction() context manager.
* * Held messages can now be moderated through the REST API. Mailing listBarry Warsaw2012-01-301-1/+1
| | | | | | | | | | | | | | | resources now accept a `held` path component. GETing this returns all held messages for the mailing list. POSTing to a specific request id under this url can dispose of the message using `Action` enums. * `IRequests` interface is removed. Now just use adaptation from `IListRequests` directly (which takes an `IMailingList` object). * `handle_message()` now allows for `Action.hold` which is synonymous with `Action.defer` (since the message is already being held). * `IListRequests.get_request()` now takes an optional `request_type` argument to narrow the search for the given request. - also, print_function is now a standard __future__ import. The template has been updated, but add this to modules as you edit them.
* copybumpBarry Warsaw2012-01-011-1/+1
|
* Remove extraneous `test_suite()` functions. zope.testrunner willBarry Warsaw2011-10-301-8/+0
| | | | | | | | | automatically do the right thing in most cases. Keep test_suite() in test_documentation.py since these dynamically set up docs tests properly. Refactor test_passwords.py so that base class tests aren't bogusly run. Also, remove test_membership.py which was essentially disabled because it was testing the MM2 membership API.
* * Getting the memberships for a non-existent address did not give a 404 errorBarry Warsaw2011-09-131-3/+0
| | | | (LP: #848103). Given by Stephen A. Goss.
* * DELETE users via the REST API. (LP: #820660)Barry Warsaw2011-08-141-0/+64