Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.081 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 10 Jul 2024 19:34:14 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 10 Jul 2024 19:37:14 GMT Content-Length: 11 Date: Wed, 10 Jul 2024 19:34:14 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 10 Jul 2024 19:34:14 GMT Expires: Wed, 10 Jul 2024 19:41:14 GMT Keep-Alive: timeout=3 ETag: W/"971-1720639263238" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 10 Jul 2024 19:35:14 GMT Content-Length: 0 Date: Wed, 10 Jul 2024 19:34:14 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 10 Jul 2024 19:35:14 GMT Content-Length: 11 Date: Wed, 10 Jul 2024 19:34:14 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 10 Jul 2024 19:35:15 GMT Content-Length: 11 Date: Wed, 10 Jul 2024 19:34:14 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=419 Connection: keep-alive Expires: Wed, 10 Jul 2024 19:41:15 GMT Content-Length: 11 Date: Wed, 10 Jul 2024 19:34:14 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: Wed, 10 Jul 2024 19:34:14 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 10 Jul 2024 19:34:15 GMT Content-Length: 11 Date: Wed, 10 Jul 2024 19:34:14 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 10 Jul 2024 19:39:15 GMT Content-Length: 11 Date: Wed, 10 Jul 2024 19:34:14 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 10 Jul 2024 19:41:15 GMT Content-Length: 0 Date: Wed, 10 Jul 2024 19:34:15 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 10-Jul-2024 19:34:12.518 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 10-Jul-2024 19:34:13.571 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 10-Jul-2024 19:34:13.624 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:13.624 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:13.764 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-41019"] 10-Jul-2024 19:34:14.029 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-41019"] 10-Jul-2024 19:34:14.035 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:14.061 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-41019"] 10-Jul-2024 19:34:14.085 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-41019"] 10-Jul-2024 19:34:14.100 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 10-Jul-2024 19:34:14.112 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 10-Jul-2024 19:34:14.119 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:14.120 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:14.135 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-38293"] 10-Jul-2024 19:34:14.284 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-38293"] 10-Jul-2024 19:34:14.292 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:14.309 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-38293"] 10-Jul-2024 19:34:14.317 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-38293"] 10-Jul-2024 19:34:14.319 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 10-Jul-2024 19:34:14.321 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 10-Jul-2024 19:34:14.322 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 10-Jul-2024 19:34:14.329 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 10-Jul-2024 19:34:14.343 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:14.344 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:14.494 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 10-Jul-2024 19:34:14.703 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 10-Jul-2024 19:34:14.740 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-36541"] 10-Jul-2024 19:34:14.766 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-36541"] 10-Jul-2024 19:34:14.769 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:14.776 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-36541"] 10-Jul-2024 19:34:14.778 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-36541"] 10-Jul-2024 19:34:14.785 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 10-Jul-2024 19:34:14.786 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 10-Jul-2024 19:34:14.787 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:14.787 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:14.792 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-44137"] 10-Jul-2024 19:34:14.854 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-44137"] 10-Jul-2024 19:34:14.854 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:14.857 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-44137"] 10-Jul-2024 19:34:14.859 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-44137"] 10-Jul-2024 19:34:14.861 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 10-Jul-2024 19:34:14.863 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 10-Jul-2024 19:34:14.865 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:14.866 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:14.892 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-33609"] 10-Jul-2024 19:34:14.904 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-33609"] 10-Jul-2024 19:34:14.909 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:14.911 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-33609"] 10-Jul-2024 19:34:14.915 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-33609"] 10-Jul-2024 19:34:14.917 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 10-Jul-2024 19:34:14.918 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 10-Jul-2024 19:34:14.918 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 10-Jul-2024 19:34:14.920 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 10-Jul-2024 19:34:14.921 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:14.925 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:14.936 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-42079"] 10-Jul-2024 19:34:14.974 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-42079"] 10-Jul-2024 19:34:14.975 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:14.977 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-42079"] 10-Jul-2024 19:34:14.979 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-42079"] 10-Jul-2024 19:34:14.981 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 10-Jul-2024 19:34:14.983 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 10-Jul-2024 19:34:14.983 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:14.984 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:14.999 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-38375"] 10-Jul-2024 19:34:15.059 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-38375"] 10-Jul-2024 19:34:15.060 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:15.062 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-38375"] 10-Jul-2024 19:34:15.065 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-38375"] 10-Jul-2024 19:34:15.066 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 10-Jul-2024 19:34:15.068 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 10-Jul-2024 19:34:15.069 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:15.069 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:15.078 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-38389"] 10-Jul-2024 19:34:15.093 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-38389"] 10-Jul-2024 19:34:15.095 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:15.097 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-38389"] 10-Jul-2024 19:34:15.101 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-38389"] 10-Jul-2024 19:34:15.103 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 10-Jul-2024 19:34:15.104 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 10-Jul-2024 19:34:15.105 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:15.105 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:15.113 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-45955"] 10-Jul-2024 19:34:15.129 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-45955"] 10-Jul-2024 19:34:15.131 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:15.133 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-45955"] 10-Jul-2024 19:34:15.137 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-45955"] 10-Jul-2024 19:34:15.138 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 10-Jul-2024 19:34:15.144 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 10-Jul-2024 19:34:15.152 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 10-Jul-2024 19:34:15.154 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 10-Jul-2024 19:34:15.154 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:15.154 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:15.171 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-37771"] 10-Jul-2024 19:34:15.202 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-37771"] 10-Jul-2024 19:34:15.205 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:15.207 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-37771"] 10-Jul-2024 19:34:15.212 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-37771"] 10-Jul-2024 19:34:15.215 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 10-Jul-2024 19:34:15.217 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 10-Jul-2024 19:34:15.220 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:15.220 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:15.243 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-34305"] 10-Jul-2024 19:34:15.256 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-34305"] 10-Jul-2024 19:34:15.259 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:15.261 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-34305"] 10-Jul-2024 19:34:15.271 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-34305"] 10-Jul-2024 19:34:15.272 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 10-Jul-2024 19:34:15.274 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 10-Jul-2024 19:34:15.274 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Jul-2024 19:34:15.274 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.27-dev] 10-Jul-2024 19:34:15.295 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-35319"] 10-Jul-2024 19:34:15.380 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-35319"] 10-Jul-2024 19:34:15.381 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Jul-2024 19:34:15.383 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-35319"] 10-Jul-2024 19:34:15.387 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-35319"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.736 sec Testcase: testUseContentTypeExpiresConfiguration took 0.219 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.463 sec Testcase: testConfiguration took 0.077 sec Testcase: testNullContentType took 0.055 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.063 sec Testcase: testUseDefaultConfiguration2 took 0.085 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.036 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.035 sec Testcase: testIntsToCommaDelimitedString took 0.008 sec Testcase: testSkipBecauseExpiresIsDefined took 0.068 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.058 sec Testcase: testEmptyContent took 0.115 sec