Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.35 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 09 Oct 2023 16:29:39 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 09 Oct 2023 16:32:40 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 16:29:40 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 09 Oct 2023 16:29:40 GMT Expires: Mon, 09 Oct 2023 16:36:40 GMT Keep-Alive: timeout=3 ETag: W/"971-1696868382877" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 09 Oct 2023 16:30:40 GMT Content-Length: 0 Date: Mon, 09 Oct 2023 16:29:40 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 09 Oct 2023 16:30:40 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 16:29:40 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 09 Oct 2023 16:30:40 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 16:29:40 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 09 Oct 2023 16:36:40 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 16:29:40 GMT Content-Type: text/json;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=232 Connection: keep-alive Content-Length: 11 Date: Mon, 09 Oct 2023 16:29:40 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 09 Oct 2023 16:29:40 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 16:29:40 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 09 Oct 2023 16:34:40 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 16:29:40 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=419 Connection: keep-alive Expires: Mon, 09 Oct 2023 16:36:40 GMT Content-Length: 0 Date: Mon, 09 Oct 2023 16:29:40 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 09-Oct-2023 16:29:38.939 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 09-Oct-2023 16:29:39.629 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 09-Oct-2023 16:29:39.661 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:39.662 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:39.791 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-41641"] 09-Oct-2023 16:29:39.901 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-41641"] 09-Oct-2023 16:29:39.903 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:39.922 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-41641"] 09-Oct-2023 16:29:39.928 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-41641"] 09-Oct-2023 16:29:39.934 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 09-Oct-2023 16:29:39.937 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 09-Oct-2023 16:29:39.938 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:39.938 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:39.960 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-42107"] 09-Oct-2023 16:29:40.043 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-42107"] 09-Oct-2023 16:29:40.047 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.050 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-42107"] 09-Oct-2023 16:29:40.054 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-42107"] 09-Oct-2023 16:29:40.056 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 09-Oct-2023 16:29:40.057 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 09-Oct-2023 16:29:40.058 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 09-Oct-2023 16:29:40.066 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 09-Oct-2023 16:29:40.066 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.067 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.113 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 09-Oct-2023 16:29:40.298 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-43807"] 09-Oct-2023 16:29:40.326 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-43807"] 09-Oct-2023 16:29:40.329 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.336 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-43807"] 09-Oct-2023 16:29:40.338 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-43807"] 09-Oct-2023 16:29:40.340 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 09-Oct-2023 16:29:40.342 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 09-Oct-2023 16:29:40.343 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.343 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.348 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-39065"] 09-Oct-2023 16:29:40.356 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-39065"] 09-Oct-2023 16:29:40.356 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.358 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-39065"] 09-Oct-2023 16:29:40.363 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-39065"] 09-Oct-2023 16:29:40.366 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 09-Oct-2023 16:29:40.369 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 09-Oct-2023 16:29:40.371 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.372 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.378 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-38451"] 09-Oct-2023 16:29:40.399 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-38451"] 09-Oct-2023 16:29:40.402 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.412 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-38451"] 09-Oct-2023 16:29:40.416 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-38451"] 09-Oct-2023 16:29:40.418 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 09-Oct-2023 16:29:40.419 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 09-Oct-2023 16:29:40.420 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 09-Oct-2023 16:29:40.424 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 09-Oct-2023 16:29:40.425 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.425 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.439 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-40307"] 09-Oct-2023 16:29:40.465 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-40307"] 09-Oct-2023 16:29:40.468 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.471 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-40307"] 09-Oct-2023 16:29:40.473 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-40307"] 09-Oct-2023 16:29:40.475 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 09-Oct-2023 16:29:40.477 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 09-Oct-2023 16:29:40.477 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.478 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.489 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-46831"] 09-Oct-2023 16:29:40.532 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-46831"] 09-Oct-2023 16:29:40.535 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.539 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-46831"] 09-Oct-2023 16:29:40.542 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-46831"] 09-Oct-2023 16:29:40.543 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 09-Oct-2023 16:29:40.547 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 09-Oct-2023 16:29:40.548 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.548 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.553 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-37259"] 09-Oct-2023 16:29:40.576 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-37259"] 09-Oct-2023 16:29:40.577 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.581 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-37259"] 09-Oct-2023 16:29:40.592 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-37259"] 09-Oct-2023 16:29:40.593 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 09-Oct-2023 16:29:40.596 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 09-Oct-2023 16:29:40.596 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.596 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.613 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-46781"] 09-Oct-2023 16:29:40.629 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-46781"] 09-Oct-2023 16:29:40.631 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.633 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-46781"] 09-Oct-2023 16:29:40.640 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-46781"] 09-Oct-2023 16:29:40.642 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 09-Oct-2023 16:29:40.643 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 09-Oct-2023 16:29:40.643 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 09-Oct-2023 16:29:40.645 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 09-Oct-2023 16:29:40.648 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.648 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.664 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-41659"] 09-Oct-2023 16:29:40.689 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-41659"] 09-Oct-2023 16:29:40.693 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.695 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-41659"] 09-Oct-2023 16:29:40.698 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-41659"] 09-Oct-2023 16:29:40.699 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 09-Oct-2023 16:29:40.706 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 09-Oct-2023 16:29:40.706 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.706 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.711 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-43039"] 09-Oct-2023 16:29:40.719 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-43039"] 09-Oct-2023 16:29:40.721 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.723 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-43039"] 09-Oct-2023 16:29:40.725 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-43039"] 09-Oct-2023 16:29:40.726 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 09-Oct-2023 16:29:40.727 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 09-Oct-2023 16:29:40.728 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 16:29:40.728 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 09-Oct-2023 16:29:40.734 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-40161"] 09-Oct-2023 16:29:40.764 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-40161"] 09-Oct-2023 16:29:40.765 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 16:29:40.767 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-40161"] 09-Oct-2023 16:29:40.774 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-40161"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.383 sec Testcase: testUseContentTypeExpiresConfiguration took 0.121 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.001 sec Testcase: testBug63909 took 0.282 sec Testcase: testConfiguration took 0.026 sec Testcase: testNullContentType took 0.051 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.055 sec Testcase: testUseDefaultConfiguration2 took 0.069 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.05 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.048 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.056 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.026 sec Testcase: testEmptyContent took 0.049 sec