summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests/test_lists.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename metadata key for clarityBarry Warsaw2017-08-041-0/+1
|
* Updated rest/lists.py to handle list name error exceptions and addedMark Sapiro2017-02-191-0/+22
| | | | | | tests for for the exceptions. Enhanced the InvalidListNameError exception to return the invalid name.
* Remove the dependency on httplib2.Barry Warsaw2017-02-061-94/+97
| | | | Closes #42
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Merge branch 'hide-system-disabled-archivers' into 'master' Barry Warsaw2016-11-261-5/+3
|\ | | | | | | | | | | | | | | | | | | | | | | Don't show the disabled archivers in the REST API Previously, system-disabled archivers were shown in the REST API. As a result it was possible to enable them without a validation error, but they would stay disabled on the next API GET call (their actual activation status depends on the list-specific *and* the system-wide status). Because one can't add a configuration overlay to the running REST server in testing mode, the prototype archiver was disabled in the testing configuration. This is where most of the changes in this commit come from. See merge request !87
| * Fix testsAurélien Bompard2016-08-181-1/+1
| |
| * Don't show the disabled archivers in the REST APIAurélien Bompard2016-08-181-6/+4
| | | | | | | | | | | | | | Because one can't add a configuration overlay to the running REST server in testing mode, the prototype archiver was disabled in the testing configuration. This is where most of the changes in this commit come from.
* | Split registration (subscription) and unsubscription:Barry Warsaw2016-09-131-1/+1
|/ | | | | | | | * events * notices * handlers Also, be sure to do only one `leave` command per email.
* New template system. Closes #249Barry Warsaw2016-07-161-0/+232
| | | | | The new template system is introduced for API 3.1. See ``src/mailman/rest/docs/templates.rst`` for details.
* Tweaks and clean up.Barry Warsaw2016-04-291-26/+99
| | | | | | | | * Add NEWS entry. * De-duplicate emails in the sequence passed to the model's ISubscriptionService.unsubscribe_members() method. * Modify the semantics of the DELETE method to return a mapping of addresses to boolean status.
* Add batch unsubscribe option to REST API.Harshit Bansal2016-04-281-0/+33
|
* Clean up the rest directory.Barry Warsaw2016-03-251-9/+0
|
* Add a test for header-matches on missing lists.Barry Warsaw2016-02-291-5/+0
| | | | Also: Opportunistically remove ^L for better coverage results.
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* Cleanups, corner case fixes, and coverage.Barry Warsaw2015-12-311-0/+6
|
* Bump coverage to 100%Barry Warsaw2015-12-221-2/+38
|
* Expose the "bump digest" and "send digest" functionality though the REST APIBarry Warsaw2015-12-221-3/+74
| | | | | | | via the ``<api>/lists/<list-id>/digest`` end-point. GETting this resource returns the ``next_digest_number`` and ``volume`` as the same values accessible through the list's configuraiton resource. POSTing to the resource with either ``send=True``, ``bump=True``, or both invokes the given action.
* Rework pagination to fix the 'start' and 'total_size' valuesAurélien Bompard2015-11-041-7/+7
|
* LP: #1432239 - Make sure acceptable aliases are deleted before the mailingBarry Warsaw2015-03-241-0/+16
| | | | list is deleted.
* 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
|
* Lots of REST test fixes.Barry Warsaw2014-12-151-5/+5
|
* 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.
* Complete the conversion from restish to falcon, modulo a clean up pass. AllBarry Warsaw2014-08-141-0/+18
| | | | REST tests pass. This requires an as yet unmerged internal change to falcon.
* Lists and pagination are ported.Barry Warsaw2014-08-131-0/+82
|
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* 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
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* * 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.
* * Python 2.7 is not required. Python 2.6 is no longer officially supported.Barry Warsaw2012-10-311-24/+8
| | | | | 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-11/+11
| | | | - 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
|/
* 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 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.