summaryrefslogtreecommitdiff
path: root/src/mailman/app/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Handle deleting nonexistent messages from the message store. Closes: #167Aurélien Bompard2015-12-021-0/+9
|
* * Messages now include a `Message-ID-Hash` as the replacement forBarry Warsaw2015-06-141-44/+45
| | | | | | `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-75' into 'release-3.0'Barry Warsaw2015-06-021-0/+2
| | | | | | Issue #75 - Confirmation messages should not be `Precedence: bulk`. See merge request !15
* * The default languages from Mailman 2.1 have been ported over. Given byBarry Warsaw2015-05-071-2/+0
| | | | Aurélien Bompard.
* Remove old APIs handle_subscription() and hold_subscription().Barry Warsaw2015-05-021-10/+10
|
* Merge branch '1-admin-notify-mchanges' into 'release-3.0'Barry Warsaw2015-05-021-0/+40
| | | | | | | | Honor admin_notify_mchanges with subscription policy When the mailing list's `admin_notify_mchanges` is True, the list owners now get the subscription notification. (Closes: #1) See merge request !4
* Branch his ready.Barry Warsaw2015-04-171-1/+1
|
* Check pointing new subscription moderation REST API.Barry Warsaw2015-04-171-2/+3
|
* Checkpointing.Barry Warsaw2015-04-161-0/+16
|
* Clean up some templates; given by raj-abhilash1Barry Warsaw2015-04-161-12/+6
|\
| * fix tests for previous commitAbhilash Raj2015-04-161-1/+1
| |
* | Plumb the subscription policy through the REST API.Barry Warsaw2015-04-152-17/+62
| |
* | Give the SubscriptionWorkflow a member attribute which gets set to the memberBarry Warsaw2015-04-151-39/+20
| | | | | | | | | | | | | | | | once their subscription is completed. Remove some dead tests. Update an interface.
* | The SubscriptionWorkflow and Registar classes now have both a token and aBarry Warsaw2015-04-152-30/+83
|/ | | | | | | | | | | | "token owner". The latter describes who owns the token --i.e. which phase of the workflow is being waited on. It can either be no one, the subscriber, or the moderator. Tokens and token owners are properly initialized and reset when the workflow is completed, so we always know which step of the process is being waited on. Also, remove ISubscriptionService.join() since this will now be handled by the IRegistrar adapter.
* * Mailing list subscription policy work flow has been completely rewritten.Barry Warsaw2015-04-154-130/+850
|\ | | | | | | | | | | It now properly supports email verification and subscription confirmation by the user, and approval by the moderator using unique tokens. ``IMailingList`` objects now have a ``subscription_policy`` attribute.
| * Prevent replay attacks with the confirmation token.Barry Warsaw2015-04-152-5/+79
| |
| * Remove unused import.Barry Warsaw2015-04-141-1/+0
| |
| * Full test suite passes.Barry Warsaw2015-04-142-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | * Make sure Registrar.discard() removces any workflow state manager state associated with the token, and that this is flushed to SA. * Adjust the email commands to the new IRegistrar API. * Update the IRegistrar interface. * Add IWorkflowStateManager.discard() and make `count` an attribute/property. * Mark two tests as expected failures due to LP: #1444184.
| * Checkpointing.Barry Warsaw2015-04-142-128/+170
| |
| * The SubscriptionWorkflow class doesn't need to include the expiry date in itsBarry Warsaw2015-04-131-0/+28
| | | | | | | | | | | | | | | | | | pendable data since that gets added automatically by the IPendings utility. After the user is subscribed, clean up the saved workflows and reset the token to None. Give the SubscriptionWorkflow a name property for convenience.
| * SubscriptionPolicy is largely done, modulo bugs, and the unknown-unknown ofBarry Warsaw2015-04-131-61/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | course. This commit contains test failures because the next step is to hook everything up. Changes here include: * confirm.txt removes the URL since we can't know that. * Changes to the ConfirmationNeededEvent * Create the Pendable early in the workflow. * Clean up test. * Update IRegistrar docstring.
| * Subscription workflows now support bans.Barry Warsaw2015-04-131-1/+17
| |
| * Subsume hold_subscription() functionality into the subscription workflow.Barry Warsaw2015-04-131-0/+60
| | | | | | | | | | Specifically, log a message and send a notification to the list owners when a subscription is held and the list is so configured.
| * Handle save/restore of the subscription workflow.Barry Warsaw2015-04-131-2/+29
| | | | | | | | | | | | | | | | | | | | To handle the case of restoring a saved workflow, allow the subscriber to be None in the constructor, but assert that it is not None after the first workflow step. Add setters/getters for handling save/restore. In the base workflow interface, rename key to token.
| * Subscription workflow checkpointing.Barry Warsaw2015-04-091-11/+242
| | | | | | | | | | | | | | | | | | | | * TO DO: - hook up sending of confirmation - processing confirmations and continuing workflow - get tokens for saving workflows - integrate with RequestRecord - integrate with hold_subscription - after getting moderator approval, continue workflow
| * Add run_thru() and run_until() to workflow, mostly for testing purposes.Barry Warsaw2015-04-071-2/+4
| |
| * Check pointingBarry Warsaw2015-04-062-1/+24
| |
| * * Refactor test_workflow into a separate module.Barry Warsaw2015-03-292-45/+120
| | | | | | | | | | | | | | | | | | * save_state() -> save() * restore_state() -> restore() * Add push() as the public API for pushing new state on the deque. * Uppercase class attributes. * Add logging on exception. * Minor style fixes.
| * Merge abompard's subpolicy branch port with trunk. Still a WIP.Barry Warsaw2015-03-291-1/+123
|/|
| * Test when confirmations are requiredAurélien Bompard2015-03-271-1/+20
| |
| * Write and move tests for the bare Workflow classAurélien Bompard2015-03-271-32/+42
| |
| * Workflow: allow saving and restoring with an empty queueAurélien Bompard2015-03-271-0/+15
| |
| * Save and restore attributesAurélien Bompard2015-03-261-1/+4
| |
| * Save the workflow state in the databaseAurélien Bompard2015-03-251-0/+15
| |
| * SubscriptionWorkflow: add a test for moderated listsAurélien Bompard2015-03-251-0/+27
| |
| * Restore the features of commit 7301.3.1 which were lost in the mergeAurélien Bompard2015-03-201-1/+1
| |
| * Resurrect Barry's subpolicy branch (lp:~barry/mailman/subpolicy)Aurélien Bompard2015-03-205-99/+184
| |
* | Replace add_member() with subscribe() helper.Barry Warsaw2015-03-261-16/+6
| |
* | Replace add_member() with subscribe().Barry Warsaw2015-03-261-27/+16
| |
* | * Refactor add_member() so that it uses a RequestRecord namedtuple.Barry Warsaw2015-03-214-91/+155
|/ | | | | | * 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: #1425359: Elaborate on how email addresses with mixed case can subscribeBarry Warsaw2015-03-131-0/+26
| | | | to a mailing list.
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-3/+2
|
* Bump copyright years.Barry Warsaw2015-01-049-9/+9
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-229-43/+11
|
* One more test fixed.Barry Warsaw2014-12-181-2/+2
|
* Fix test_bounces.Barry Warsaw2014-12-171-1/+1
|
* app/docs and app.tests all pass now.Barry Warsaw2014-12-151-0/+12
|
* Core tests pass.Barry Warsaw2014-12-151-4/+4
|
* CheckpointingBarry Warsaw2014-12-121-1/+1
|
* Fix test_inject.pyBarry Warsaw2014-12-111-1/+1
|