[
https://issues.apache.org/jira/browse/JAMES-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tellier Benoit resolved JAMES-2688.
-----------------------------------
Resolution: Fixed
Fix Version/s: 3.4.0
https://github.com/linagora/james-project/pull/2256 contributed this
> [Integration Tests] Webadmin export API
> ---------------------------------------
>
> Key: JAMES-2688
> URL: https://issues.apache.org/jira/browse/JAMES-2688
> 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 export 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 export with a query matching some of those emails
> And the task is finished
> Then the specified recipient address should receive an email with the sharing
> link containing the emails{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 export with a query not matching any emails
> And the task is finished
> Then the specified recipient address should receive an email with the sharing
> link containing an empty archive with a text saying there was nothing to
> export{code}
>
> {code:java}
> Given an user with no emails present in the vault
> When admin is using export
> And the task is finished
> Then the specified recipient address should receive an email with the sharing
> link containing an empty archive with a text saying there was nothing to
> export{code}
>
> {code:java}
> Given an user with emails present in the vault
> When admin is using export 'x' times with a same query matching some of those
> emails
> And the 'x' task are finished
> Then the specified recipient address should receive 'x' emails with a sharing
> link containing the same emails (idempotent result){code}
>
> {code:java}
> Given an user with mails present in the vault after a mailbox deletion
> When admin is using export with a query matching some of those mails
> And the task is finished
> Then the specified recipient address should receive an email with the sharing
> link containing the emails{code}
>
> {code:java}
> Given moving a mail from a mailbox to an other
> When admin is using export with a query matching this mail
> Then the specified recipient address should receive an email with the sharing
> link not containing this mail{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: [email protected]
For additional commands, e-mail: [email protected]