Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.776 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 23 Oct 2023 18:34:35 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 23 Oct 2023 18:37:35 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 18:34:35 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 23 Oct 2023 18:34:35 GMT Expires: Mon, 23 Oct 2023 18:41:35 GMT Keep-Alive: timeout=3 ETag: W/"971-1698084798317" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 23 Oct 2023 18:35:36 GMT Content-Length: 0 Date: Mon, 23 Oct 2023 18:34:35 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 23 Oct 2023 18:35:36 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 18:34:35 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 23 Oct 2023 18:35:36 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 18:34:35 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 23 Oct 2023 18:41:36 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 18:34:35 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: Mon, 23 Oct 2023 18:34:35 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 23 Oct 2023 18:34:36 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 18:34:35 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 23 Oct 2023 18:39:36 GMT Content-Length: 11 Date: Mon, 23 Oct 2023 18:34:35 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 23 Oct 2023 18:41:36 GMT Content-Length: 0 Date: Mon, 23 Oct 2023 18:34:35 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 23-Oct-2023 18:34:33.919 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 23-Oct-2023 18:34:35.010 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 23-Oct-2023 18:34:35.178 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:35.178 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:35.453 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46187"] 23-Oct-2023 18:34:35.645 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46187"] 23-Oct-2023 18:34:35.647 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:35.680 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46187"] 23-Oct-2023 18:34:35.692 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46187"] 23-Oct-2023 18:34:35.705 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 23-Oct-2023 18:34:35.712 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 23-Oct-2023 18:34:35.780 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:35.780 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:35.800 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35279"] 23-Oct-2023 18:34:35.811 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35279"] 23-Oct-2023 18:34:35.812 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:35.815 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35279"] 23-Oct-2023 18:34:35.816 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35279"] 23-Oct-2023 18:34:35.821 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 23-Oct-2023 18:34:35.824 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 23-Oct-2023 18:34:35.825 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 23-Oct-2023 18:34:35.837 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 23-Oct-2023 18:34:35.841 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:35.842 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:35.887 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 23-Oct-2023 18:34:35.987 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41173"] 23-Oct-2023 18:34:35.996 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41173"] 23-Oct-2023 18:34:35.999 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.010 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41173"] 23-Oct-2023 18:34:36.012 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41173"] 23-Oct-2023 18:34:36.015 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 23-Oct-2023 18:34:36.019 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 23-Oct-2023 18:34:36.024 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:36.024 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:36.032 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43975"] 23-Oct-2023 18:34:36.032 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43975"] 23-Oct-2023 18:34:36.033 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.035 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43975"] 23-Oct-2023 18:34:36.036 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43975"] 23-Oct-2023 18:34:36.041 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 23-Oct-2023 18:34:36.044 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 23-Oct-2023 18:34:36.049 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:36.049 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:36.057 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-42341"] 23-Oct-2023 18:34:36.061 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-42341"] 23-Oct-2023 18:34:36.062 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.064 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-42341"] 23-Oct-2023 18:34:36.065 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-42341"] 23-Oct-2023 18:34:36.068 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 23-Oct-2023 18:34:36.069 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 23-Oct-2023 18:34:36.070 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 23-Oct-2023 18:34:36.071 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 23-Oct-2023 18:34:36.075 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:36.075 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:36.079 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43363"] 23-Oct-2023 18:34:36.085 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43363"] 23-Oct-2023 18:34:36.091 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.093 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43363"] 23-Oct-2023 18:34:36.095 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43363"] 23-Oct-2023 18:34:36.097 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 23-Oct-2023 18:34:36.099 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 23-Oct-2023 18:34:36.105 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:36.105 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:36.109 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45821"] 23-Oct-2023 18:34:36.112 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45821"] 23-Oct-2023 18:34:36.113 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.115 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45821"] 23-Oct-2023 18:34:36.115 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45821"] 23-Oct-2023 18:34:36.125 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 23-Oct-2023 18:34:36.127 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 23-Oct-2023 18:34:36.135 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:36.135 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:36.144 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33891"] 23-Oct-2023 18:34:36.148 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33891"] 23-Oct-2023 18:34:36.148 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.151 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33891"] 23-Oct-2023 18:34:36.152 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33891"] 23-Oct-2023 18:34:36.155 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 23-Oct-2023 18:34:36.157 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 23-Oct-2023 18:34:36.159 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:36.159 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:36.163 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-37137"] 23-Oct-2023 18:34:36.166 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-37137"] 23-Oct-2023 18:34:36.168 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.170 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-37137"] 23-Oct-2023 18:34:36.171 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-37137"] 23-Oct-2023 18:34:36.174 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 23-Oct-2023 18:34:36.176 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 23-Oct-2023 18:34:36.177 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 23-Oct-2023 18:34:36.178 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 23-Oct-2023 18:34:36.189 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:36.189 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:36.195 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38169"] 23-Oct-2023 18:34:36.201 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38169"] 23-Oct-2023 18:34:36.204 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.206 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38169"] 23-Oct-2023 18:34:36.207 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38169"] 23-Oct-2023 18:34:36.210 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 23-Oct-2023 18:34:36.211 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 23-Oct-2023 18:34:36.216 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:36.216 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:36.222 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-46289"] 23-Oct-2023 18:34:36.225 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-46289"] 23-Oct-2023 18:34:36.226 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.228 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-46289"] 23-Oct-2023 18:34:36.228 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-46289"] 23-Oct-2023 18:34:36.232 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 23-Oct-2023 18:34:36.233 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 23-Oct-2023 18:34:36.241 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 23-Oct-2023 18:34:36.241 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 23-Oct-2023 18:34:36.245 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-43957"] 23-Oct-2023 18:34:36.247 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-43957"] 23-Oct-2023 18:34:36.247 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 23-Oct-2023 18:34:36.249 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-43957"] 23-Oct-2023 18:34:36.249 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-43957"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 2.083 sec Testcase: testUseContentTypeExpiresConfiguration took 0.115 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.006 sec Testcase: testBug63909 took 0.19 sec Testcase: testConfiguration took 0.025 sec Testcase: testNullContentType took 0.027 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.028 sec Testcase: testUseDefaultConfiguration2 took 0.028 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.029 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.02 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.032 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.022 sec Testcase: testEmptyContent took 0.02 sec