Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.309 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 13 Feb 2024 19:32:30 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 13 Feb 2024 19:35:30 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 19:32:30 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 13 Feb 2024 19:32:30 GMT Expires: Tue, 13 Feb 2024 19:39:30 GMT Keep-Alive: timeout=3 ETag: W/"971-1707851388804" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 13 Feb 2024 19:33:30 GMT Content-Length: 0 Date: Tue, 13 Feb 2024 19:32:30 GMT Keep-Alive: timeout=3 Cache-Control: max-age=59 Connection: keep-alive Expires: Tue, 13 Feb 2024 19:33:30 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 19:32:30 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 13 Feb 2024 19:33:30 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 19:32:30 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 13 Feb 2024 19:39:31 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 19:32: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: Tue, 13 Feb 2024 19:32:30 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 13 Feb 2024 19:32:31 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 19:32:30 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 13 Feb 2024 19:37:31 GMT Content-Length: 11 Date: Tue, 13 Feb 2024 19:32:30 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 13 Feb 2024 19:39:31 GMT Content-Length: 0 Date: Tue, 13 Feb 2024 19:32:30 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 13-Feb-2024 19:32:28.646 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 13-Feb-2024 19:32:29.722 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 13-Feb-2024 19:32:29.952 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:29.952 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:30.256 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43605"] 13-Feb-2024 19:32:30.383 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43605"] 13-Feb-2024 19:32:30.386 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:30.403 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43605"] 13-Feb-2024 19:32:30.405 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43605"] 13-Feb-2024 19:32:30.413 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 13-Feb-2024 19:32:30.416 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 13-Feb-2024 19:32:30.428 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:30.428 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:30.434 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-37365"] 13-Feb-2024 19:32:30.448 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-37365"] 13-Feb-2024 19:32:30.450 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:30.453 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-37365"] 13-Feb-2024 19:32:30.453 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-37365"] 13-Feb-2024 19:32:30.460 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 13-Feb-2024 19:32:30.461 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 13-Feb-2024 19:32:30.462 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 13-Feb-2024 19:32:30.469 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 13-Feb-2024 19:32:30.484 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:30.484 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:30.533 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 13-Feb-2024 19:32:30.682 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-39415"] 13-Feb-2024 19:32:30.692 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-39415"] 13-Feb-2024 19:32:30.693 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:30.699 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-39415"] 13-Feb-2024 19:32:30.702 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-39415"] 13-Feb-2024 19:32:30.717 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 13-Feb-2024 19:32:30.719 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 13-Feb-2024 19:32:30.730 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:30.731 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:30.736 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40555"] 13-Feb-2024 19:32:30.736 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40555"] 13-Feb-2024 19:32:30.737 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:30.739 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40555"] 13-Feb-2024 19:32:30.740 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40555"] 13-Feb-2024 19:32:30.743 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 13-Feb-2024 19:32:30.745 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 13-Feb-2024 19:32:30.755 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:30.755 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:30.764 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41277"] 13-Feb-2024 19:32:30.771 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41277"] 13-Feb-2024 19:32:30.772 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:30.787 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41277"] 13-Feb-2024 19:32:30.788 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41277"] 13-Feb-2024 19:32:30.791 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 13-Feb-2024 19:32:30.792 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 13-Feb-2024 19:32:30.793 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 13-Feb-2024 19:32:30.795 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 13-Feb-2024 19:32:30.847 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:30.848 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:30.868 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44233"] 13-Feb-2024 19:32:30.888 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44233"] 13-Feb-2024 19:32:30.891 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:30.893 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44233"] 13-Feb-2024 19:32:30.897 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44233"] 13-Feb-2024 19:32:30.908 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 13-Feb-2024 19:32:30.910 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 13-Feb-2024 19:32:30.955 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:30.955 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:30.961 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-35531"] 13-Feb-2024 19:32:30.976 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-35531"] 13-Feb-2024 19:32:30.978 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:30.980 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-35531"] 13-Feb-2024 19:32:30.981 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-35531"] 13-Feb-2024 19:32:30.984 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 13-Feb-2024 19:32:30.986 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 13-Feb-2024 19:32:30.999 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:30.999 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:31.022 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38447"] 13-Feb-2024 19:32:31.028 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38447"] 13-Feb-2024 19:32:31.032 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:31.034 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38447"] 13-Feb-2024 19:32:31.034 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-38447"] 13-Feb-2024 19:32:31.039 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 13-Feb-2024 19:32:31.041 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 13-Feb-2024 19:32:31.130 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:31.130 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:31.149 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-46377"] 13-Feb-2024 19:32:31.154 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-46377"] 13-Feb-2024 19:32:31.157 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:31.158 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-46377"] 13-Feb-2024 19:32:31.160 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-46377"] 13-Feb-2024 19:32:31.163 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 13-Feb-2024 19:32:31.164 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 13-Feb-2024 19:32:31.164 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 13-Feb-2024 19:32:31.166 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 13-Feb-2024 19:32:31.252 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:31.252 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:31.257 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40075"] 13-Feb-2024 19:32:31.264 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40075"] 13-Feb-2024 19:32:31.265 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:31.267 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40075"] 13-Feb-2024 19:32:31.267 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40075"] 13-Feb-2024 19:32:31.271 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 13-Feb-2024 19:32:31.273 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 13-Feb-2024 19:32:31.283 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:31.283 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:31.288 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36065"] 13-Feb-2024 19:32:31.293 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36065"] 13-Feb-2024 19:32:31.294 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:31.296 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36065"] 13-Feb-2024 19:32:31.296 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36065"] 13-Feb-2024 19:32:31.304 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 13-Feb-2024 19:32:31.306 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 13-Feb-2024 19:32:31.323 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Feb-2024 19:32:31.324 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.86-dev] 13-Feb-2024 19:32:31.330 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40409"] 13-Feb-2024 19:32:31.334 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40409"] 13-Feb-2024 19:32:31.334 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Feb-2024 19:32:31.336 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40409"] 13-Feb-2024 19:32:31.337 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40409"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 2.261 sec Testcase: testUseContentTypeExpiresConfiguration took 0.046 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.003 sec Testcase: testBug63909 took 0.254 sec Testcase: testConfiguration took 0.027 sec Testcase: testNullContentType took 0.047 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.114 sec Testcase: testUseDefaultConfiguration2 took 0.076 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.055 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.123 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.106 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.032 sec Testcase: testEmptyContent took 0.037 sec