Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.26 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 09 May 2023 15:00:16 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 09 May 2023 15:03:16 GMT Content-Length: 11 Date: Tue, 09 May 2023 15:00:16 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 09 May 2023 15:00:16 GMT Expires: Tue, 09 May 2023 15:07:17 GMT Keep-Alive: timeout=3 ETag: W/"971-1683642382573" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 09 May 2023 15:01:17 GMT Content-Length: 0 Date: Tue, 09 May 2023 15:00:16 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 09 May 2023 15:01:17 GMT Content-Length: 11 Date: Tue, 09 May 2023 15:00:16 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 09 May 2023 15:01:17 GMT Content-Length: 11 Date: Tue, 09 May 2023 15:00:16 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 09 May 2023 15:07:17 GMT Content-Length: 11 Date: Tue, 09 May 2023 15:00:16 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, 09 May 2023 15:00:16 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 09 May 2023 15:00:17 GMT Content-Length: 11 Date: Tue, 09 May 2023 15:00:16 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 09 May 2023 15:05:17 GMT Content-Length: 11 Date: Tue, 09 May 2023 15:00:16 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 09 May 2023 15:07:17 GMT Content-Length: 0 Date: Tue, 09 May 2023 15:00:16 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 09-May-2023 15:00:15.457 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 09-May-2023 15:00:16.197 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 09-May-2023 15:00:16.269 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:16.270 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:16.475 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38095"] 09-May-2023 15:00:16.692 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38095"] 09-May-2023 15:00:16.698 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:16.724 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38095"] 09-May-2023 15:00:16.731 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38095"] 09-May-2023 15:00:16.756 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 09-May-2023 15:00:16.758 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 09-May-2023 15:00:16.770 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:16.770 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:16.786 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-45343"] 09-May-2023 15:00:16.814 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-45343"] 09-May-2023 15:00:16.817 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:16.831 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-45343"] 09-May-2023 15:00:16.832 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-45343"] 09-May-2023 15:00:16.838 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 09-May-2023 15:00:16.839 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 09-May-2023 15:00:16.840 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 09-May-2023 15:00:16.847 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 09-May-2023 15:00:16.879 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:16.879 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:16.986 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 09-May-2023 15:00:17.115 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40343"] 09-May-2023 15:00:17.128 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40343"] 09-May-2023 15:00:17.129 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.137 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40343"] 09-May-2023 15:00:17.137 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40343"] 09-May-2023 15:00:17.141 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 09-May-2023 15:00:17.142 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 09-May-2023 15:00:17.156 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:17.156 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:17.161 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45133"] 09-May-2023 15:00:17.161 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45133"] 09-May-2023 15:00:17.163 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.165 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45133"] 09-May-2023 15:00:17.165 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45133"] 09-May-2023 15:00:17.169 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 09-May-2023 15:00:17.171 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 09-May-2023 15:00:17.179 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:17.180 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:17.186 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36305"] 09-May-2023 15:00:17.191 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36305"] 09-May-2023 15:00:17.192 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.194 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36305"] 09-May-2023 15:00:17.195 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36305"] 09-May-2023 15:00:17.200 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 09-May-2023 15:00:17.201 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 09-May-2023 15:00:17.202 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 09-May-2023 15:00:17.203 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 09-May-2023 15:00:17.211 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:17.211 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:17.216 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46037"] 09-May-2023 15:00:17.223 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46037"] 09-May-2023 15:00:17.225 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.228 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46037"] 09-May-2023 15:00:17.229 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46037"] 09-May-2023 15:00:17.232 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 09-May-2023 15:00:17.234 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 09-May-2023 15:00:17.241 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:17.241 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:17.248 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39385"] 09-May-2023 15:00:17.254 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39385"] 09-May-2023 15:00:17.255 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.257 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39385"] 09-May-2023 15:00:17.257 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39385"] 09-May-2023 15:00:17.261 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 09-May-2023 15:00:17.262 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 09-May-2023 15:00:17.265 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:17.266 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:17.275 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42665"] 09-May-2023 15:00:17.279 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42665"] 09-May-2023 15:00:17.280 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.282 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42665"] 09-May-2023 15:00:17.282 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42665"] 09-May-2023 15:00:17.286 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 09-May-2023 15:00:17.288 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 09-May-2023 15:00:17.296 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:17.296 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:17.301 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-38557"] 09-May-2023 15:00:17.305 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-38557"] 09-May-2023 15:00:17.308 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.310 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-38557"] 09-May-2023 15:00:17.311 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-38557"] 09-May-2023 15:00:17.314 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 09-May-2023 15:00:17.315 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 09-May-2023 15:00:17.315 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 09-May-2023 15:00:17.317 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 09-May-2023 15:00:17.325 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:17.325 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:17.329 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-44071"] 09-May-2023 15:00:17.333 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-44071"] 09-May-2023 15:00:17.336 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.338 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-44071"] 09-May-2023 15:00:17.338 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-44071"] 09-May-2023 15:00:17.341 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 09-May-2023 15:00:17.343 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 09-May-2023 15:00:17.349 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:17.349 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:17.357 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-39643"] 09-May-2023 15:00:17.361 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-39643"] 09-May-2023 15:00:17.362 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.366 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-39643"] 09-May-2023 15:00:17.368 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-39643"] 09-May-2023 15:00:17.372 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 09-May-2023 15:00:17.374 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 09-May-2023 15:00:17.381 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-May-2023 15:00:17.381 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.9-dev] 09-May-2023 15:00:17.385 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46509"] 09-May-2023 15:00:17.389 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46509"] 09-May-2023 15:00:17.392 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-May-2023 15:00:17.394 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46509"] 09-May-2023 15:00:17.395 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46509"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.533 sec Testcase: testUseContentTypeExpiresConfiguration took 0.082 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.3 sec Testcase: testConfiguration took 0.029 sec Testcase: testNullContentType took 0.03 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.031 sec Testcase: testUseDefaultConfiguration2 took 0.028 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.026 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.027 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.026 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.031 sec Testcase: testEmptyContent took 0.025 sec