Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.245 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 19 Oct 2023 14:48:23 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Thu, 19 Oct 2023 14:51:23 GMT Content-Length: 11 Date: Thu, 19 Oct 2023 14:48:23 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 19 Oct 2023 14:48:23 GMT Expires: Thu, 19 Oct 2023 14:55:23 GMT Keep-Alive: timeout=3 ETag: W/"971-1697724967313" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 19 Oct 2023 14:49:24 GMT Content-Length: 0 Date: Thu, 19 Oct 2023 14:48:23 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 19 Oct 2023 14:49:24 GMT Content-Length: 11 Date: Thu, 19 Oct 2023 14:48:23 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Thu, 19 Oct 2023 14:49:24 GMT Content-Length: 11 Date: Thu, 19 Oct 2023 14:48:23 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 19 Oct 2023 14:55:24 GMT Content-Length: 11 Date: Thu, 19 Oct 2023 14:48:23 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, 19 Oct 2023 14:48:23 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 19 Oct 2023 14:48:24 GMT Content-Length: 11 Date: Thu, 19 Oct 2023 14:48:23 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Thu, 19 Oct 2023 14:53:24 GMT Content-Length: 11 Date: Thu, 19 Oct 2023 14:48:23 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 19 Oct 2023 14:55:24 GMT Content-Length: 0 Date: Thu, 19 Oct 2023 14:48:23 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 19-Oct-2023 14:48:22.309 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 19-Oct-2023 14:48:23.026 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 19-Oct-2023 14:48:23.175 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:23.176 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:23.349 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34273"] 19-Oct-2023 14:48:23.570 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34273"] 19-Oct-2023 14:48:23.572 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:23.614 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34273"] 19-Oct-2023 14:48:23.622 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34273"] 19-Oct-2023 14:48:23.640 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 19-Oct-2023 14:48:23.643 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 19-Oct-2023 14:48:23.691 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:23.691 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:23.712 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-33815"] 19-Oct-2023 14:48:23.748 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-33815"] 19-Oct-2023 14:48:23.750 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:23.753 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-33815"] 19-Oct-2023 14:48:23.755 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-33815"] 19-Oct-2023 14:48:23.764 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 19-Oct-2023 14:48:23.765 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 19-Oct-2023 14:48:23.768 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 19-Oct-2023 14:48:23.779 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 19-Oct-2023 14:48:23.797 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:23.797 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:23.877 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 19-Oct-2023 14:48:23.976 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-45777"] 19-Oct-2023 14:48:23.989 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-45777"] 19-Oct-2023 14:48:23.990 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:23.996 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-45777"] 19-Oct-2023 14:48:23.997 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-45777"] 19-Oct-2023 14:48:24.001 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 19-Oct-2023 14:48:24.002 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 19-Oct-2023 14:48:24.008 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:24.008 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:24.012 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37643"] 19-Oct-2023 14:48:24.013 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37643"] 19-Oct-2023 14:48:24.014 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:24.016 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37643"] 19-Oct-2023 14:48:24.016 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37643"] 19-Oct-2023 14:48:24.019 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 19-Oct-2023 14:48:24.020 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 19-Oct-2023 14:48:24.025 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:24.025 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:24.029 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-35525"] 19-Oct-2023 14:48:24.032 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-35525"] 19-Oct-2023 14:48:24.035 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:24.037 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-35525"] 19-Oct-2023 14:48:24.037 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-35525"] 19-Oct-2023 14:48:24.041 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 19-Oct-2023 14:48:24.041 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 19-Oct-2023 14:48:24.042 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 19-Oct-2023 14:48:24.044 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 19-Oct-2023 14:48:24.046 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:24.046 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:24.051 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46269"] 19-Oct-2023 14:48:24.055 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46269"] 19-Oct-2023 14:48:24.058 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:24.059 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46269"] 19-Oct-2023 14:48:24.060 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46269"] 19-Oct-2023 14:48:24.065 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 19-Oct-2023 14:48:24.066 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 19-Oct-2023 14:48:24.069 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:24.069 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:24.072 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43517"] 19-Oct-2023 14:48:24.075 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43517"] 19-Oct-2023 14:48:24.075 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:24.077 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43517"] 19-Oct-2023 14:48:24.077 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43517"] 19-Oct-2023 14:48:24.080 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 19-Oct-2023 14:48:24.082 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 19-Oct-2023 14:48:24.083 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:24.083 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:24.087 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41383"] 19-Oct-2023 14:48:24.090 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41383"] 19-Oct-2023 14:48:24.095 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:24.097 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41383"] 19-Oct-2023 14:48:24.098 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41383"] 19-Oct-2023 14:48:24.103 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 19-Oct-2023 14:48:24.105 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 19-Oct-2023 14:48:24.106 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:24.106 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:24.110 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-38603"] 19-Oct-2023 14:48:24.115 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-38603"] 19-Oct-2023 14:48:24.120 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:24.122 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-38603"] 19-Oct-2023 14:48:24.122 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-38603"] 19-Oct-2023 14:48:24.125 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 19-Oct-2023 14:48:24.126 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 19-Oct-2023 14:48:24.126 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 19-Oct-2023 14:48:24.127 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 19-Oct-2023 14:48:24.137 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:24.137 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:24.147 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-33323"] 19-Oct-2023 14:48:24.166 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-33323"] 19-Oct-2023 14:48:24.167 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:24.169 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-33323"] 19-Oct-2023 14:48:24.170 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-33323"] 19-Oct-2023 14:48:24.176 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 19-Oct-2023 14:48:24.177 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 19-Oct-2023 14:48:24.182 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:24.182 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:24.189 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-32885"] 19-Oct-2023 14:48:24.194 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-32885"] 19-Oct-2023 14:48:24.196 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:24.198 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-32885"] 19-Oct-2023 14:48:24.201 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-32885"] 19-Oct-2023 14:48:24.206 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 19-Oct-2023 14:48:24.208 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 19-Oct-2023 14:48:24.221 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 19-Oct-2023 14:48:24.222 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 19-Oct-2023 14:48:24.227 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46687"] 19-Oct-2023 14:48:24.230 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46687"] 19-Oct-2023 14:48:24.233 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 19-Oct-2023 14:48:24.235 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46687"] 19-Oct-2023 14:48:24.237 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46687"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.585 sec Testcase: testUseContentTypeExpiresConfiguration took 0.122 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.004 sec Testcase: testBug63909 took 0.234 sec Testcase: testConfiguration took 0.017 sec Testcase: testNullContentType took 0.022 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.023 sec Testcase: testUseDefaultConfiguration2 took 0.015 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.023 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.021 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.049 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.03 sec Testcase: testEmptyContent took 0.036 sec