Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.042 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 17 Oct 2023 15:50:20 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 17 Oct 2023 15:53:20 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 15:50:20 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 17 Oct 2023 15:50:20 GMT Expires: Tue, 17 Oct 2023 15:57:21 GMT Keep-Alive: timeout=3 ETag: W/"971-1697557224497" 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 15:51:21 GMT Content-Length: 0 Date: Tue, 17 Oct 2023 15:50:20 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 17 Oct 2023 15:51:21 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 15:50:20 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 17 Oct 2023 15:51:21 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 15:50:20 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 15:57:21 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 15:50:20 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 15:50:20 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 17 Oct 2023 15:50:21 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 15:50:20 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 15:55:21 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 15:50:20 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 15:57:21 GMT Content-Length: 0 Date: Tue, 17 Oct 2023 15:50:20 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 17-Oct-2023 15:50:19.534 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 17-Oct-2023 15:50:20.330 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 17-Oct-2023 15:50:20.370 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:20.372 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:20.507 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-35399"] 17-Oct-2023 15:50:20.655 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-35399"] 17-Oct-2023 15:50:20.658 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:20.688 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-35399"] 17-Oct-2023 15:50:20.703 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-35399"] 17-Oct-2023 15:50:20.709 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 17-Oct-2023 15:50:20.711 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 17-Oct-2023 15:50:20.712 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:20.712 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:20.730 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-43421"] 17-Oct-2023 15:50:20.755 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-43421"] 17-Oct-2023 15:50:20.757 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:20.759 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-43421"] 17-Oct-2023 15:50:20.763 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-43421"] 17-Oct-2023 15:50:20.765 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 17-Oct-2023 15:50:20.766 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 17-Oct-2023 15:50:20.767 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 17-Oct-2023 15:50:20.774 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 17-Oct-2023 15:50:20.775 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:20.775 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:20.881 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 17-Oct-2023 15:50:21.036 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-37651"] 17-Oct-2023 15:50:21.076 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-37651"] 17-Oct-2023 15:50:21.079 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.101 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-37651"] 17-Oct-2023 15:50:21.110 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-37651"] 17-Oct-2023 15:50:21.112 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 17-Oct-2023 15:50:21.114 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 17-Oct-2023 15:50:21.115 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:21.115 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:21.123 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-39959"] 17-Oct-2023 15:50:21.146 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-39959"] 17-Oct-2023 15:50:21.146 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.152 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-39959"] 17-Oct-2023 15:50:21.158 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-39959"] 17-Oct-2023 15:50:21.162 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 17-Oct-2023 15:50:21.164 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 17-Oct-2023 15:50:21.165 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:21.166 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:21.173 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-41627"] 17-Oct-2023 15:50:21.188 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-41627"] 17-Oct-2023 15:50:21.188 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.190 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-41627"] 17-Oct-2023 15:50:21.193 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-41627"] 17-Oct-2023 15:50:21.194 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 17-Oct-2023 15:50:21.194 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 17-Oct-2023 15:50:21.195 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 17-Oct-2023 15:50:21.196 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 17-Oct-2023 15:50:21.197 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:21.197 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:21.202 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-33673"] 17-Oct-2023 15:50:21.208 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-33673"] 17-Oct-2023 15:50:21.211 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.213 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-33673"] 17-Oct-2023 15:50:21.216 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-33673"] 17-Oct-2023 15:50:21.217 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 17-Oct-2023 15:50:21.219 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 17-Oct-2023 15:50:21.220 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:21.220 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:21.223 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-34397"] 17-Oct-2023 15:50:21.233 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-34397"] 17-Oct-2023 15:50:21.233 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.235 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-34397"] 17-Oct-2023 15:50:21.240 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-34397"] 17-Oct-2023 15:50:21.241 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 17-Oct-2023 15:50:21.242 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 17-Oct-2023 15:50:21.243 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:21.243 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:21.247 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-41109"] 17-Oct-2023 15:50:21.254 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-41109"] 17-Oct-2023 15:50:21.256 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.258 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-41109"] 17-Oct-2023 15:50:21.261 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-41109"] 17-Oct-2023 15:50:21.262 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 17-Oct-2023 15:50:21.264 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 17-Oct-2023 15:50:21.265 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:21.265 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:21.271 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-40293"] 17-Oct-2023 15:50:21.279 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-40293"] 17-Oct-2023 15:50:21.279 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.281 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-40293"] 17-Oct-2023 15:50:21.285 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-40293"] 17-Oct-2023 15:50:21.286 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 17-Oct-2023 15:50:21.286 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 17-Oct-2023 15:50:21.287 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 17-Oct-2023 15:50:21.288 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 17-Oct-2023 15:50:21.288 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:21.288 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:21.291 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-37441"] 17-Oct-2023 15:50:21.297 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-37441"] 17-Oct-2023 15:50:21.300 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.301 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-37441"] 17-Oct-2023 15:50:21.302 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-37441"] 17-Oct-2023 15:50:21.303 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 17-Oct-2023 15:50:21.304 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 17-Oct-2023 15:50:21.305 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:21.305 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:21.308 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-46795"] 17-Oct-2023 15:50:21.313 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-46795"] 17-Oct-2023 15:50:21.313 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.315 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-46795"] 17-Oct-2023 15:50:21.322 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-46795"] 17-Oct-2023 15:50:21.323 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 17-Oct-2023 15:50:21.325 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 17-Oct-2023 15:50:21.325 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 15:50:21.325 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 15:50:21.329 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-36445"] 17-Oct-2023 15:50:21.335 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-36445"] 17-Oct-2023 15:50:21.335 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 15:50:21.337 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-36445"] 17-Oct-2023 15:50:21.340 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-36445"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.358 sec Testcase: testUseContentTypeExpiresConfiguration took 0.056 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.346 sec Testcase: testConfiguration took 0.047 sec Testcase: testNullContentType took 0.034 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.022 sec Testcase: testUseDefaultConfiguration2 took 0.024 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.021 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.023 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.016 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.02 sec Testcase: testEmptyContent took 0.018 sec