Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.278 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 12 Oct 2023 12:18:30 GMT Keep-Alive: timeout=3 Cache-Control: max-age=179 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:21:30 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:18:30 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 12 Oct 2023 12:18:30 GMT Expires: Thu, 12 Oct 2023 12:25:30 GMT Keep-Alive: timeout=3 ETag: W/"971-1697112455338" 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 12:19:30 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 12:18:30 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:19:30 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:18:30 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=59 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:19:31 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:18:30 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 12:25:31 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:18:30 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 12:18:30 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:18:31 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:18:30 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 12:23:31 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 12:18:30 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=419 Connection: keep-alive Expires: Thu, 12 Oct 2023 12:25:31 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 12:18:30 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 12-Oct-2023 12:18:29.258 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 12-Oct-2023 12:18:29.856 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 12-Oct-2023 12:18:29.920 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:29.920 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:30.125 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-41089"] 12-Oct-2023 12:18:30.302 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-41089"] 12-Oct-2023 12:18:30.305 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:30.324 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-41089"] 12-Oct-2023 12:18:30.329 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-41089"] 12-Oct-2023 12:18:30.339 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 12-Oct-2023 12:18:30.342 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 12-Oct-2023 12:18:30.343 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:30.343 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:30.354 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-33375"] 12-Oct-2023 12:18:30.375 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-33375"] 12-Oct-2023 12:18:30.387 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:30.391 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-33375"] 12-Oct-2023 12:18:30.396 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-33375"] 12-Oct-2023 12:18:30.397 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 12-Oct-2023 12:18:30.399 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 12-Oct-2023 12:18:30.399 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 12-Oct-2023 12:18:30.407 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 12-Oct-2023 12:18:30.408 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:30.412 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:30.461 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 12-Oct-2023 12:18:30.563 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-36029"] 12-Oct-2023 12:18:30.687 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-36029"] 12-Oct-2023 12:18:30.688 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:30.695 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-36029"] 12-Oct-2023 12:18:30.703 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-36029"] 12-Oct-2023 12:18:30.706 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 12-Oct-2023 12:18:30.708 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 12-Oct-2023 12:18:30.709 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:30.709 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:30.724 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-46447"] 12-Oct-2023 12:18:30.776 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-46447"] 12-Oct-2023 12:18:30.779 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:30.781 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-46447"] 12-Oct-2023 12:18:30.796 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-46447"] 12-Oct-2023 12:18:30.797 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 12-Oct-2023 12:18:30.800 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 12-Oct-2023 12:18:30.801 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:30.801 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:30.806 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-37111"] 12-Oct-2023 12:18:30.833 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-37111"] 12-Oct-2023 12:18:30.836 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:30.839 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-37111"] 12-Oct-2023 12:18:30.842 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-37111"] 12-Oct-2023 12:18:30.846 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 12-Oct-2023 12:18:30.848 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 12-Oct-2023 12:18:30.849 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 12-Oct-2023 12:18:30.851 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 12-Oct-2023 12:18:30.852 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:30.852 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:30.886 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-41925"] 12-Oct-2023 12:18:30.992 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-41925"] 12-Oct-2023 12:18:30.997 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:30.999 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-41925"] 12-Oct-2023 12:18:31.008 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-41925"] 12-Oct-2023 12:18:31.010 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 12-Oct-2023 12:18:31.012 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 12-Oct-2023 12:18:31.026 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:31.026 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:31.051 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-45939"] 12-Oct-2023 12:18:31.093 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-45939"] 12-Oct-2023 12:18:31.096 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:31.098 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-45939"] 12-Oct-2023 12:18:31.101 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-45939"] 12-Oct-2023 12:18:31.103 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 12-Oct-2023 12:18:31.105 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 12-Oct-2023 12:18:31.105 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:31.106 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:31.111 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-42303"] 12-Oct-2023 12:18:31.120 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-42303"] 12-Oct-2023 12:18:31.123 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:31.125 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-42303"] 12-Oct-2023 12:18:31.130 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-42303"] 12-Oct-2023 12:18:31.131 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 12-Oct-2023 12:18:31.133 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 12-Oct-2023 12:18:31.133 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:31.133 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:31.138 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-45977"] 12-Oct-2023 12:18:31.149 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-45977"] 12-Oct-2023 12:18:31.150 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:31.152 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-45977"] 12-Oct-2023 12:18:31.155 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-45977"] 12-Oct-2023 12:18:31.156 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 12-Oct-2023 12:18:31.157 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 12-Oct-2023 12:18:31.158 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 12-Oct-2023 12:18:31.159 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 12-Oct-2023 12:18:31.160 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:31.160 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:31.163 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-38243"] 12-Oct-2023 12:18:31.172 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-38243"] 12-Oct-2023 12:18:31.173 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:31.176 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-38243"] 12-Oct-2023 12:18:31.179 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-38243"] 12-Oct-2023 12:18:31.181 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 12-Oct-2023 12:18:31.183 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 12-Oct-2023 12:18:31.184 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:31.185 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:31.190 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-39729"] 12-Oct-2023 12:18:31.208 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-39729"] 12-Oct-2023 12:18:31.211 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:31.213 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-39729"] 12-Oct-2023 12:18:31.224 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-39729"] 12-Oct-2023 12:18:31.225 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 12-Oct-2023 12:18:31.226 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 12-Oct-2023 12:18:31.226 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 12:18:31.227 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 12-Oct-2023 12:18:31.230 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-46461"] 12-Oct-2023 12:18:31.248 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-46461"] 12-Oct-2023 12:18:31.250 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 12:18:31.255 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-46461"] 12-Oct-2023 12:18:31.257 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-46461"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.279 sec Testcase: testUseContentTypeExpiresConfiguration took 0.058 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.306 sec Testcase: testConfiguration took 0.092 sec Testcase: testNullContentType took 0.046 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.005 sec Testcase: testUseDefaultConfiguration1 took 0.16 sec Testcase: testUseDefaultConfiguration2 took 0.092 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.028 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.025 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.023 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.044 sec Testcase: testEmptyContent took 0.033 sec