You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2021/07/08 08:50:06 UTC
[james-project] 03/08: JAMES-3610 Fix
SmtpSizeLimitationTest::messageShouldNotBeAcceptedWhenOverSized
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 6fcfc3a25f20e5b4cc6a145d592dacef0a86a25a
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed Jul 7 16:30:06 2021 +0700
JAMES-3610 Fix SmtpSizeLimitationTest::messageShouldNotBeAcceptedWhenOverSized
Maximum line length is exceeded, not the right exception is tested
---
.../src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/mailet/integration-testing/src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java b/server/mailet/integration-testing/src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java
index 9b73aaf..1e2d712 100644
--- a/server/mailet/integration-testing/src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java
+++ b/server/mailet/integration-testing/src/test/java/org/apache/james/smtp/SmtpSizeLimitationTest.java
@@ -76,8 +76,8 @@ class SmtpSizeLimitationTest {
assertThatThrownBy(() ->
messageSender.connect(LOCALHOST_IP, jamesServer.getProbe(SmtpGuiceProbe.class).getSmtpPort())
.authenticate(USER, PASSWORD)
- .sendMessageWithHeaders(USER, USER, Strings.repeat("Long message", 1024)))
- .isEqualTo(new SMTPSendingException(SmtpSendingStep.Data, "500 Line length exceeded. See RFC 2821 #4.5.3.1.\n"));
+ .sendMessageWithHeaders(USER, USER, Strings.repeat("Long message\r\n", 1024)))
+ .isEqualTo(new SMTPSendingException(SmtpSendingStep.Data, "552 Quota exceeded\n"));
}
@Test
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org