Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.32 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Sat, 13 May 2023 15:46:42 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Sat, 13 May 2023 15:49:42 GMT Content-Length: 11 Date: Sat, 13 May 2023 15:46:42 GMT Content-Type: text/xml;charset=utf-8 Date: Sat, 13 May 2023 15:46:42 GMT Expires: Sat, 13 May 2023 15:53:42 GMT Keep-Alive: timeout=3 ETag: W/"971-1683990730395" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Sat, 13 May 2023 15:47:42 GMT Content-Length: 0 Date: Sat, 13 May 2023 15:46:42 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Sat, 13 May 2023 15:47:42 GMT Content-Length: 11 Date: Sat, 13 May 2023 15:46:42 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Sat, 13 May 2023 15:47:42 GMT Content-Length: 11 Date: Sat, 13 May 2023 15:46:42 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Sat, 13 May 2023 15:53:42 GMT Content-Length: 11 Date: Sat, 13 May 2023 15:46: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: Sat, 13 May 2023 15:46:42 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Sat, 13 May 2023 15:46:42 GMT Content-Length: 11 Date: Sat, 13 May 2023 15:46:42 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Sat, 13 May 2023 15:51:42 GMT Content-Length: 11 Date: Sat, 13 May 2023 15:46:42 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Sat, 13 May 2023 15:53:42 GMT Content-Length: 0 Date: Sat, 13 May 2023 15:46:42 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 13-May-2023 15:46:41.004 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 13-May-2023 15:46:41.633 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 13-May-2023 15:46:41.704 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:41.705 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:41.998 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46649"] 13-May-2023 15:46:42.151 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46649"] 13-May-2023 15:46:42.155 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.187 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46649"] 13-May-2023 15:46:42.191 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46649"] 13-May-2023 15:46:42.215 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 13-May-2023 15:46:42.218 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 13-May-2023 15:46:42.231 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.231 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.257 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42377"] 13-May-2023 15:46:42.301 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42377"] 13-May-2023 15:46:42.302 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.304 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42377"] 13-May-2023 15:46:42.315 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42377"] 13-May-2023 15:46:42.328 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 13-May-2023 15:46:42.330 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 13-May-2023 15:46:42.331 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 13-May-2023 15:46:42.339 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 13-May-2023 15:46:42.349 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.349 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.476 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 13-May-2023 15:46:42.708 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-35265"] 13-May-2023 15:46:42.720 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-35265"] 13-May-2023 15:46:42.722 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.750 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-35265"] 13-May-2023 15:46:42.751 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-35265"] 13-May-2023 15:46:42.757 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 13-May-2023 15:46:42.760 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 13-May-2023 15:46:42.776 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.776 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.782 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40507"] 13-May-2023 15:46:42.782 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40507"] 13-May-2023 15:46:42.784 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.786 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40507"] 13-May-2023 15:46:42.787 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-40507"] 13-May-2023 15:46:42.791 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 13-May-2023 15:46:42.793 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 13-May-2023 15:46:42.803 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.804 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.809 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34653"] 13-May-2023 15:46:42.814 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34653"] 13-May-2023 15:46:42.817 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.819 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34653"] 13-May-2023 15:46:42.820 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34653"] 13-May-2023 15:46:42.823 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 13-May-2023 15:46:42.824 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 13-May-2023 15:46:42.825 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 13-May-2023 15:46:42.827 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 13-May-2023 15:46:42.830 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.831 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.836 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46813"] 13-May-2023 15:46:42.842 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46813"] 13-May-2023 15:46:42.843 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.846 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46813"] 13-May-2023 15:46:42.846 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-46813"] 13-May-2023 15:46:42.849 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 13-May-2023 15:46:42.850 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 13-May-2023 15:46:42.854 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.855 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.860 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38943"] 13-May-2023 15:46:42.865 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38943"] 13-May-2023 15:46:42.866 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.868 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38943"] 13-May-2023 15:46:42.869 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38943"] 13-May-2023 15:46:42.872 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 13-May-2023 15:46:42.874 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 13-May-2023 15:46:42.880 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.881 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.886 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-35337"] 13-May-2023 15:46:42.894 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-35337"] 13-May-2023 15:46:42.897 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.899 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-35337"] 13-May-2023 15:46:42.900 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-35337"] 13-May-2023 15:46:42.903 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 13-May-2023 15:46:42.905 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 13-May-2023 15:46:42.915 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.915 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.920 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42251"] 13-May-2023 15:46:42.925 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42251"] 13-May-2023 15:46:42.927 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.929 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42251"] 13-May-2023 15:46:42.930 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-42251"] 13-May-2023 15:46:42.932 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 13-May-2023 15:46:42.933 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 13-May-2023 15:46:42.933 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 13-May-2023 15:46:42.934 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 13-May-2023 15:46:42.937 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.937 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.944 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-44503"] 13-May-2023 15:46:42.951 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-44503"] 13-May-2023 15:46:42.952 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.955 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-44503"] 13-May-2023 15:46:42.955 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-44503"] 13-May-2023 15:46:42.958 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 13-May-2023 15:46:42.959 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 13-May-2023 15:46:42.961 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.961 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.968 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-46639"] 13-May-2023 15:46:42.972 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-46639"] 13-May-2023 15:46:42.973 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.975 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-46639"] 13-May-2023 15:46:42.976 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-46639"] 13-May-2023 15:46:42.979 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 13-May-2023 15:46:42.981 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 13-May-2023 15:46:42.985 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-May-2023 15:46:42.985 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 13-May-2023 15:46:42.989 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-35195"] 13-May-2023 15:46:42.994 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-35195"] 13-May-2023 15:46:42.996 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-May-2023 15:46:42.998 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-35195"] 13-May-2023 15:46:42.999 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-35195"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.471 sec Testcase: testUseContentTypeExpiresConfiguration took 0.103 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.012 sec Testcase: testBug63909 took 0.426 sec Testcase: testConfiguration took 0.034 sec Testcase: testNullContentType took 0.032 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.023 sec Testcase: testUseDefaultConfiguration2 took 0.022 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.032 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.029 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.024 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.022 sec Testcase: testEmptyContent took 0.023 sec