Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.844 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 17 Oct 2023 11:02:10 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 17 Oct 2023 11:05:10 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 11:02:10 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 17 Oct 2023 11:02:10 GMT Expires: Tue, 17 Oct 2023 11:09:11 GMT Keep-Alive: timeout=3 ETag: W/"971-1697539965023" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=59 Connection: keep-alive Expires: Tue, 17 Oct 2023 11:03:11 GMT Content-Length: 0 Date: Tue, 17 Oct 2023 11:02:10 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 17 Oct 2023 11:03:11 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 11:02:10 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=59 Connection: keep-alive Expires: Tue, 17 Oct 2023 11:03:11 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 11:02:10 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 17 Oct 2023 11:09:11 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 11:02:10 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: Tue, 17 Oct 2023 11:02:10 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 17 Oct 2023 11:02:11 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 11:02:10 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 17 Oct 2023 11:07:11 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 11:02:10 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 17 Oct 2023 11:09:11 GMT Content-Length: 0 Date: Tue, 17 Oct 2023 11:02:10 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 17-Oct-2023 11:02:09.310 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 17-Oct-2023 11:02:10.126 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 17-Oct-2023 11:02:10.223 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:10.223 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:10.533 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-38337"] 17-Oct-2023 11:02:10.769 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-38337"] 17-Oct-2023 11:02:10.770 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:10.792 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-38337"] 17-Oct-2023 11:02:10.805 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-38337"] 17-Oct-2023 11:02:10.813 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 17-Oct-2023 11:02:10.828 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 17-Oct-2023 11:02:10.829 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:10.829 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:10.856 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-41183"] 17-Oct-2023 11:02:10.918 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-41183"] 17-Oct-2023 11:02:10.919 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:10.922 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-41183"] 17-Oct-2023 11:02:10.937 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-41183"] 17-Oct-2023 11:02:10.942 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 17-Oct-2023 11:02:10.943 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 17-Oct-2023 11:02:10.944 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 17-Oct-2023 11:02:10.975 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 17-Oct-2023 11:02:10.982 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:10.983 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.021 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 17-Oct-2023 11:02:11.214 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-41123"] 17-Oct-2023 11:02:11.277 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-41123"] 17-Oct-2023 11:02:11.279 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.301 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-41123"] 17-Oct-2023 11:02:11.321 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-41123"] 17-Oct-2023 11:02:11.327 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 17-Oct-2023 11:02:11.329 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 17-Oct-2023 11:02:11.329 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:11.330 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.374 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-34637"] 17-Oct-2023 11:02:11.381 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-34637"] 17-Oct-2023 11:02:11.383 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.386 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-34637"] 17-Oct-2023 11:02:11.389 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-34637"] 17-Oct-2023 11:02:11.392 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 17-Oct-2023 11:02:11.393 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 17-Oct-2023 11:02:11.394 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:11.394 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.417 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-40883"] 17-Oct-2023 11:02:11.457 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-40883"] 17-Oct-2023 11:02:11.459 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.465 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-40883"] 17-Oct-2023 11:02:11.471 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-40883"] 17-Oct-2023 11:02:11.478 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 17-Oct-2023 11:02:11.479 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 17-Oct-2023 11:02:11.480 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 17-Oct-2023 11:02:11.481 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 17-Oct-2023 11:02:11.482 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:11.482 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.491 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-44283"] 17-Oct-2023 11:02:11.507 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-44283"] 17-Oct-2023 11:02:11.509 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.512 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-44283"] 17-Oct-2023 11:02:11.517 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-44283"] 17-Oct-2023 11:02:11.520 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 17-Oct-2023 11:02:11.521 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 17-Oct-2023 11:02:11.522 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:11.522 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.544 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-45501"] 17-Oct-2023 11:02:11.561 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-45501"] 17-Oct-2023 11:02:11.564 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.568 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-45501"] 17-Oct-2023 11:02:11.571 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-45501"] 17-Oct-2023 11:02:11.574 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 17-Oct-2023 11:02:11.576 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 17-Oct-2023 11:02:11.576 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:11.576 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.586 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-46571"] 17-Oct-2023 11:02:11.597 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-46571"] 17-Oct-2023 11:02:11.600 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.604 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-46571"] 17-Oct-2023 11:02:11.611 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-46571"] 17-Oct-2023 11:02:11.616 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 17-Oct-2023 11:02:11.617 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 17-Oct-2023 11:02:11.618 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:11.618 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.642 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-39095"] 17-Oct-2023 11:02:11.657 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-39095"] 17-Oct-2023 11:02:11.659 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.662 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-39095"] 17-Oct-2023 11:02:11.664 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-39095"] 17-Oct-2023 11:02:11.668 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 17-Oct-2023 11:02:11.669 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 17-Oct-2023 11:02:11.669 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 17-Oct-2023 11:02:11.671 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 17-Oct-2023 11:02:11.671 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:11.671 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.687 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-41851"] 17-Oct-2023 11:02:11.692 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-41851"] 17-Oct-2023 11:02:11.692 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.697 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-41851"] 17-Oct-2023 11:02:11.700 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-41851"] 17-Oct-2023 11:02:11.702 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 17-Oct-2023 11:02:11.703 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 17-Oct-2023 11:02:11.704 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:11.704 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.711 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-45109"] 17-Oct-2023 11:02:11.719 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-45109"] 17-Oct-2023 11:02:11.719 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.722 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-45109"] 17-Oct-2023 11:02:11.724 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-45109"] 17-Oct-2023 11:02:11.726 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 17-Oct-2023 11:02:11.726 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 17-Oct-2023 11:02:11.727 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 11:02:11.727 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 17-Oct-2023 11:02:11.732 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-36993"] 17-Oct-2023 11:02:11.740 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-36993"] 17-Oct-2023 11:02:11.743 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 11:02:11.745 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-36993"] 17-Oct-2023 11:02:11.750 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-36993"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.851 sec Testcase: testUseContentTypeExpiresConfiguration took 0.128 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.003 sec Testcase: testBug63909 took 0.383 sec Testcase: testConfiguration took 0.065 sec Testcase: testNullContentType took 0.086 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.039 sec Testcase: testUseDefaultConfiguration2 took 0.054 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.041 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.051 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.033 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.023 sec Testcase: testEmptyContent took 0.028 sec