You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Antoine Duprat (JIRA)" <se...@james.apache.org> on 2019/04/18 07:03:00 UTC

[jira] [Resolved] (JAMES-2713) [Integration Tests] Webadmin delete and purge APIs

     [ https://issues.apache.org/jira/browse/JAMES-2713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Duprat resolved JAMES-2713.
-----------------------------------
    Resolution: Fixed

merged

> [Integration Tests] Webadmin delete and purge APIs
> --------------------------------------------------
>
>                 Key: JAMES-2713
>                 URL: https://issues.apache.org/jira/browse/JAMES-2713
>             Project: James Server
>          Issue Type: New Feature
>            Reporter: Rene Cordier
>            Priority: Major
>             Fix For: 3.4.0
>
>
> In cassandra and memory in `/server/protocols/jmap-integration-testing`, write following tests to delete and purge mails from the supertrash feature. Make sure as well to setup correctly guice bindings to prove that this new feature integrates well into our system.
> *Delete API*
> {code}
> Given an user with emails present in the vault
> When admin is using delete with the message ID of one of those emails
> Then the email should be deleted from user's vault
> {code}
> {code}
> Given an user with emails present in the vault
> When admin is using delete with the message ID that doesn't exist
> Then no email should be deleted from user's vault
> {code}
> *Purge API*
> {code}
> Given an user with emails present in the vault matching a configured retention policy
> When admin is using purge
> Then the emails matching the configured retention policy should be deleted from user's vault
> {code}
> {code}
> Given an user with emails present in the vault not matching a configured retention policy
> When admin is using purge
> Then no emails should be deleted from user's vault
> {code}
> {code}
> Given an user with no emails present in the vault
> When admin is using purge
> Then nothing should happen
> {code}
> {code}
> Given two users with emails present in their vault matching a configured retention policy
> When admin is using purge
> Then the emails matching the configured retention policy should be deleted from both users' vault
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org