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 <[email protected]> Authored: Fri Aug 24 09:11:16 2018 +0000 Committer: Benoit Tellier <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
