summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* s/restish/falcon/Barry Warsaw2014-11-158-36/+354
|\
| * Port to current Falcon git head.Barry Warsaw2014-11-021-5/+5
| |
| * Complete the conversion from restish to falcon, modulo a clean up pass. AllBarry Warsaw2014-08-144-5/+112
| | | | | | | | REST tests pass. This requires an as yet unmerged internal change to falcon.
| * Lists and pagination are ported.Barry Warsaw2014-08-132-24/+95
| |
| * Domains are ported to falcon.Barry Warsaw2014-08-131-0/+14
| |
| * Make preferences work.Barry Warsaw2014-08-131-0/+67
| |
| * Get addresses.rst, i.e. /<api>/addresses working.Barry Warsaw2014-08-122-2/+16
| |
| * First pass at converting to falcon for the REST API layer.Barry Warsaw2014-08-121-5/+50
|/ | | | | Currently, only /<api>/system and its subpaths work, but basic auth does work too. Requires a refactoring modification to falcon.
* Use print functions consistently through, and update all __future__ imports toBarry Warsaw2014-04-281-1/+1
| | | | | | | | reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
* * Fixed a crash in the REST server when searching for nonmembers viaBarry Warsaw2014-04-152-6/+128
| | | | | | | | ``/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.
* Add an email address to an existing user via the REST API.Barry Warsaw2014-04-141-0/+83
|\
| * Posting an invalid email address string to the user/addresses endpoint Florian Fuchs2014-04-141-0/+12
| | | | | | | | now returns a 400 status code
| * * Added an API endpoint to POST new email addresses to a user resource.Florian Fuchs2014-04-131-0/+35
| | | | | | | | * Updated docs.
* | Trunk mergeBarry Warsaw2014-04-148-8/+77
|\|
| * Bump copyright years.Barry Warsaw2014-01-018-8/+8
| |
| * Add lists/<list-id>/archivers as the resource end-point.Barry Warsaw2013-11-271-20/+63
| | | | | | | | | | | | We won't set archivers in the list's configuration. Add doctests and unittests for archivers.
| * Unit tests for enabling/disabling archivers.Joanna Skrzeszewska2013-09-181-0/+26
| |
* | Aurélien Bompard's import-from-2.1 branch, with cleanup and fixes.Barry Warsaw2014-04-141-1/+2
|/
* Tweaks and fixes by Barry.Barry Warsaw2013-03-211-34/+50
|
* Removed unused `default_count` argument and remove one wrapping level in ↵Florian Fuchs2013-03-201-7/+7
| | | | paginate decorator
* Fixed some comments in pagination testFlorian Fuchs2013-03-201-5/+7
|
* REST API: Added pagination functionality to list, member and user collections.Florian Fuchs2013-03-201-0/+127
| | | | This is related to LP: #1156529.
* * Non-queue runners should not create ``var/queue`` subdirectories. Fixed byBarry Warsaw2013-01-201-0/+9
|\ | | | | | | Sandesh Kumar Agrawal. (LP: #1095422)
| * Test added to non_queue_runner bugSandesh Kumar Agrawal2013-01-171-0/+7
|/
* Bump copyright years.Barry Warsaw2013-01-017-7/+7
|
* * List styles are supported through the REST API. Get the list of availableBarry Warsaw2012-12-301-0/+47
| | | | | | | | | | | styles (by name) via `.../lists/styles`. Create a list in a specific style by using POST data `style_name=<style>`. (LP: #975692) Also: * Rewrite list.rst and some of configuration.rst to be more readable as documentation. Bad-path tests are moved to unittests. * Some improvements to printing lists as part of REST responses. This eliminates the ugly u''-prefixes on strings.
* * 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.
* Flesh out a few more tests.Barry Warsaw2012-12-171-2/+34
|
* * Simplify moderator.rst and requests.rst so they serve a better purpose asBarry Warsaw2012-12-171-1/+1
| | | | | | | | | | documentation. Move non-documentation tests into a separate unittest file. * Separate out the doctests for IRequest from the doctests for app/moderator.py and place the latter in a separate file. * Fix typo in app/membership.py (s/send_goodbye_msg/send_goodbye_message), but LP: #1091321 tracks more needed fixes in this area.
* * 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-317-182/+69
| | | | | The code base is now also `python2.7 -3` clean, although there are still some warnings in 3rd party dependencies. LP: #1073506
* * You can now verify and unverify an email address through the REST API.Barry Warsaw2012-09-221-1/+73
| | | | | | | POST to .../addresses/<email>/verify and .../addresses/<email>/unverify respectively. The POST data is ignored. It is not an error to verify or unverify an address more than once, but verifying an already verified address does not change its `.verified_on` date. (LP: #1054730)
* * The link between members and the mailing lists they are subscribed to, isBarry Warsaw2012-09-041-5/+5
| | | | | | | | | | | | | | | now via the RFC 2369 `list_id` instead of the fqdn listname (i.e. posting address). This is because while the posting address can change if the mailing list is moved to a new server, the list id is fixed. (LP: #1024509) + IListManager.get_by_list_id() added. + IListManager.list_ids added. + IMailingList.list_id added. + Several internal APIs that accepted fqdn list names now require list ids, e.g. ISubscriptionService.join() and .find_members(). + IMember.list_id attribute added; .mailing_list is now an alias that retrieves and returns the IMailingList. - list_id added (LP: #1024509)
* - Remove an obsolete script.Barry Warsaw2012-04-221-2/+3
| | | | - Fix up one more use of config.db global.
* - Module modernization by adding the print_function() import.Barry Warsaw2012-04-225-52/+57
| | | | - Update many tests to use the transaction() context manager.
* * Mailing list resources now have a `member_count` attribute which gives theBarry Warsaw2012-03-151-2/+51
|\ | | | | | | number of subscribed members. Given by Toshio Kuratomi.
| * Unittest to show that adding members to a list is reflected in the rest apitoshio2012-03-151-1/+43
| |
* | Schema change. After discussion at Pycon, we decided to change "real_name" toBarry Warsaw2012-03-151-2/+2
|/ | | | | | | | | | | "display_name" across the board. * `IMailingList.real_name` -> `IMailingList.display_name` * `IUser.real_name` -> `IUser.display_name` * `IAddress.real_name` -> `IAddress.display_name` * Schema changes: - real_name -> display_name (mailinglist, user, address)
* * Held messages can now be moderated through the REST API. Mailing listBarry Warsaw2012-01-302-1/+108
| | | | | | | | | | | | | | | 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-016-6/+6
|
* Remove extraneous `test_suite()` functions. zope.testrunner willBarry Warsaw2011-10-306-48/+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.
* * Preferences for addresses, users, and members can be accessed, changed, andBarry Warsaw2011-09-232-0/+104
| | | | | | deleted through the REST interface. Hierarchical, combined preferences for members, and system preferences can be read through the REST interface. (LP: #821438)
* * Getting the memberships for a non-existent address did not give a 404 errorBarry Warsaw2011-09-132-3/+62
| | | | (LP: #848103). Given by Stephen A. Goss.
* * Four new events are created, and notifications are sent during domainBarry Warsaw2011-09-021-0/+11
| | | | | | | | | | lifecycle changes: - DomainCreatingEvent - sent before the domain is created - DomainCreatedEvent - sent after the domain is created - DomainDeletingEvent - sent before the domain is deleted - DomainDeletedEvent - sent after the domain is deleted * Using the above events, when a domain is deleted, associated mailing lists are deleted. (LP: #837526)
* * You can now query or change a member's `delivery_mode` attribute throughBarry Warsaw2011-09-011-1/+11
|\ | | | | | | the REST API (LP: #833132). Given by Stephen A. Goss.
* | * PATCHing an invalid attribute on a member did not give a 400 errorBarry Warsaw2011-09-011-0/+16
| | | | | | | | (LP: #833376). Given by Stephen A. Goss.
* | * Getting the roster or configuration of a nonexistent list did not give aBarry Warsaw2011-09-011-0/+89
| | | | | | | | 404 error (LP: #837676). Given by Stephen A. Goss.
* | * New REST resource http://.../<domain>/lists can be GETed in order to findBarry Warsaw2011-08-301-0/+72
|/ | | | | all the mailing lists in a specific domain (LP: #829765). Given by Stephen A. Goss.
* * DELETE users via the REST API. (LP: #820660)Barry Warsaw2011-08-141-0/+64
|