Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.262 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 10 Oct 2023 19:39:01 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 10 Oct 2023 19:42:01 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 19:39:01 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 10 Oct 2023 19:39:01 GMT Expires: Tue, 10 Oct 2023 19:46:02 GMT Keep-Alive: timeout=3 ETag: W/"971-1696965461086" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 10 Oct 2023 19:40:02 GMT Content-Length: 0 Date: Tue, 10 Oct 2023 19:39:01 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 10 Oct 2023 19:40:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 19:39:01 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 10 Oct 2023 19:40:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 19:39:01 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 10 Oct 2023 19:46:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 19:39:01 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, 10 Oct 2023 19:39:01 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 10 Oct 2023 19:39:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 19:39:01 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 10 Oct 2023 19:44:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 19:39:01 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 10 Oct 2023 19:46:02 GMT Content-Length: 0 Date: Tue, 10 Oct 2023 19:39:01 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 10-Oct-2023 19:39:00.838 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 10-Oct-2023 19:39:01.497 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 10-Oct-2023 19:39:01.590 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:01.592 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:01.775 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-35731"] 10-Oct-2023 19:39:01.853 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-35731"] 10-Oct-2023 19:39:01.856 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:01.875 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-35731"] 10-Oct-2023 19:39:01.879 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-35731"] 10-Oct-2023 19:39:01.889 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 10-Oct-2023 19:39:01.894 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 10-Oct-2023 19:39:01.911 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:01.911 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:01.917 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40275"] 10-Oct-2023 19:39:01.927 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40275"] 10-Oct-2023 19:39:01.930 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:01.932 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40275"] 10-Oct-2023 19:39:01.933 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40275"] 10-Oct-2023 19:39:01.936 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 10-Oct-2023 19:39:01.938 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 10-Oct-2023 19:39:01.938 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 10-Oct-2023 19:39:01.946 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 10-Oct-2023 19:39:01.984 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:01.984 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.022 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 10-Oct-2023 19:39:02.143 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36691"] 10-Oct-2023 19:39:02.159 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36691"] 10-Oct-2023 19:39:02.160 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.167 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36691"] 10-Oct-2023 19:39:02.167 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36691"] 10-Oct-2023 19:39:02.180 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 10-Oct-2023 19:39:02.182 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 10-Oct-2023 19:39:02.233 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:02.234 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.239 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-39431"] 10-Oct-2023 19:39:02.251 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-39431"] 10-Oct-2023 19:39:02.252 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.256 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-39431"] 10-Oct-2023 19:39:02.257 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-39431"] 10-Oct-2023 19:39:02.268 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 10-Oct-2023 19:39:02.270 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 10-Oct-2023 19:39:02.314 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:02.315 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.356 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-40303"] 10-Oct-2023 19:39:02.360 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-40303"] 10-Oct-2023 19:39:02.361 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.371 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-40303"] 10-Oct-2023 19:39:02.372 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-40303"] 10-Oct-2023 19:39:02.381 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 10-Oct-2023 19:39:02.382 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 10-Oct-2023 19:39:02.383 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 10-Oct-2023 19:39:02.385 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 10-Oct-2023 19:39:02.395 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:02.395 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.408 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42789"] 10-Oct-2023 19:39:02.419 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42789"] 10-Oct-2023 19:39:02.422 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.424 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42789"] 10-Oct-2023 19:39:02.425 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42789"] 10-Oct-2023 19:39:02.436 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 10-Oct-2023 19:39:02.437 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 10-Oct-2023 19:39:02.488 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:02.488 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.500 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-42277"] 10-Oct-2023 19:39:02.503 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-42277"] 10-Oct-2023 19:39:02.504 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.506 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-42277"] 10-Oct-2023 19:39:02.507 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-42277"] 10-Oct-2023 19:39:02.531 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 10-Oct-2023 19:39:02.533 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 10-Oct-2023 19:39:02.605 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:02.605 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.612 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-44199"] 10-Oct-2023 19:39:02.616 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-44199"] 10-Oct-2023 19:39:02.617 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.619 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-44199"] 10-Oct-2023 19:39:02.620 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-44199"] 10-Oct-2023 19:39:02.622 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 10-Oct-2023 19:39:02.624 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 10-Oct-2023 19:39:02.626 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:02.627 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.636 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39033"] 10-Oct-2023 19:39:02.644 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39033"] 10-Oct-2023 19:39:02.647 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.649 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39033"] 10-Oct-2023 19:39:02.650 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39033"] 10-Oct-2023 19:39:02.670 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 10-Oct-2023 19:39:02.671 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 10-Oct-2023 19:39:02.672 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 10-Oct-2023 19:39:02.673 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 10-Oct-2023 19:39:02.686 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:02.686 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.694 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42259"] 10-Oct-2023 19:39:02.698 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42259"] 10-Oct-2023 19:39:02.699 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.701 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42259"] 10-Oct-2023 19:39:02.702 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42259"] 10-Oct-2023 19:39:02.704 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 10-Oct-2023 19:39:02.705 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 10-Oct-2023 19:39:02.712 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:02.712 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.715 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44679"] 10-Oct-2023 19:39:02.723 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44679"] 10-Oct-2023 19:39:02.724 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.725 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44679"] 10-Oct-2023 19:39:02.726 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44679"] 10-Oct-2023 19:39:02.731 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 10-Oct-2023 19:39:02.733 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 10-Oct-2023 19:39:02.746 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 19:39:02.746 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 10-Oct-2023 19:39:02.750 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-37669"] 10-Oct-2023 19:39:02.755 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-37669"] 10-Oct-2023 19:39:02.756 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 19:39:02.760 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-37669"] 10-Oct-2023 19:39:02.761 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-37669"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.296 sec Testcase: testUseContentTypeExpiresConfiguration took 0.048 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.242 sec Testcase: testConfiguration took 0.087 sec Testcase: testNullContentType took 0.109 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.053 sec Testcase: testUseDefaultConfiguration2 took 0.095 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.091 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.034 sec Testcase: testIntsToCommaDelimitedString took 0.015 sec Testcase: testSkipBecauseExpiresIsDefined took 0.033 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.027 sec Testcase: testEmptyContent took 0.033 sec