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

Rene Cordier updated JAMES-2713:
--------------------------------
    Description: 
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}

  was:
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}


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

Reply via email to