james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [01/24] james-project git commit: JAMES-2366 Adding RRT identity integration test
Date Fri, 20 Apr 2018 02:12:46 GMT
Repository: james-project
Updated Branches:
  refs/heads/master e5fcb2ab5 -> c2ad6f777


JAMES-2366 Adding RRT identity integration test

This test was missing


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/d2a151bf
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/d2a151bf
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/d2a151bf

Branch: refs/heads/master
Commit: d2a151bf1da98da9671a8ea4b2e1e600a2f69790
Parents: e5fcb2a
Author: benwa <btellier@linagora.com>
Authored: Wed Apr 11 10:40:30 2018 +0700
Committer: benwa <btellier@linagora.com>
Committed: Thu Apr 19 11:09:54 2018 +0700

----------------------------------------------------------------------
 .../mailets/RecipientRewriteTableIntegrationTest.java  | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/d2a151bf/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/RecipientRewriteTableIntegrationTest.java
----------------------------------------------------------------------
diff --git a/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/RecipientRewriteTableIntegrationTest.java
b/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/RecipientRewriteTableIntegrationTest.java
index 2268a78..fb859aa 100644
--- a/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/RecipientRewriteTableIntegrationTest.java
+++ b/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/RecipientRewriteTableIntegrationTest.java
@@ -80,6 +80,19 @@ public class RecipientRewriteTableIntegrationTest {
     }
 
     @Test
+    public void rrtServiceShouldNotImpactRecipientsNotMatchingAnyRRT() throws Exception {
+        messageSender.connect(LOCALHOST_IP, SMTP_PORT)
+            .sendMessage(FROM, RECIPIENT)
+            .awaitSent(awaitAtMostOneMinute);
+
+        imapMessageReader.connect(LOCALHOST_IP, IMAP_PORT)
+            .login(RECIPIENT, PASSWORD)
+            .select(IMAPMessageReader.INBOX)
+            .awaitMessage(awaitAtMostOneMinute);
+        assertThat(imapMessageReader.readFirstMessage()).isNotNull();
+    }
+
+    @Test
     public void rrtServiceShouldDeliverEmailToMappingRecipients() throws Exception {
         dataProbe.addAddressMapping(RECIPIENT_LOCAL_PART, DEFAULT_DOMAIN, ANY_AT_JAMES);
         dataProbe.addAddressMapping(RECIPIENT_LOCAL_PART, DEFAULT_DOMAIN, OTHER_AT_JAMES);


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message