Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.329 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 10 Oct 2023 10:08:20 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 10 Oct 2023 10:11:20 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 10:08:20 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 10 Oct 2023 10:08:20 GMT Expires: Tue, 10 Oct 2023 10:15:20 GMT Keep-Alive: timeout=3 ETag: W/"971-1696931203931" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 10 Oct 2023 10:09:21 GMT Content-Length: 0 Date: Tue, 10 Oct 2023 10:08:20 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 10 Oct 2023 10:09:21 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 10:08: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, 10 Oct 2023 10:09:21 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 10:08:20 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 10 Oct 2023 10:15:21 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 10:08: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, 10 Oct 2023 10:08:20 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 10 Oct 2023 10:08:21 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 10:08:20 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 10 Oct 2023 10:13:21 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 10:08:20 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 10 Oct 2023 10:15:21 GMT Content-Length: 0 Date: Tue, 10 Oct 2023 10:08:20 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 10-Oct-2023 10:08:19.464 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 10-Oct-2023 10:08:20.072 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 10-Oct-2023 10:08:20.152 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:20.164 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:20.324 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33987"] 10-Oct-2023 10:08:20.446 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33987"] 10-Oct-2023 10:08:20.451 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:20.469 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33987"] 10-Oct-2023 10:08:20.478 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33987"] 10-Oct-2023 10:08:20.491 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 10-Oct-2023 10:08:20.493 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 10-Oct-2023 10:08:20.500 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:20.500 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:20.506 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38405"] 10-Oct-2023 10:08:20.514 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38405"] 10-Oct-2023 10:08:20.517 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:20.525 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38405"] 10-Oct-2023 10:08:20.526 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38405"] 10-Oct-2023 10:08:20.535 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 10-Oct-2023 10:08:20.536 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 10-Oct-2023 10:08:20.536 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 10-Oct-2023 10:08:20.547 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 10-Oct-2023 10:08:20.567 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:20.567 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:20.647 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 10-Oct-2023 10:08:20.843 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41471"] 10-Oct-2023 10:08:20.851 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41471"] 10-Oct-2023 10:08:20.852 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:20.869 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41471"] 10-Oct-2023 10:08:20.870 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41471"] 10-Oct-2023 10:08:20.874 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 10-Oct-2023 10:08:20.876 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 10-Oct-2023 10:08:20.981 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:20.982 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:20.994 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-38853"] 10-Oct-2023 10:08:20.997 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-38853"] 10-Oct-2023 10:08:20.999 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:21.002 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-38853"] 10-Oct-2023 10:08:21.003 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-38853"] 10-Oct-2023 10:08:21.006 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 10-Oct-2023 10:08:21.007 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 10-Oct-2023 10:08:21.099 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:21.100 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:21.110 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34923"] 10-Oct-2023 10:08:21.117 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34923"] 10-Oct-2023 10:08:21.118 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:21.120 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34923"] 10-Oct-2023 10:08:21.121 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34923"] 10-Oct-2023 10:08:21.125 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 10-Oct-2023 10:08:21.126 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 10-Oct-2023 10:08:21.127 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 10-Oct-2023 10:08:21.129 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 10-Oct-2023 10:08:21.132 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:21.132 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:21.137 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38451"] 10-Oct-2023 10:08:21.142 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38451"] 10-Oct-2023 10:08:21.145 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:21.146 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38451"] 10-Oct-2023 10:08:21.147 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38451"] 10-Oct-2023 10:08:21.150 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 10-Oct-2023 10:08:21.152 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 10-Oct-2023 10:08:21.160 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:21.160 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:21.180 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45789"] 10-Oct-2023 10:08:21.184 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45789"] 10-Oct-2023 10:08:21.187 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:21.189 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45789"] 10-Oct-2023 10:08:21.190 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45789"] 10-Oct-2023 10:08:21.203 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 10-Oct-2023 10:08:21.205 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 10-Oct-2023 10:08:21.216 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:21.216 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:21.229 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-36553"] 10-Oct-2023 10:08:21.247 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-36553"] 10-Oct-2023 10:08:21.252 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:21.254 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-36553"] 10-Oct-2023 10:08:21.255 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-36553"] 10-Oct-2023 10:08:21.266 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 10-Oct-2023 10:08:21.268 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 10-Oct-2023 10:08:21.283 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:21.283 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:21.288 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43887"] 10-Oct-2023 10:08:21.295 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43887"] 10-Oct-2023 10:08:21.302 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:21.304 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43887"] 10-Oct-2023 10:08:21.304 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43887"] 10-Oct-2023 10:08:21.307 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 10-Oct-2023 10:08:21.308 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 10-Oct-2023 10:08:21.309 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 10-Oct-2023 10:08:21.311 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 10-Oct-2023 10:08:21.336 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:21.336 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:21.348 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-33805"] 10-Oct-2023 10:08:21.356 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-33805"] 10-Oct-2023 10:08:21.359 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:21.362 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-33805"] 10-Oct-2023 10:08:21.362 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-33805"] 10-Oct-2023 10:08:21.365 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 10-Oct-2023 10:08:21.366 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 10-Oct-2023 10:08:21.369 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:21.369 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:21.375 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-42159"] 10-Oct-2023 10:08:21.378 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-42159"] 10-Oct-2023 10:08:21.378 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:21.380 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-42159"] 10-Oct-2023 10:08:21.380 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-42159"] 10-Oct-2023 10:08:21.382 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 10-Oct-2023 10:08:21.383 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 10-Oct-2023 10:08:21.385 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 10:08:21.386 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 10:08:21.389 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-34305"] 10-Oct-2023 10:08:21.394 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-34305"] 10-Oct-2023 10:08:21.397 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 10:08:21.399 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-34305"] 10-Oct-2023 10:08:21.399 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-34305"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.331 sec Testcase: testUseContentTypeExpiresConfiguration took 0.04 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.005 sec Testcase: testBug63909 took 0.338 sec Testcase: testConfiguration took 0.131 sec Testcase: testNullContentType took 0.119 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.024 sec Testcase: testUseDefaultConfiguration2 took 0.053 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.062 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.041 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.055 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.017 sec Testcase: testEmptyContent took 0.019 sec