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 bt...@apache.org on 2018/08/27 02:40:00 UTC

[4/5] james-project git commit: JAMES-2457 Turn request logging off when testing large mail

JAMES-2457 Turn request logging off when testing large mail

This consume significant amount of memory and do not affect correctness


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

Branch: refs/heads/master
Commit: 52cde217ae4be2691b1ea23ee3e8a0d504fc6f23
Parents: 397dd78
Author: Benoit Tellier <bt...@linagora.com>
Authored: Fri Aug 24 09:11:16 2018 +0000
Committer: Benoit Tellier <bt...@linagora.com>
Committed: Mon Aug 27 02:38:56 2018 +0000

----------------------------------------------------------------------
 .../james/jmap/methods/integration/SetMessagesMethodTest.java     | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/52cde217/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java
index 28b42d9..af15f8b 100644
--- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java
+++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java
@@ -127,6 +127,7 @@ import com.google.common.io.ByteStreams;
 
 import io.restassured.RestAssured;
 import io.restassured.builder.RequestSpecBuilder;
+import io.restassured.filter.log.LogDetail;
 import io.restassured.http.ContentType;
 import io.restassured.parsing.Parser;
 
@@ -1356,6 +1357,8 @@ public abstract class SetMessagesMethodTest {
 
     @Test
     public void setMessagesWithABigBodyShouldReturnCreatedMessageWhenSendingMessage() {
+        RestAssured.enableLoggingOfRequestAndResponseIfValidationFails(LogDetail.HEADERS);
+
         String messageCreationId = "creationId1337";
         String fromAddress = USERNAME;
         String body = Strings.repeat("d", BIG_MESSAGE_SIZE);


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