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 "Tellier Benoit (JIRA)" <se...@james.apache.org> on 2019/03/08 01:17:00 UTC

[jira] [Closed] (JAMES-2665) [Integration Tests] Webadmin restore API

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

Tellier Benoit closed JAMES-2665.
---------------------------------

> [Integration Tests] Webadmin restore API
> ----------------------------------------
>
>                 Key: JAMES-2665
>                 URL: https://issues.apache.org/jira/browse/JAMES-2665
>             Project: James Server
>          Issue Type: New Feature
>            Reporter: Trần Tiến Đức
>            Priority: Major
>             Fix For: 3.4.0
>
>
> In cassandra and memory in `/server/protocols/jmap-integration-testing`, write following tests to restore 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.
> {code:java}
> Given an user with emails present in the vault
> When admin is using restore with a query matching some of those mails
> Then the selected emails should be restored in user's mailbox and not be present in the vault anymore{code}
> *Note* : can vary queries, 1 or multiple mails restored, etc
> {code:java}
> Given an user with emails present in the vault
> When admin is using restore with a query not matching any email
> Then no emails should be restored in user's mailbox{code}
> {code:java}
> Given an user with no emails in the vault
> When admin is using restore
> Then nothing should happen{code}
>  
> {code:java}
> Given an user with emails present in the vault
> When admin is using restore multiple times with the same matching query
> Then the result should be idempotent{code}
>  
> {code:java}
> Given user1 and user2 with emails present in their vault
> When admin is using restore multiple times with the same matching query on user1's vault
> Then user1's selected emails should be restored, but not user2's emails{code}
>  
> {code:java}
> Upon mailbox deletion of the user
> Then his mails should go the vault
> When admin is using restore with a query matching some of those mails
> Then the selected emails should be restored in user's mailbox and not be present in the vault anymore{code}
>  
> {code:java}
> Upon moving a mail from a mailbox to an other
> When admin is using restore with a query matching this mail
> Then the mail should not be restored in the first mailbox, as it shouldn't be present in the vault in the first place{code}
>  
>  
> **IMAP and JMAP**
> We need those test cases being conducted with messages that have been deleted by both IMAP and JMAP processes.



--
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