james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Duprat (JIRA)" <server-...@james.apache.org>
Subject [jira] [Resolved] (JAMES-2713) [Integration Tests] Webadmin delete and purge APIs
Date Thu, 18 Apr 2019 07:03:00 GMT

     [ 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


Mime
View raw message