You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Rene Cordier (JIRA)" <se...@james.apache.org> on 2019/01/15 03:12:00 UTC

[jira] [Created] (JAMES-2642) Alias integration tests

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 bob@domain.tld with a bob-alias@domain.tld alias
When alice@domain.tld sends a mail to bob-alias@domain.tld
Then bob@domain.tld receives it{code}

*Forward compatibility*

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

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

*Group compatibility*

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

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

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

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