Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.337 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 12 Oct 2023 15:29:08 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Thu, 12 Oct 2023 15:32:09 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 15:29:09 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 12 Oct 2023 15:29:09 GMT Expires: Thu, 12 Oct 2023 15:36:09 GMT Keep-Alive: timeout=3 ETag: W/"971-1697123998784" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 15:30:09 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 15:29:09 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 15:30:09 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 15:29:09 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 15:30:09 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 15:29:09 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 12 Oct 2023 15:36:09 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 15:29:09 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: Thu, 12 Oct 2023 15:29:09 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 12 Oct 2023 15:29:09 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 15:29:09 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Thu, 12 Oct 2023 15:34:09 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 15:29:09 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 12 Oct 2023 15:36:09 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 15:29:09 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 12-Oct-2023 15:29:07.465 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 12-Oct-2023 15:29:08.488 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 12-Oct-2023 15:29:08.600 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:08.600 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:08.810 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-45499"] 12-Oct-2023 15:29:08.972 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-45499"] 12-Oct-2023 15:29:08.974 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:08.988 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-45499"] 12-Oct-2023 15:29:08.998 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-45499"] 12-Oct-2023 15:29:09.006 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 12-Oct-2023 15:29:09.008 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 12-Oct-2023 15:29:09.009 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.009 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.022 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-45699"] 12-Oct-2023 15:29:09.044 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-45699"] 12-Oct-2023 15:29:09.044 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.051 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-45699"] 12-Oct-2023 15:29:09.057 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-45699"] 12-Oct-2023 15:29:09.060 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 12-Oct-2023 15:29:09.061 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 12-Oct-2023 15:29:09.062 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 12-Oct-2023 15:29:09.070 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 12-Oct-2023 15:29:09.071 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.071 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.112 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 12-Oct-2023 15:29:09.216 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-36257"] 12-Oct-2023 15:29:09.226 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-36257"] 12-Oct-2023 15:29:09.229 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.241 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-36257"] 12-Oct-2023 15:29:09.244 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-36257"] 12-Oct-2023 15:29:09.247 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 12-Oct-2023 15:29:09.249 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 12-Oct-2023 15:29:09.249 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.249 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.259 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-33033"] 12-Oct-2023 15:29:09.272 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-33033"] 12-Oct-2023 15:29:09.274 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.277 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-33033"] 12-Oct-2023 15:29:09.282 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-33033"] 12-Oct-2023 15:29:09.284 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 12-Oct-2023 15:29:09.286 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 12-Oct-2023 15:29:09.287 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.287 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.294 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-33659"] 12-Oct-2023 15:29:09.308 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-33659"] 12-Oct-2023 15:29:09.309 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.312 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-33659"] 12-Oct-2023 15:29:09.315 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-33659"] 12-Oct-2023 15:29:09.318 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 12-Oct-2023 15:29:09.318 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 12-Oct-2023 15:29:09.319 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 12-Oct-2023 15:29:09.320 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 12-Oct-2023 15:29:09.321 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.321 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.330 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-46553"] 12-Oct-2023 15:29:09.340 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-46553"] 12-Oct-2023 15:29:09.343 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.345 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-46553"] 12-Oct-2023 15:29:09.347 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-46553"] 12-Oct-2023 15:29:09.350 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 12-Oct-2023 15:29:09.351 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 12-Oct-2023 15:29:09.352 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.352 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.359 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-44391"] 12-Oct-2023 15:29:09.369 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-44391"] 12-Oct-2023 15:29:09.372 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.374 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-44391"] 12-Oct-2023 15:29:09.376 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-44391"] 12-Oct-2023 15:29:09.379 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 12-Oct-2023 15:29:09.380 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 12-Oct-2023 15:29:09.380 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.380 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.386 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-37161"] 12-Oct-2023 15:29:09.404 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-37161"] 12-Oct-2023 15:29:09.406 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.408 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-37161"] 12-Oct-2023 15:29:09.411 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-37161"] 12-Oct-2023 15:29:09.413 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 12-Oct-2023 15:29:09.415 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 12-Oct-2023 15:29:09.416 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.416 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.424 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-38031"] 12-Oct-2023 15:29:09.428 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-38031"] 12-Oct-2023 15:29:09.440 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.442 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-38031"] 12-Oct-2023 15:29:09.448 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-38031"] 12-Oct-2023 15:29:09.451 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 12-Oct-2023 15:29:09.452 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 12-Oct-2023 15:29:09.452 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 12-Oct-2023 15:29:09.454 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 12-Oct-2023 15:29:09.455 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.455 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.465 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-41153"] 12-Oct-2023 15:29:09.479 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-41153"] 12-Oct-2023 15:29:09.481 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.484 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-41153"] 12-Oct-2023 15:29:09.485 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-41153"] 12-Oct-2023 15:29:09.487 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 12-Oct-2023 15:29:09.488 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 12-Oct-2023 15:29:09.489 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.489 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.495 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-36659"] 12-Oct-2023 15:29:09.503 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-36659"] 12-Oct-2023 15:29:09.506 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.509 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-36659"] 12-Oct-2023 15:29:09.511 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-36659"] 12-Oct-2023 15:29:09.513 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 12-Oct-2023 15:29:09.514 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 12-Oct-2023 15:29:09.515 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 15:29:09.515 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 15:29:09.520 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-41821"] 12-Oct-2023 15:29:09.531 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-41821"] 12-Oct-2023 15:29:09.532 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 15:29:09.533 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-41821"] 12-Oct-2023 15:29:09.537 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-41821"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.749 sec Testcase: testUseContentTypeExpiresConfiguration took 0.054 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.184 sec Testcase: testConfiguration took 0.038 sec Testcase: testNullContentType took 0.033 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.03 sec Testcase: testUseDefaultConfiguration2 took 0.029 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.035 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.037 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.035 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.026 sec Testcase: testEmptyContent took 0.026 sec