Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.127 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 12 Oct 2023 01:37:33 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Thu, 12 Oct 2023 01:40:33 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 01:37:33 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 12 Oct 2023 01:37:33 GMT Expires: Thu, 12 Oct 2023 01:44:33 GMT Keep-Alive: timeout=3 ETag: W/"971-1697073352604" 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 01:38:34 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 01:37:33 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 01:38:34 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 01:37:33 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 01:38:34 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 01:37:33 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 01:44:34 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 01:37:33 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 01:37:33 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 12 Oct 2023 01:37:34 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 01:37:33 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 01:42:34 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 01:37:33 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 01:44:34 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 01:37:33 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 12-Oct-2023 01:37:32.383 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 12-Oct-2023 01:37:33.035 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 12-Oct-2023 01:37:33.199 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:33.199 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:33.370 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46247"] 12-Oct-2023 01:37:33.497 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46247"] 12-Oct-2023 01:37:33.504 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:33.528 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46247"] 12-Oct-2023 01:37:33.530 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46247"] 12-Oct-2023 01:37:33.540 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 12-Oct-2023 01:37:33.542 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 12-Oct-2023 01:37:33.558 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:33.558 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:33.567 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-37227"] 12-Oct-2023 01:37:33.584 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-37227"] 12-Oct-2023 01:37:33.586 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:33.589 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-37227"] 12-Oct-2023 01:37:33.590 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-37227"] 12-Oct-2023 01:37:33.594 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 12-Oct-2023 01:37:33.595 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 12-Oct-2023 01:37:33.596 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 12-Oct-2023 01:37:33.610 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 12-Oct-2023 01:37:33.684 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:33.684 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:33.731 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 12-Oct-2023 01:37:33.930 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-45717"] 12-Oct-2023 01:37:33.944 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-45717"] 12-Oct-2023 01:37:33.945 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:33.951 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-45717"] 12-Oct-2023 01:37:33.952 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-45717"] 12-Oct-2023 01:37:33.957 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 12-Oct-2023 01:37:33.965 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 12-Oct-2023 01:37:33.975 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:33.975 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:33.981 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36625"] 12-Oct-2023 01:37:33.982 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36625"] 12-Oct-2023 01:37:33.983 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:33.985 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36625"] 12-Oct-2023 01:37:33.986 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36625"] 12-Oct-2023 01:37:33.989 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 12-Oct-2023 01:37:33.991 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 12-Oct-2023 01:37:34.005 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:34.006 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:34.012 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-37391"] 12-Oct-2023 01:37:34.019 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-37391"] 12-Oct-2023 01:37:34.020 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:34.023 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-37391"] 12-Oct-2023 01:37:34.024 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-37391"] 12-Oct-2023 01:37:34.027 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 12-Oct-2023 01:37:34.028 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 12-Oct-2023 01:37:34.032 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 12-Oct-2023 01:37:34.034 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 12-Oct-2023 01:37:34.042 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:34.042 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:34.054 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-45249"] 12-Oct-2023 01:37:34.060 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-45249"] 12-Oct-2023 01:37:34.064 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:34.067 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-45249"] 12-Oct-2023 01:37:34.075 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-45249"] 12-Oct-2023 01:37:34.079 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 12-Oct-2023 01:37:34.080 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 12-Oct-2023 01:37:34.099 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:34.099 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:34.104 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-34213"] 12-Oct-2023 01:37:34.110 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-34213"] 12-Oct-2023 01:37:34.113 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:34.115 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-34213"] 12-Oct-2023 01:37:34.115 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-34213"] 12-Oct-2023 01:37:34.118 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 12-Oct-2023 01:37:34.121 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 12-Oct-2023 01:37:34.131 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:34.131 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:34.137 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41681"] 12-Oct-2023 01:37:34.141 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41681"] 12-Oct-2023 01:37:34.146 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:34.148 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41681"] 12-Oct-2023 01:37:34.149 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41681"] 12-Oct-2023 01:37:34.153 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 12-Oct-2023 01:37:34.158 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 12-Oct-2023 01:37:34.162 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:34.162 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:34.167 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42205"] 12-Oct-2023 01:37:34.171 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42205"] 12-Oct-2023 01:37:34.173 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:34.174 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42205"] 12-Oct-2023 01:37:34.175 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42205"] 12-Oct-2023 01:37:34.178 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 12-Oct-2023 01:37:34.178 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 12-Oct-2023 01:37:34.179 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 12-Oct-2023 01:37:34.180 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 12-Oct-2023 01:37:34.183 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:34.183 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:34.188 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34019"] 12-Oct-2023 01:37:34.191 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34019"] 12-Oct-2023 01:37:34.194 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:34.195 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34019"] 12-Oct-2023 01:37:34.196 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34019"] 12-Oct-2023 01:37:34.199 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 12-Oct-2023 01:37:34.200 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 12-Oct-2023 01:37:34.202 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:34.202 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:34.206 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-39085"] 12-Oct-2023 01:37:34.210 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-39085"] 12-Oct-2023 01:37:34.211 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:34.213 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-39085"] 12-Oct-2023 01:37:34.213 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-39085"] 12-Oct-2023 01:37:34.215 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 12-Oct-2023 01:37:34.217 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 12-Oct-2023 01:37:34.220 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 01:37:34.220 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 01:37:34.224 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40759"] 12-Oct-2023 01:37:34.227 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40759"] 12-Oct-2023 01:37:34.227 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 01:37:34.229 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40759"] 12-Oct-2023 01:37:34.230 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40759"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.373 sec Testcase: testUseContentTypeExpiresConfiguration took 0.053 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.36 sec Testcase: testConfiguration took 0.031 sec Testcase: testNullContentType took 0.037 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.005 sec Testcase: testUseDefaultConfiguration1 took 0.047 sec Testcase: testUseDefaultConfiguration2 took 0.04 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.034 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.025 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.019 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.017 sec Testcase: testEmptyContent took 0.018 sec