Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.619 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 09 Oct 2023 19:57:42 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 09 Oct 2023 20:00:42 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:57:42 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 09 Oct 2023 19:57:42 GMT Expires: Mon, 09 Oct 2023 20:04:42 GMT Keep-Alive: timeout=3 ETag: W/"971-1696880908924" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:58:42 GMT Content-Length: 0 Date: Mon, 09 Oct 2023 19:57:42 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:58:42 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:57:42 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:58:42 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:57:42 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 09 Oct 2023 20:04:43 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:57:42 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: Mon, 09 Oct 2023 19:57:42 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 09 Oct 2023 19:57:43 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:57:42 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 09 Oct 2023 20:02:43 GMT Content-Length: 11 Date: Mon, 09 Oct 2023 19:57:42 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 09 Oct 2023 20:04:43 GMT Content-Length: 0 Date: Mon, 09 Oct 2023 19:57:42 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 09-Oct-2023 19:57:41.060 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 09-Oct-2023 19:57:41.701 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 09-Oct-2023 19:57:41.788 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:41.788 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:41.958 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-37325"] 09-Oct-2023 19:57:42.176 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-37325"] 09-Oct-2023 19:57:42.177 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:42.211 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-37325"] 09-Oct-2023 19:57:42.223 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-37325"] 09-Oct-2023 19:57:42.233 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 09-Oct-2023 19:57:42.235 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 09-Oct-2023 19:57:42.236 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:42.236 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:42.247 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-40233"] 09-Oct-2023 19:57:42.268 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-40233"] 09-Oct-2023 19:57:42.277 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:42.283 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-40233"] 09-Oct-2023 19:57:42.289 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-40233"] 09-Oct-2023 19:57:42.297 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 09-Oct-2023 19:57:42.298 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 09-Oct-2023 19:57:42.299 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 09-Oct-2023 19:57:42.322 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 09-Oct-2023 19:57:42.322 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:42.323 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:42.406 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 09-Oct-2023 19:57:42.628 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-34927"] 09-Oct-2023 19:57:42.699 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-34927"] 09-Oct-2023 19:57:42.703 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:42.712 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-34927"] 09-Oct-2023 19:57:42.726 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-34927"] 09-Oct-2023 19:57:42.729 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 09-Oct-2023 19:57:42.731 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 09-Oct-2023 19:57:42.731 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:42.732 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:42.774 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-37985"] 09-Oct-2023 19:57:42.778 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-37985"] 09-Oct-2023 19:57:42.782 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:42.792 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-37985"] 09-Oct-2023 19:57:42.803 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-37985"] 09-Oct-2023 19:57:42.807 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 09-Oct-2023 19:57:42.809 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 09-Oct-2023 19:57:42.810 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:42.810 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:42.844 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-39141"] 09-Oct-2023 19:57:42.864 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-39141"] 09-Oct-2023 19:57:42.869 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:42.875 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-39141"] 09-Oct-2023 19:57:42.882 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-39141"] 09-Oct-2023 19:57:42.885 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 09-Oct-2023 19:57:42.886 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 09-Oct-2023 19:57:42.887 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 09-Oct-2023 19:57:42.894 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 09-Oct-2023 19:57:42.894 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:42.895 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:42.910 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-35321"] 09-Oct-2023 19:57:42.919 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-35321"] 09-Oct-2023 19:57:42.920 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:42.923 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-35321"] 09-Oct-2023 19:57:42.926 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-35321"] 09-Oct-2023 19:57:42.928 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 09-Oct-2023 19:57:42.930 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 09-Oct-2023 19:57:42.930 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:42.930 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:42.956 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-33113"] 09-Oct-2023 19:57:42.989 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-33113"] 09-Oct-2023 19:57:42.992 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:42.998 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-33113"] 09-Oct-2023 19:57:43.002 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-33113"] 09-Oct-2023 19:57:43.011 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 09-Oct-2023 19:57:43.013 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 09-Oct-2023 19:57:43.020 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:43.022 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:43.037 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-36185"] 09-Oct-2023 19:57:43.044 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-36185"] 09-Oct-2023 19:57:43.046 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:43.051 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-36185"] 09-Oct-2023 19:57:43.054 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-36185"] 09-Oct-2023 19:57:43.057 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 09-Oct-2023 19:57:43.059 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 09-Oct-2023 19:57:43.059 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:43.059 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:43.074 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-45247"] 09-Oct-2023 19:57:43.082 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-45247"] 09-Oct-2023 19:57:43.083 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:43.086 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-45247"] 09-Oct-2023 19:57:43.093 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-45247"] 09-Oct-2023 19:57:43.097 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 09-Oct-2023 19:57:43.098 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 09-Oct-2023 19:57:43.098 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 09-Oct-2023 19:57:43.100 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 09-Oct-2023 19:57:43.100 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:43.101 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:43.104 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-38113"] 09-Oct-2023 19:57:43.109 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-38113"] 09-Oct-2023 19:57:43.110 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:43.111 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-38113"] 09-Oct-2023 19:57:43.113 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-38113"] 09-Oct-2023 19:57:43.115 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 09-Oct-2023 19:57:43.117 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 09-Oct-2023 19:57:43.117 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:43.117 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:43.121 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-38213"] 09-Oct-2023 19:57:43.130 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-38213"] 09-Oct-2023 19:57:43.131 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:43.133 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-38213"] 09-Oct-2023 19:57:43.136 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-38213"] 09-Oct-2023 19:57:43.138 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 09-Oct-2023 19:57:43.140 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 09-Oct-2023 19:57:43.140 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Oct-2023 19:57:43.140 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 09-Oct-2023 19:57:43.144 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-44939"] 09-Oct-2023 19:57:43.153 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-44939"] 09-Oct-2023 19:57:43.155 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Oct-2023 19:57:43.157 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-44939"] 09-Oct-2023 19:57:43.159 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-44939"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.623 sec Testcase: testUseContentTypeExpiresConfiguration took 0.063 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.43 sec Testcase: testConfiguration took 0.078 sec Testcase: testNullContentType took 0.077 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.003 sec Testcase: testUseDefaultConfiguration1 took 0.041 sec Testcase: testUseDefaultConfiguration2 took 0.078 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.05 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.039 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.017 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.023 sec Testcase: testEmptyContent took 0.022 sec