Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.187 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 17 Oct 2023 18:05:50 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:08:50 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:05:50 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 17 Oct 2023 18:05:50 GMT Expires: Tue, 17 Oct 2023 18:12:50 GMT Keep-Alive: timeout=3 ETag: W/"971-1697564688081" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:06:50 GMT Content-Length: 0 Date: Tue, 17 Oct 2023 18:05:50 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:06:50 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:05:50 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:06:50 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:05:50 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:12:50 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:05:50 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, 17 Oct 2023 18:05:50 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:05:50 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:05:50 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:10:50 GMT Content-Length: 11 Date: Tue, 17 Oct 2023 18:05:50 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 17 Oct 2023 18:12:51 GMT Content-Length: 0 Date: Tue, 17 Oct 2023 18:05:50 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 17-Oct-2023 18:05:49.188 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 17-Oct-2023 18:05:49.812 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 17-Oct-2023 18:05:49.865 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:49.866 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.019 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-40849"] 17-Oct-2023 18:05:50.129 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-40849"] 17-Oct-2023 18:05:50.131 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.180 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-40849"] 17-Oct-2023 18:05:50.182 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-40849"] 17-Oct-2023 18:05:50.194 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 17-Oct-2023 18:05:50.196 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 17-Oct-2023 18:05:50.262 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.262 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.284 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44443"] 17-Oct-2023 18:05:50.297 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44443"] 17-Oct-2023 18:05:50.299 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.303 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44443"] 17-Oct-2023 18:05:50.304 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44443"] 17-Oct-2023 18:05:50.307 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 17-Oct-2023 18:05:50.308 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 17-Oct-2023 18:05:50.319 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 17-Oct-2023 18:05:50.335 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 17-Oct-2023 18:05:50.427 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.427 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.502 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 17-Oct-2023 18:05:50.757 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40171"] 17-Oct-2023 18:05:50.772 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40171"] 17-Oct-2023 18:05:50.775 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.783 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40171"] 17-Oct-2023 18:05:50.789 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40171"] 17-Oct-2023 18:05:50.793 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 17-Oct-2023 18:05:50.795 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 17-Oct-2023 18:05:50.808 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.808 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.812 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-44489"] 17-Oct-2023 18:05:50.812 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-44489"] 17-Oct-2023 18:05:50.813 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.815 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-44489"] 17-Oct-2023 18:05:50.815 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-44489"] 17-Oct-2023 18:05:50.819 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 17-Oct-2023 18:05:50.821 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 17-Oct-2023 18:05:50.823 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.823 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.827 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-38957"] 17-Oct-2023 18:05:50.831 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-38957"] 17-Oct-2023 18:05:50.831 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.834 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-38957"] 17-Oct-2023 18:05:50.835 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-38957"] 17-Oct-2023 18:05:50.838 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 17-Oct-2023 18:05:50.839 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 17-Oct-2023 18:05:50.840 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 17-Oct-2023 18:05:50.841 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 17-Oct-2023 18:05:50.844 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.844 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.854 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42623"] 17-Oct-2023 18:05:50.858 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42623"] 17-Oct-2023 18:05:50.859 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.861 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42623"] 17-Oct-2023 18:05:50.861 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42623"] 17-Oct-2023 18:05:50.864 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 17-Oct-2023 18:05:50.865 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 17-Oct-2023 18:05:50.884 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.885 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.889 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-37681"] 17-Oct-2023 18:05:50.893 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-37681"] 17-Oct-2023 18:05:50.895 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.897 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-37681"] 17-Oct-2023 18:05:50.898 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-37681"] 17-Oct-2023 18:05:50.900 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 17-Oct-2023 18:05:50.902 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 17-Oct-2023 18:05:50.905 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.905 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.911 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45651"] 17-Oct-2023 18:05:50.915 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45651"] 17-Oct-2023 18:05:50.918 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.920 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45651"] 17-Oct-2023 18:05:50.920 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-45651"] 17-Oct-2023 18:05:50.923 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 17-Oct-2023 18:05:50.925 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 17-Oct-2023 18:05:50.933 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.933 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.938 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34429"] 17-Oct-2023 18:05:50.943 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34429"] 17-Oct-2023 18:05:50.944 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.945 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34429"] 17-Oct-2023 18:05:50.946 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34429"] 17-Oct-2023 18:05:50.948 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 17-Oct-2023 18:05:50.949 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 17-Oct-2023 18:05:50.950 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 17-Oct-2023 18:05:50.952 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 17-Oct-2023 18:05:50.956 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.956 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.965 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-43689"] 17-Oct-2023 18:05:50.969 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-43689"] 17-Oct-2023 18:05:50.970 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.972 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-43689"] 17-Oct-2023 18:05:50.973 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-43689"] 17-Oct-2023 18:05:50.975 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 17-Oct-2023 18:05:50.977 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 17-Oct-2023 18:05:50.985 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:50.985 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:50.989 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-34001"] 17-Oct-2023 18:05:50.994 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-34001"] 17-Oct-2023 18:05:50.997 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:50.998 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-34001"] 17-Oct-2023 18:05:50.999 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-34001"] 17-Oct-2023 18:05:51.001 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 17-Oct-2023 18:05:51.003 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 17-Oct-2023 18:05:51.008 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 17-Oct-2023 18:05:51.008 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 17-Oct-2023 18:05:51.012 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44655"] 17-Oct-2023 18:05:51.019 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44655"] 17-Oct-2023 18:05:51.019 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 17-Oct-2023 18:05:51.021 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44655"] 17-Oct-2023 18:05:51.022 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44655"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.301 sec Testcase: testUseContentTypeExpiresConfiguration took 0.116 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.484 sec Testcase: testConfiguration took 0.025 sec Testcase: testNullContentType took 0.019 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.023 sec Testcase: testUseDefaultConfiguration2 took 0.037 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.023 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.025 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.024 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.026 sec Testcase: testEmptyContent took 0.024 sec