Rene Cordier created JAMES-2642:
-----------------------------------

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


In /server/mailet/integration-testing write integration tests for the alias 
feature

*Basic*
{code:java}
Given b...@domain.tld with a bob-al...@domain.tld alias
When al...@domain.tld sends a mail to bob-al...@domain.tld
Then b...@domain.tld receives it{code}

*Forward compatibility*

Forwards are handled for users with alias
{code:java}
Given b...@domain.tld with a bob-al...@domain.tld alias
And b...@domain.tld is forwarding emails to ce...@domain.tld
When al...@domain.tld sends a mail to bob-al...@domain.tld
Then ced...@domain.tld receives it{code}

I can forward an email to a user with an alias
{code:java}
Given b...@domain.tld with a bob-al...@domain.tld alias
And al...@domain.tld is forwarding emails to bob-al...@domain.tld
When ced...@domain.tld is sending an email to al...@domain.tld
Then b...@domain.tld receives it{code}

*Group compatibility*

A user can register in a group via his alias
{code:java}
Given b...@domain.tld with a bob-al...@domain.tld alias
And a group gr...@domain.tld with bob-al...@domain.tld as a member
When al...@domain.tld is sending an email to gr...@domain.tld
Then b...@domain.tld receives it{code}

A group can have an alias
{code:java}
Given a group gr...@domain.tld with b...@domain.tld as a member
And I create a group-al...@domain.tld for gr...@domain.tld
When al...@domain.tld is sending an email to group-al...@domain.tld
Then b...@domain.tld receives it{code}

*Cascading aliases*
{code:java}
Given b...@domain.tld with a bob-ali...@domain.tld alias
And bob-ali...@domain.tld with a bob-ali...@domain.tld alias
When al...@domain.tld is sending an email to bob-ali...@domain.tld
Then b...@domain.tld receives the mail{code}
 

*Corner cases*
Several users can have the same alias.
{code:java}
Alice create al...@domain.tld
Bob create al...@domain.tld
When Cedric sends a mail to al...@domain.com
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: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to