Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.43 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 14 Feb 2024 09:19:29 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:22:29 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:19:29 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 14 Feb 2024 09:19:29 GMT Expires: Wed, 14 Feb 2024 09:26:29 GMT Keep-Alive: timeout=3 ETag: W/"971-1707900970339" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:20:29 GMT Content-Length: 0 Date: Wed, 14 Feb 2024 09:19:29 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:20:29 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:19:29 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:20:30 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:19:29 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:26:30 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:19:29 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, 14 Feb 2024 09:19:29 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:19:30 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:19:29 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:24:30 GMT Content-Length: 11 Date: Wed, 14 Feb 2024 09:19:29 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 14 Feb 2024 09:26:30 GMT Content-Length: 0 Date: Wed, 14 Feb 2024 09:19:29 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 14-Feb-2024 09:19:27.660 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 14-Feb-2024 09:19:28.784 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 14-Feb-2024 09:19:28.966 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:28.966 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:29.186 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-44689"] 14-Feb-2024 09:19:29.387 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-44689"] 14-Feb-2024 09:19:29.391 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:29.417 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-44689"] 14-Feb-2024 09:19:29.420 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-44689"] 14-Feb-2024 09:19:29.441 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 14-Feb-2024 09:19:29.446 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 14-Feb-2024 09:19:29.506 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:29.506 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:29.517 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40537"] 14-Feb-2024 09:19:29.543 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40537"] 14-Feb-2024 09:19:29.544 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:29.547 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40537"] 14-Feb-2024 09:19:29.548 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40537"] 14-Feb-2024 09:19:29.558 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 14-Feb-2024 09:19:29.559 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 14-Feb-2024 09:19:29.560 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 14-Feb-2024 09:19:29.568 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 14-Feb-2024 09:19:29.584 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:29.585 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:29.650 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 14-Feb-2024 09:19:29.792 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-39091"] 14-Feb-2024 09:19:29.822 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-39091"] 14-Feb-2024 09:19:29.825 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:29.841 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-39091"] 14-Feb-2024 09:19:29.846 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-39091"] 14-Feb-2024 09:19:29.850 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 14-Feb-2024 09:19:29.854 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 14-Feb-2024 09:19:29.883 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:29.884 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:29.890 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-44759"] 14-Feb-2024 09:19:29.890 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-44759"] 14-Feb-2024 09:19:29.891 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:29.893 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-44759"] 14-Feb-2024 09:19:29.893 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-44759"] 14-Feb-2024 09:19:29.896 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 14-Feb-2024 09:19:29.902 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 14-Feb-2024 09:19:29.912 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:29.912 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:29.917 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-33283"] 14-Feb-2024 09:19:29.924 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-33283"] 14-Feb-2024 09:19:29.925 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:29.932 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-33283"] 14-Feb-2024 09:19:29.933 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-33283"] 14-Feb-2024 09:19:29.936 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 14-Feb-2024 09:19:29.937 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 14-Feb-2024 09:19:29.938 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 14-Feb-2024 09:19:29.942 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 14-Feb-2024 09:19:29.952 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:29.952 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:29.962 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40173"] 14-Feb-2024 09:19:29.976 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40173"] 14-Feb-2024 09:19:29.978 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:29.981 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40173"] 14-Feb-2024 09:19:29.982 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40173"] 14-Feb-2024 09:19:29.986 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 14-Feb-2024 09:19:29.988 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 14-Feb-2024 09:19:30.052 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:30.052 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:30.064 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39935"] 14-Feb-2024 09:19:30.070 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39935"] 14-Feb-2024 09:19:30.071 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:30.080 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39935"] 14-Feb-2024 09:19:30.081 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39935"] 14-Feb-2024 09:19:30.085 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 14-Feb-2024 09:19:30.087 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 14-Feb-2024 09:19:30.091 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:30.092 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:30.109 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45415"] 14-Feb-2024 09:19:30.117 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45415"] 14-Feb-2024 09:19:30.117 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:30.119 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45415"] 14-Feb-2024 09:19:30.120 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45415"] 14-Feb-2024 09:19:30.126 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 14-Feb-2024 09:19:30.128 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 14-Feb-2024 09:19:30.162 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:30.163 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:30.184 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-36497"] 14-Feb-2024 09:19:30.200 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-36497"] 14-Feb-2024 09:19:30.201 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:30.204 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-36497"] 14-Feb-2024 09:19:30.204 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-36497"] 14-Feb-2024 09:19:30.212 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 14-Feb-2024 09:19:30.213 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 14-Feb-2024 09:19:30.214 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 14-Feb-2024 09:19:30.215 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 14-Feb-2024 09:19:30.298 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:30.298 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:30.314 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-46063"] 14-Feb-2024 09:19:30.327 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-46063"] 14-Feb-2024 09:19:30.328 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:30.333 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-46063"] 14-Feb-2024 09:19:30.333 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-46063"] 14-Feb-2024 09:19:30.346 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 14-Feb-2024 09:19:30.348 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 14-Feb-2024 09:19:30.451 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:30.451 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:30.456 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-37691"] 14-Feb-2024 09:19:30.462 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-37691"] 14-Feb-2024 09:19:30.465 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:30.468 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-37691"] 14-Feb-2024 09:19:30.468 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-37691"] 14-Feb-2024 09:19:30.471 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 14-Feb-2024 09:19:30.473 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 14-Feb-2024 09:19:30.506 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Feb-2024 09:19:30.506 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 14-Feb-2024 09:19:30.511 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-42145"] 14-Feb-2024 09:19:30.516 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-42145"] 14-Feb-2024 09:19:30.518 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Feb-2024 09:19:30.527 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-42145"] 14-Feb-2024 09:19:30.528 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-42145"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 2.259 sec Testcase: testUseContentTypeExpiresConfiguration took 0.117 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.003 sec Testcase: testBug63909 took 0.29 sec Testcase: testConfiguration took 0.046 sec Testcase: testNullContentType took 0.04 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.047 sec Testcase: testUseDefaultConfiguration2 took 0.098 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.041 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.086 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.132 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.125 sec Testcase: testEmptyContent took 0.06 sec