Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.534 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 12 Oct 2023 13:12:25 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Thu, 12 Oct 2023 13:15:25 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 13:12:25 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 12 Oct 2023 13:12:25 GMT Expires: Thu, 12 Oct 2023 13:19:25 GMT Keep-Alive: timeout=3 ETag: W/"971-1697115033044" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 13:13:25 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 13:12:25 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 13:13:25 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 13:12:25 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Thu, 12 Oct 2023 13:13:25 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 13:12:25 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 12 Oct 2023 13:19:25 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 13:12:25 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: Thu, 12 Oct 2023 13:12:25 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 12 Oct 2023 13:12:26 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 13:12:25 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Thu, 12 Oct 2023 13:17:26 GMT Content-Length: 11 Date: Thu, 12 Oct 2023 13:12:25 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 12 Oct 2023 13:19:26 GMT Content-Length: 0 Date: Thu, 12 Oct 2023 13:12:25 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 12-Oct-2023 13:12:23.856 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 12-Oct-2023 13:12:24.796 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 12-Oct-2023 13:12:24.865 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:24.870 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.142 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33031"] 12-Oct-2023 13:12:25.352 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33031"] 12-Oct-2023 13:12:25.361 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:25.396 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33031"] 12-Oct-2023 13:12:25.398 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33031"] 12-Oct-2023 13:12:25.410 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 12-Oct-2023 13:12:25.425 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 12-Oct-2023 13:12:25.469 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:25.469 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.514 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41297"] 12-Oct-2023 13:12:25.529 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41297"] 12-Oct-2023 13:12:25.530 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:25.534 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41297"] 12-Oct-2023 13:12:25.535 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41297"] 12-Oct-2023 13:12:25.554 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 12-Oct-2023 13:12:25.556 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 12-Oct-2023 13:12:25.557 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 12-Oct-2023 13:12:25.572 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 12-Oct-2023 13:12:25.623 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:25.624 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.680 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 12-Oct-2023 13:12:25.772 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36243"] 12-Oct-2023 13:12:25.784 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36243"] 12-Oct-2023 13:12:25.784 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:25.794 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36243"] 12-Oct-2023 13:12:25.795 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36243"] 12-Oct-2023 13:12:25.800 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 12-Oct-2023 13:12:25.802 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 12-Oct-2023 13:12:25.805 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:25.805 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.813 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45397"] 12-Oct-2023 13:12:25.813 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45397"] 12-Oct-2023 13:12:25.814 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:25.817 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45397"] 12-Oct-2023 13:12:25.817 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45397"] 12-Oct-2023 13:12:25.821 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 12-Oct-2023 13:12:25.823 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 12-Oct-2023 13:12:25.827 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:25.828 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.836 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-37893"] 12-Oct-2023 13:12:25.841 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-37893"] 12-Oct-2023 13:12:25.842 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:25.844 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-37893"] 12-Oct-2023 13:12:25.846 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-37893"] 12-Oct-2023 13:12:25.850 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 12-Oct-2023 13:12:25.851 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 12-Oct-2023 13:12:25.851 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 12-Oct-2023 13:12:25.853 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 12-Oct-2023 13:12:25.855 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:25.855 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.868 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46801"] 12-Oct-2023 13:12:25.873 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46801"] 12-Oct-2023 13:12:25.875 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:25.878 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46801"] 12-Oct-2023 13:12:25.879 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46801"] 12-Oct-2023 13:12:25.883 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 12-Oct-2023 13:12:25.884 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 12-Oct-2023 13:12:25.886 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:25.886 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.892 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38073"] 12-Oct-2023 13:12:25.897 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38073"] 12-Oct-2023 13:12:25.898 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:25.900 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38073"] 12-Oct-2023 13:12:25.901 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38073"] 12-Oct-2023 13:12:25.910 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 12-Oct-2023 13:12:25.912 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 12-Oct-2023 13:12:25.917 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:25.917 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.924 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42291"] 12-Oct-2023 13:12:25.928 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42291"] 12-Oct-2023 13:12:25.929 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:25.933 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42291"] 12-Oct-2023 13:12:25.936 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42291"] 12-Oct-2023 13:12:25.940 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 12-Oct-2023 13:12:25.942 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 12-Oct-2023 13:12:25.948 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:25.949 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.958 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40773"] 12-Oct-2023 13:12:25.962 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40773"] 12-Oct-2023 13:12:25.965 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:25.967 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40773"] 12-Oct-2023 13:12:25.968 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40773"] 12-Oct-2023 13:12:25.980 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 12-Oct-2023 13:12:25.980 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 12-Oct-2023 13:12:25.981 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 12-Oct-2023 13:12:25.983 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 12-Oct-2023 13:12:25.987 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:25.988 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:25.997 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40313"] 12-Oct-2023 13:12:26.002 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40313"] 12-Oct-2023 13:12:26.005 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:26.016 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40313"] 12-Oct-2023 13:12:26.017 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-40313"] 12-Oct-2023 13:12:26.021 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 12-Oct-2023 13:12:26.023 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 12-Oct-2023 13:12:26.024 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:26.024 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:26.032 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44307"] 12-Oct-2023 13:12:26.038 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44307"] 12-Oct-2023 13:12:26.038 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:26.050 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44307"] 12-Oct-2023 13:12:26.051 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44307"] 12-Oct-2023 13:12:26.054 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 12-Oct-2023 13:12:26.056 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 12-Oct-2023 13:12:26.061 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 12-Oct-2023 13:12:26.061 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.96-dev] 12-Oct-2023 13:12:26.070 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40691"] 12-Oct-2023 13:12:26.073 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40691"] 12-Oct-2023 13:12:26.075 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 12-Oct-2023 13:12:26.077 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40691"] 12-Oct-2023 13:12:26.078 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40691"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.811 sec Testcase: testUseContentTypeExpiresConfiguration took 0.144 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.244 sec Testcase: testConfiguration took 0.02 sec Testcase: testNullContentType took 0.029 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.031 sec Testcase: testUseDefaultConfiguration2 took 0.028 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.03 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.039 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.039 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.033 sec Testcase: testEmptyContent took 0.027 sec