Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.09 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 27 Feb 2024 14:43:09 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 27 Feb 2024 14:46:09 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 14:43:09 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 27 Feb 2024 14:43:09 GMT Expires: Tue, 27 Feb 2024 14:50:10 GMT Keep-Alive: timeout=3 ETag: W/"971-1709043642575" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 27 Feb 2024 14:44:10 GMT Content-Length: 0 Date: Tue, 27 Feb 2024 14:43:09 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 27 Feb 2024 14:44:10 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 14:43:09 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 27 Feb 2024 14:44:10 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 14:43:09 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 27 Feb 2024 14:50:10 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 14:43: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: Tue, 27 Feb 2024 14:43:09 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 27 Feb 2024 14:43:10 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 14:43:09 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 27 Feb 2024 14:48:10 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 14:43:09 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 27 Feb 2024 14:50:10 GMT Content-Length: 0 Date: Tue, 27 Feb 2024 14:43:09 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 27-Feb-2024 14:43:07.839 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 27-Feb-2024 14:43:09.018 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 27-Feb-2024 14:43:09.126 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:09.127 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:09.351 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-39851"] 27-Feb-2024 14:43:09.492 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-39851"] 27-Feb-2024 14:43:09.494 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:09.513 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-39851"] 27-Feb-2024 14:43:09.516 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-39851"] 27-Feb-2024 14:43:09.534 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 27-Feb-2024 14:43:09.546 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 27-Feb-2024 14:43:09.642 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:09.643 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:09.664 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41103"] 27-Feb-2024 14:43:09.681 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41103"] 27-Feb-2024 14:43:09.684 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:09.686 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41103"] 27-Feb-2024 14:43:09.688 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41103"] 27-Feb-2024 14:43:09.696 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 27-Feb-2024 14:43:09.698 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 27-Feb-2024 14:43:09.700 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 27-Feb-2024 14:43:09.715 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 27-Feb-2024 14:43:09.792 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:09.793 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:09.913 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 27-Feb-2024 14:43:10.142 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37123"] 27-Feb-2024 14:43:10.162 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37123"] 27-Feb-2024 14:43:10.162 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.170 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37123"] 27-Feb-2024 14:43:10.170 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37123"] 27-Feb-2024 14:43:10.175 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 27-Feb-2024 14:43:10.178 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 27-Feb-2024 14:43:10.182 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:10.182 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:10.192 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37419"] 27-Feb-2024 14:43:10.199 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37419"] 27-Feb-2024 14:43:10.202 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.204 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37419"] 27-Feb-2024 14:43:10.205 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37419"] 27-Feb-2024 14:43:10.208 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 27-Feb-2024 14:43:10.210 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 27-Feb-2024 14:43:10.215 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:10.215 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:10.220 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-42747"] 27-Feb-2024 14:43:10.224 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-42747"] 27-Feb-2024 14:43:10.226 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.229 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-42747"] 27-Feb-2024 14:43:10.238 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-42747"] 27-Feb-2024 14:43:10.240 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 27-Feb-2024 14:43:10.241 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 27-Feb-2024 14:43:10.242 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 27-Feb-2024 14:43:10.243 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 27-Feb-2024 14:43:10.276 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:10.276 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:10.283 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39291"] 27-Feb-2024 14:43:10.289 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39291"] 27-Feb-2024 14:43:10.290 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.292 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39291"] 27-Feb-2024 14:43:10.293 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39291"] 27-Feb-2024 14:43:10.297 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 27-Feb-2024 14:43:10.298 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 27-Feb-2024 14:43:10.334 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:10.334 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:10.342 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-33581"] 27-Feb-2024 14:43:10.352 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-33581"] 27-Feb-2024 14:43:10.352 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.354 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-33581"] 27-Feb-2024 14:43:10.354 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-33581"] 27-Feb-2024 14:43:10.359 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 27-Feb-2024 14:43:10.361 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 27-Feb-2024 14:43:10.375 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:10.375 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:10.380 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43325"] 27-Feb-2024 14:43:10.384 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43325"] 27-Feb-2024 14:43:10.385 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.386 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43325"] 27-Feb-2024 14:43:10.387 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43325"] 27-Feb-2024 14:43:10.393 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 27-Feb-2024 14:43:10.395 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 27-Feb-2024 14:43:10.397 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:10.398 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:10.406 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39269"] 27-Feb-2024 14:43:10.412 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39269"] 27-Feb-2024 14:43:10.414 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.416 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39269"] 27-Feb-2024 14:43:10.416 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39269"] 27-Feb-2024 14:43:10.420 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 27-Feb-2024 14:43:10.422 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 27-Feb-2024 14:43:10.426 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 27-Feb-2024 14:43:10.428 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 27-Feb-2024 14:43:10.434 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:10.435 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:10.439 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-41539"] 27-Feb-2024 14:43:10.443 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-41539"] 27-Feb-2024 14:43:10.447 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.448 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-41539"] 27-Feb-2024 14:43:10.449 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-41539"] 27-Feb-2024 14:43:10.454 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 27-Feb-2024 14:43:10.455 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 27-Feb-2024 14:43:10.461 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:10.461 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:10.468 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36505"] 27-Feb-2024 14:43:10.482 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36505"] 27-Feb-2024 14:43:10.486 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.488 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36505"] 27-Feb-2024 14:43:10.492 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36505"] 27-Feb-2024 14:43:10.495 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 27-Feb-2024 14:43:10.497 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 27-Feb-2024 14:43:10.514 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 14:43:10.514 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 27-Feb-2024 14:43:10.522 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41859"] 27-Feb-2024 14:43:10.527 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41859"] 27-Feb-2024 14:43:10.529 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 14:43:10.531 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41859"] 27-Feb-2024 14:43:10.533 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41859"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 2.022 sec Testcase: testUseContentTypeExpiresConfiguration took 0.161 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.003 sec Testcase: testBug63909 took 0.475 sec Testcase: testConfiguration took 0.033 sec Testcase: testNullContentType took 0.031 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.055 sec Testcase: testUseDefaultConfiguration2 took 0.063 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.034 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.026 sec Testcase: testIntsToCommaDelimitedString took 0.004 sec Testcase: testSkipBecauseExpiresIsDefined took 0.029 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.041 sec Testcase: testEmptyContent took 0.042 sec