[ 
https://issues.apache.org/jira/browse/JAMES-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796697#comment-16796697
 ] 

Tellier Benoit commented on JAMES-2665:
---------------------------------------

https://github.com/linagora/james-project/pull/2233 FileMailRepository support 
for DeletedMessagesVault is merged

> [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-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to