Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.992 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 31 Oct 2023 14:09:25 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 31 Oct 2023 14:12:25 GMT Content-Length: 11 Date: Tue, 31 Oct 2023 14:09:25 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 31 Oct 2023 14:09:25 GMT Expires: Tue, 31 Oct 2023 14:16:25 GMT Keep-Alive: timeout=3 ETag: W/"971-1698760763133" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 31 Oct 2023 14:10:25 GMT Content-Length: 0 Date: Tue, 31 Oct 2023 14:09:25 GMT Keep-Alive: timeout=3 Cache-Control: max-age=59 Connection: keep-alive Expires: Tue, 31 Oct 2023 14:10:25 GMT Content-Length: 11 Date: Tue, 31 Oct 2023 14:09:25 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 31 Oct 2023 14:10:25 GMT Content-Length: 11 Date: Tue, 31 Oct 2023 14:09:25 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 31 Oct 2023 14:16:25 GMT Content-Length: 11 Date: Tue, 31 Oct 2023 14:09: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: Tue, 31 Oct 2023 14:09:25 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 31 Oct 2023 14:09:25 GMT Content-Length: 11 Date: Tue, 31 Oct 2023 14:09:25 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 31 Oct 2023 14:14:25 GMT Content-Length: 11 Date: Tue, 31 Oct 2023 14:09:25 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 31 Oct 2023 14:16:25 GMT Content-Length: 0 Date: Tue, 31 Oct 2023 14:09:25 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 31-Oct-2023 14:09:24.246 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 31-Oct-2023 14:09:25.036 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 31-Oct-2023 14:09:25.078 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.079 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.175 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-41023"] 31-Oct-2023 14:09:25.279 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-41023"] 31-Oct-2023 14:09:25.280 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.316 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-41023"] 31-Oct-2023 14:09:25.336 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-41023"] 31-Oct-2023 14:09:25.349 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 31-Oct-2023 14:09:25.357 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 31-Oct-2023 14:09:25.358 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.358 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.368 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-34655"] 31-Oct-2023 14:09:25.399 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-34655"] 31-Oct-2023 14:09:25.400 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.402 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-34655"] 31-Oct-2023 14:09:25.411 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-34655"] 31-Oct-2023 14:09:25.412 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 31-Oct-2023 14:09:25.413 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 31-Oct-2023 14:09:25.414 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 31-Oct-2023 14:09:25.432 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 31-Oct-2023 14:09:25.434 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.434 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.519 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 31-Oct-2023 14:09:25.726 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-44017"] 31-Oct-2023 14:09:25.740 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-44017"] 31-Oct-2023 14:09:25.742 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.751 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-44017"] 31-Oct-2023 14:09:25.756 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-44017"] 31-Oct-2023 14:09:25.758 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 31-Oct-2023 14:09:25.760 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 31-Oct-2023 14:09:25.763 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.763 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.770 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-37301"] 31-Oct-2023 14:09:25.773 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-37301"] 31-Oct-2023 14:09:25.774 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.776 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-37301"] 31-Oct-2023 14:09:25.783 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-37301"] 31-Oct-2023 14:09:25.788 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 31-Oct-2023 14:09:25.791 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 31-Oct-2023 14:09:25.794 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.794 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.800 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-35541"] 31-Oct-2023 14:09:25.806 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-35541"] 31-Oct-2023 14:09:25.806 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.808 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-35541"] 31-Oct-2023 14:09:25.810 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-35541"] 31-Oct-2023 14:09:25.811 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 31-Oct-2023 14:09:25.811 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 31-Oct-2023 14:09:25.812 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 31-Oct-2023 14:09:25.813 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 31-Oct-2023 14:09:25.813 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.813 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.821 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-36593"] 31-Oct-2023 14:09:25.829 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-36593"] 31-Oct-2023 14:09:25.831 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.833 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-36593"] 31-Oct-2023 14:09:25.838 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-36593"] 31-Oct-2023 14:09:25.839 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 31-Oct-2023 14:09:25.841 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 31-Oct-2023 14:09:25.841 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.841 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.846 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-46329"] 31-Oct-2023 14:09:25.852 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-46329"] 31-Oct-2023 14:09:25.852 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.854 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-46329"] 31-Oct-2023 14:09:25.856 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-46329"] 31-Oct-2023 14:09:25.857 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 31-Oct-2023 14:09:25.858 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 31-Oct-2023 14:09:25.859 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.859 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.862 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-40725"] 31-Oct-2023 14:09:25.867 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-40725"] 31-Oct-2023 14:09:25.870 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.871 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-40725"] 31-Oct-2023 14:09:25.872 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-40725"] 31-Oct-2023 14:09:25.873 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 31-Oct-2023 14:09:25.875 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 31-Oct-2023 14:09:25.875 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.876 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.879 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-44657"] 31-Oct-2023 14:09:25.885 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-44657"] 31-Oct-2023 14:09:25.885 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.887 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-44657"] 31-Oct-2023 14:09:25.889 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-44657"] 31-Oct-2023 14:09:25.890 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 31-Oct-2023 14:09:25.891 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 31-Oct-2023 14:09:25.891 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 31-Oct-2023 14:09:25.892 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 31-Oct-2023 14:09:25.893 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.893 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.897 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-46595"] 31-Oct-2023 14:09:25.904 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-46595"] 31-Oct-2023 14:09:25.904 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.905 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-46595"] 31-Oct-2023 14:09:25.908 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-46595"] 31-Oct-2023 14:09:25.908 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 31-Oct-2023 14:09:25.909 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 31-Oct-2023 14:09:25.910 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.910 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.913 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-45117"] 31-Oct-2023 14:09:25.920 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-45117"] 31-Oct-2023 14:09:25.921 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.923 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-45117"] 31-Oct-2023 14:09:25.926 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-45117"] 31-Oct-2023 14:09:25.927 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 31-Oct-2023 14:09:25.929 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 31-Oct-2023 14:09:25.929 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 31-Oct-2023 14:09:25.929 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 31-Oct-2023 14:09:25.933 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-37629"] 31-Oct-2023 14:09:25.939 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-37629"] 31-Oct-2023 14:09:25.941 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 31-Oct-2023 14:09:25.942 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-37629"] 31-Oct-2023 14:09:25.944 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-37629"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.334 sec Testcase: testUseContentTypeExpiresConfiguration took 0.064 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.343 sec Testcase: testConfiguration took 0.03 sec Testcase: testNullContentType took 0.023 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.026 sec Testcase: testUseDefaultConfiguration2 took 0.018 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.016 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.016 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.017 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.019 sec Testcase: testEmptyContent took 0.018 sec