summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Clean up REST bits.Barry Warsaw2016-05-141-9/+8
|
* Fix Flake8 errorsAurélien Bompard2016-05-041-1/+1
|
* Allow merging users from the REST interfaceAurélien Bompard2016-05-041-0/+19
|
* 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
|
* Fix some tests.Barry Warsaw2016-04-031-2/+2
|
* Add coverage and NEWS.Barry Warsaw2016-04-021-32/+42
|
* Sort chains and pipelines before returning themSimon Hanna2016-04-021-2/+4
| | | | Update tests to check for return values
* Add tests for exposed chains and pipelinesSimon Hanna2016-04-021-0/+30
|
* Don't use `flake8: noqa`.Barry Warsaw2016-04-011-1/+1
| | | | | | | This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps.
* Add a test to verify the problem isn't in core.Barry Warsaw2016-03-311-0/+14
|
* Import order flake8 plugin.Barry Warsaw2016-03-274-4/+4
| | | | Fix lots of import order errors discovered by the new plugin.
* Clean up the rest directory.Barry Warsaw2016-03-2520-148/+7
|
* Closes #199Barry Warsaw2016-03-221-0/+49
| | | | | New subscription requests are rejected if there is already one pending. With thanks to Anirudh Dahiya. (Closes #199)
* Fix #198 - duplicate owner subscription errorBarry Warsaw2016-03-051-0/+16
| | | | | | Trying to subscribe an address as a list owner (or moderator or nonmember) which is already subscribed with that role produces a server error.
* Add NEWS and clean up.Barry Warsaw2016-03-031-23/+27
|
* Exposed goodbye_message_uri attribute through REST API.Harshit Bansal2016-03-031-0/+37
|
* Add a test for header-matches on missing lists.Barry Warsaw2016-02-292-8/+9
| | | | Also: Opportunistically remove ^L for better coverage results.
* Review suggestions: rename the new index column to positionAurélien Bompard2016-02-291-2/+2
|
* Expose the header matches in the REST APIAurélien Bompard2016-02-291-0/+71
|
* Handle AlreadySubscribedError in REST.Barry Warsaw2016-02-151-0/+15
| | | | | | | | When approving a subscription request via the REST API, for a user who is already a member, return an HTTP 409 Conflict code instead of the previous server traceback (and resulting HTTP 500 code). Closes #193
* Prevent moderation of messages held for a different list.Barry Warsaw2016-02-071-0/+23
| | | | Closes: #161
* Add a set_preferred() helper.Barry Warsaw2016-02-062-17/+9
| | | | | This refactors the setting of a user's preferred address to the first in their list of linked addresses.
* Also add a test for the global ban listAurélien Bompard2016-01-201-0/+12
|
* Give a meaningful message when a banned member tries to joinAurélien Bompard2016-01-201-0/+13
|
* Clean up the branch for landing.Barry Warsaw2016-01-131-0/+88
| | | | | | | | | | | | * Add NEWS * Update copyright years. * Adjust for new IAPI.path_to() interface. * Style. * Remove some unreachable code. * Boost coverage. * Change some Bad Requests into Not Founds. * Do not include `list_id` in resource JSON for global bans. * Rephrase some doctests.
* Use common idiom for converting the UUID.Barry Warsaw2016-01-131-4/+4
| | | | Wrap lines.
* Fix getting a list member through the 3.1 APIAurélien Bompard2016-01-131-0/+18
|
* Refactor API differences into a separate class.Barry Warsaw2016-01-132-1/+13
| | | | | | | | | | | We now have an IAPI interface which defines methods to convert to/from UUIDs to their REST representations, and to calculate the API-homed full URL path to a resource. Add implementations API30 and API31 to handle the two different implementations so far. This also simplifies the various path_to() calls. Also: Add support for diff_cover to tox.ini to check that all differences against the master branch have full test coverage.
* Refactor API contexts.Barry Warsaw2016-01-132-9/+10
| | | | | | Rather than sprinkle API version string tests all over the place, create an IAPI interface which encapsulates the differences between API 3.0 and 3.1, and arrange for this to be used to convert to and from UUIDs.
* Boost coverage.Barry Warsaw2016-01-091-3/+48
|
* Boost coverage.Barry Warsaw2016-01-081-0/+50
|
* Support SQL queries for CollectionMixin._get_collectionAurélien Bompard2016-01-061-0/+10
|
* More coverage.Barry Warsaw2016-01-041-0/+22
|
* Boost coverage.Barry Warsaw2016-01-031-0/+82
| | | | | | Use coverage.ini to ignore a few common idioms, so as to reduce code clutter. Invoke coverage slightly differently in the tox.ini.
* Happy New Year.Barry Warsaw2016-01-0217-17/+17
|
* Cleanups, corner case fixes, and coverage.Barry Warsaw2015-12-314-3/+88
|
* Major push for completing issue #121. Now in API 3.1, all UUIDs must be theBarry Warsaw2015-12-304-7/+362
| | | | | | | | | 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).
* 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.
* Digests improvements:Barry Warsaw2015-12-191-3/+123
| | | | | | | * digestable -> digests_enabled * nondigestable: removed * Exposed digests_enabled, digest_send_periodic, digest_volume_frequency in REST.
* Fix the error code for a corner case.Barry Warsaw2015-12-171-3/+3
| | | | | | | I.e. when the URL is good, but the request dictionary contains a bogus attribute, you should get a 400 error, not a 404. Also, fix some comments.
* Remove code accidentally pulled in from another branch.Barry Warsaw2015-12-171-8/+0
|
* Many improvements to listconf.py.Barry Warsaw2015-12-171-46/+199
| | | | | | | | | | | | | | | | Closes #182 * Improve the documentation, especially in describing how to PUT and PATCH to list configuration subresources. * Improve the return codes for many error corner cases. Specifically, this makes more consistent when a 400 error is returned or a 404 error is returned. * Improve the handling of some weird corner cases, and add tests. * Fix the setting of error response reasons by not trying to .format() into a bytes object (which isn't allowed in Python 3). * Add lots of comments to the code, which improves the readability of all the twisty little turns. * 100% code coverage for listconf.py!
* adds tests for new digest attributesYashu Seth2015-12-161-0/+2
|
* _resource_as_dict() may not return None.Barry Warsaw2015-12-121-1/+1
| | | | Add some assertions to prove this is always the case.
* Allow a Member's moderation_action to be changed by the REST API.Aurélien Bompard2015-12-081-0/+13
| | | | Cleanups by Barry. Closes !67
* Rework pagination to fix the 'start' and 'total_size' valuesAurélien Bompard2015-11-042-53/+58
|
* Add another code-path test.Barry Warsaw2015-09-231-0/+40
|
* Merge branch 'maxking/mailman-add-alternate' into mr30Barry Warsaw2015-07-311-1/+42
|\ | | | | | | | | By POSTing to a user resource with an existing unlinked address, you can link the address to the user. Given by Abhilash Raj.