summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add an unlinked address to a user via RESTAbhilash Raj2015-07-301-1/+20
|/ | | | | When adding an existing address through REST API, a 400 error was raised even if the address was not linked to any user. Fix that.
* * REST API version 3.1 introduced. Mostly backward compatible with versionBarry Warsaw2015-07-181-0/+61
| | | | | | 3.0 except that UUIDs are represented as hex strings instead of 128-bit integers, since the latter are not compatible with all versions of JavaScript.
* 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)
* * Messages now include a `Message-ID-Hash` as the replacement forBarry Warsaw2015-06-141-1/+2
| | | | | | `X-Message-ID-Hash` although the latter is still included for backward compatibility. Also be sure that all places which add the header use the same algorithm.
* Merge branch 'issue-109' into 'release-3.0'Barry Warsaw2015-06-021-6/+7
| | | | | | | | | | | Closes: #109 * Fix the traceback that occurred when trying to convert a `text/html` subpart to plaintext via the `mimedel` handler. Now, a configuration variable `[mailman]html_to_plain_text_command` in the `mailman.cfg` file defines the command to use. It defaults to `lynx`. (Closes: #109) See merge request !14
* * 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.
* * The default languages from Mailman 2.1 have been ported over. Given byBarry Warsaw2015-05-071-0/+35
| | | | Aurélien Bompard.
* raj-abhilash1's branch to ensure we block release on Falcon 0.3. I moved andBarry Warsaw2015-04-211-0/+53
|\ | | | | | | | | | | renamed his test. Also, backfill a relevant Launchpad bug number.
| * merge trunk and fix merge conflictsAbhilash Raj2015-04-205-51/+300
| |\ | |/ |/|
* | Branch his ready.Barry Warsaw2015-04-171-5/+43
| |
* | Check pointing new subscription moderation REST API.Barry Warsaw2015-04-171-44/+87
| |
* | Checkpointing.Barry Warsaw2015-04-161-49/+170
| |
* | Plumb the subscription policy through the REST API.Barry Warsaw2015-04-152-1/+14
| |
* | A better email validator which actually validates the email address.Barry Warsaw2015-04-151-1/+17
| |
* | Add a test for a reported (but non-reproducible) failure patching a mailing ↵Barry Warsaw2015-04-151-1/+19
| | | | | | | | list's subscription policy.
| * mark the test as an expected failureAbhilash Raj2015-04-161-0/+1
| |
| * Add test case to check a bug in falcon's Request classAbhilash Raj2015-04-161-0/+8
|/
* Abhilash's fix for allowing singleton strings in REST interfaces that alsoBarry Warsaw2015-04-152-0/+65
|\ | | | | | | accept lists of strings.
| * add test for previous bugfixAbhilash Raj2015-04-141-0/+9
| |
* | Trunk mergeBarry Warsaw2015-04-071-0/+55
|\|
| * * Domains now have a list of owners, which are ``IUser`` objects, instead ofBarry Warsaw2015-04-061-0/+55
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the single ``contact_address`` they used to have. ``IUser`` objects now also have a ``is_server_owner`` flag (defaulting to False) to indicate whether they have superuser privileges. Give by Abhliash Raj, with fixes and refinements by Barry Warsaw. (LP: #1423756) * Domains can now optionally be created with owners; domain owners can be added after the fact; domain owners can be deleted. Also, users now have an ``is_server_owner`` flag as part of their representation, which defaults to False, and can be PUT and PATCH'd. Given by Abhilash Raj, with fixes and refinements by Barry Warsaw. (LP: #1423756)
| | * Add lots of test for various bits of domain owners.Barry Warsaw2015-04-061-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A little refactoring of list_of_str() into list_of_strings_validator() which is now put in the validators.py module and used in several places. Python 3 super() style. Add some code and tests to catch <domain>/owners references when <domain> doesn't exist.
| | * Abhilash's branch, pre-cleaning.Barry Warsaw2015-04-061-0/+12
| |/|
| | * * implement left over methodsAbhilash Raj2015-04-061-4/+11
| | | | | | | | | | | | * add and remove owners using the address
| | * * Add `drop_column` inside sqlite check, fix indentationAbhilash Raj2015-03-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | * Change `Owner` to `DomainOwner` * Fix indentation errors in docs * add multiple owners using `add_owners` * all dummy addresses should be using example.com, example.org to avoid conflict ever * add dummy tests
* | | Advertise the subscription policy in the REST APIAurélien Bompard2015-03-311-0/+1
|/ /
* | Merging in several refactorings, and a REST API change.Barry Warsaw2015-03-261-4/+7
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backward Incompatible REST API Changes: * The JSON representation for subscription holds now no longer contains the `password` key. Also, the `address` key has been renamed to `email` for consistency with established terminology and other usage. Other Internal API Changes: * IUserManager has grown a `make_user()` method. Refactorings: * Most uses in the test suite of add_member() have been replaced with a new version of the subscribe() helper. This reduces the surface area of this ancient internal API. Eventually add_member() will have to go away or significantly change with the subscription policy workflow. * hold_subscription() as well as the remaining instances of add_member() now use a namedtuple in their arguments, to keep the signatures manageable.
| * * Refactor add_member() so that it uses a RequestRecord namedtuple.Barry Warsaw2015-03-211-4/+7
| | | | | | | | | | | | * RequestRecord contains no password key so these are not part of the held requests database any more. * Pending record contains `email` now instead of `address`.
* | LP: #1432239 - Make sure acceptable aliases are deleted before the mailingBarry Warsaw2015-03-241-0/+16
|/ | | | list is deleted.
* * When deleting a user object, make sure their preferences are also deleted.Barry Warsaw2015-03-201-0/+21
| | | | Given by Abhishek. (LP: #1418276)
* LP: #1425359: Elaborate on how email addresses with mixed case can subscribeBarry Warsaw2015-03-131-6/+38
|\ | | | | | | to a mailing list.
| * Fixed the issue #1425359 and wrote corresponding tests.black-perl ankprashar@gmail.com2015-03-041-0/+9
|/
* * A new API is provided to support non-production testing infrastructures,Barry Warsaw2015-02-132-0/+84
| | | | | | | | | | | | allowing a client to cull all orphaned UIDs via ``DELETE`` on ``<api>/reserved/uids/orphans``. Note that *no guarantees* of API stability will ever be made for resources under ``reserved``. (LP: #1420083) Also: - Allow @dbconnection methods to be @staticmethods taking only one argument, the store to perform the query on.
* * 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)
* * You can now DELETE an address. If the address is linked to a user, theBarry Warsaw2015-02-051-0/+9
| | | | user is not delete, it is just unlinked.
* * 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-0410-10/+10
|
* Bump copyright years.Barry Warsaw2015-01-0411-11/+11
|
* * ``$cwd`` is now an additional substitution variable for the ``mailman.cfg``Barry Warsaw2015-01-032-0/+108
| | | | | | | | | | | | | file's ``[paths.*]`` sections. A new ``[paths.here]`` section is added, which puts the ``var_dir`` in ``$cwd``. It is made the default layout. * You can now view the contents of, inject messages into, and delete messages from the various queue directories via the ``<api>/queues`` resource. Also: inject_message() and inject_text() now return the filebase of the file injected into the queue directory.
* * You can access the system configuration via the resource pathBarry Warsaw2014-12-263-12/+181
| | | | | | | | | ``/3.0/system/configuration/<section>``. This returns a dictionary with the keys being the section's variables and the values being their value from ``mailman.cfg`` as verbatim strings. You can get a list of all section names via ``/3.0/system/configuration`` which returns a dictionary containing the ``http_etag`` and the section names as a sorted list under the ``sections`` key. The system configuration resource is read-only.
* Deprecate <api>/system path in favor of <api>/system/versions.Barry Warsaw2014-12-261-2/+18
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-2210-30/+2
|
* Trunk merge.Barry Warsaw2014-12-221-0/+174
|\
| * * The address resource now has an additional '/user' sub-resource which canBarry Warsaw2014-12-081-0/+174
| |\ | | | | | | | | | | | | | | | | | | | | | be used to GET the address's linked user if there is one. This sub-resource also supports POST to link an unlinked address (with an optional 'auto_create' flag), and PUT to link the address to a different user. It also supports DELETE to unlink the address. (LP: #1312884) Given by Aurélien Bompard based on work by nicolask.
| | * REST feature: create a user from an existing addressAurélien Bompard2014-12-081-0/+136
| |/ | | | | | | Fixes LP bug #1312884
* | All the REST tests pass.Barry Warsaw2014-12-154-1/+88
| |
* | Lots of REST test fixes.Barry Warsaw2014-12-153-10/+11
| |
* | Two more REST tests passing.Barry Warsaw2014-12-152-8/+8
| |
* | Checkpointing more fixes.Barry Warsaw2014-12-111-2/+4
| |
* | Checkpointing.Barry Warsaw2014-11-308-19/+13
|/ | | | | | | | | | 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.