You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2017/01/05 08:33:58 UTC
[jira] [Resolved] (SLING-6406) TestLogServlet should register
filter using HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_PATTERN
[ https://issues.apache.org/jira/browse/SLING-6406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chetan Mehrotra resolved SLING-6406.
------------------------------------
Resolution: Fixed
Fixed with 1777433. It now uses following header names
* X-Sling-TestName and X-Sling-TestClass instead of older X-Sling-Test-Name to avoid conflict with TestNameLoggingFilter in testing/tools module which is deprecated now. Otherwise on a system where both tools and junit core bundle is deployed then it causes lots of log for each request.
Now for a test a single message would logged at start
{noformat}
05.01.2017 13:58:22.217 *INFO* [qtp2112772548-750] org.apache.sling.junit.impl.servlet.TestLogServlet Starting test execution ======[fooTest(com.example.BarIT)] ======
{noformat}
> TestLogServlet should register filter using HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_PATTERN
> --------------------------------------------------------------------------------------------------
>
> Key: SLING-6406
> URL: https://issues.apache.org/jira/browse/SLING-6406
> Project: Sling
> Issue Type: Bug
> Components: JUnit Core
> Affects Versions: JUnit Core 1.0.18
> Reporter: Andrei Dulvac
> Assignee: Chetan Mehrotra
> Fix For: JUnit Core 1.0.24
>
>
> TestServlet should register filter with HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_PATTERN at https://github.com/apache/sling/blob/trunk/testing/junit/core/src/main/java/org/apache/sling/junit/impl/servlet/TestLogServlet.java#L229
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)