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

Tellier Benoit resolved JAMES-2642.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.3.0

https://github.com/linagora/james-project/pull/2105 Contributed these tests

> Alias integration tests
> -----------------------
>
>                 Key: JAMES-2642
>                 URL: https://issues.apache.org/jira/browse/JAMES-2642
>             Project: James Server
>          Issue Type: New Feature
>          Components: integrationTests
>            Reporter: Rene Cordier
>            Priority: Major
>             Fix For: 3.3.0
>
>
> In /server/mailet/integration-testing write integration tests for the alias 
> feature
> *Basic*
> {code:java}
> Given [email protected] with a [email protected] alias
> When [email protected] sends a mail to [email protected]
> Then [email protected] receives it{code}
> *Forward compatibility*
> Forwards are handled for users with alias
> {code:java}
> Given [email protected] with a [email protected] alias
> And [email protected] is forwarding emails to [email protected]
> When [email protected] sends a mail to [email protected]
> Then [email protected] receives it{code}
> I can forward an email to a user with an alias
> {code:java}
> Given [email protected] with a [email protected] alias
> And [email protected] is forwarding emails to [email protected]
> When [email protected] is sending an email to [email protected]
> Then [email protected] receives it{code}
> *Group compatibility*
> A user can register in a group via his alias
> {code:java}
> Given [email protected] with a [email protected] alias
> And a group [email protected] with [email protected] as a member
> When [email protected] is sending an email to [email protected]
> Then [email protected] receives it{code}
> A group can have an alias
> {code:java}
> Given a group [email protected] with [email protected] as a member
> And I create a [email protected] for [email protected]
> When [email protected] is sending an email to [email protected]
> Then [email protected] receives it{code}
> *Cascading aliases*
> {code:java}
> Given [email protected] with a [email protected] alias
> And [email protected] with a [email protected] alias
> When [email protected] is sending an email to [email protected]
> Then [email protected] receives the mail{code}
>  
> *Corner cases*
> Several users can have the same alias.
> {code:java}
> Alice create [email protected]
> Bob create [email protected]
> When Cedric sends a mail to [email protected]
> Then Alice and Bob receives it{code}
> +Note+: we can not prevent bob and alice from having the same alias easily



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to