Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.314 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 10 May 2023 00:01:13 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 10 May 2023 00:04:13 GMT Content-Length: 11 Date: Wed, 10 May 2023 00:01:13 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 10 May 2023 00:01:13 GMT Expires: Wed, 10 May 2023 00:08:13 GMT Keep-Alive: timeout=3 ETag: W/"971-1683674840745" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 10 May 2023 00:02:13 GMT Content-Length: 0 Date: Wed, 10 May 2023 00:01:13 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 10 May 2023 00:02:13 GMT Content-Length: 11 Date: Wed, 10 May 2023 00:01:13 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 10 May 2023 00:02:13 GMT Content-Length: 11 Date: Wed, 10 May 2023 00:01:13 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 10 May 2023 00:08:13 GMT Content-Length: 11 Date: Wed, 10 May 2023 00:01:13 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: Wed, 10 May 2023 00:01:13 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 10 May 2023 00:01:14 GMT Content-Length: 11 Date: Wed, 10 May 2023 00:01:13 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 10 May 2023 00:06:14 GMT Content-Length: 11 Date: Wed, 10 May 2023 00:01:13 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 10 May 2023 00:08:14 GMT Content-Length: 0 Date: Wed, 10 May 2023 00:01:13 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 10-May-2023 00:01:12.186 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 10-May-2023 00:01:13.042 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 10-May-2023 00:01:13.191 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:13.192 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:13.451 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46159"] 10-May-2023 00:01:13.549 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46159"] 10-May-2023 00:01:13.552 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:13.570 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46159"] 10-May-2023 00:01:13.572 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-46159"] 10-May-2023 00:01:13.582 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 10-May-2023 00:01:13.584 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 10-May-2023 00:01:13.591 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:13.592 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:13.598 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44365"] 10-May-2023 00:01:13.618 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44365"] 10-May-2023 00:01:13.619 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:13.622 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44365"] 10-May-2023 00:01:13.623 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-44365"] 10-May-2023 00:01:13.626 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 10-May-2023 00:01:13.627 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 10-May-2023 00:01:13.628 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 10-May-2023 00:01:13.637 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 10-May-2023 00:01:13.646 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:13.646 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:13.712 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 10-May-2023 00:01:13.839 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37571"] 10-May-2023 00:01:13.861 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37571"] 10-May-2023 00:01:13.864 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:13.870 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37571"] 10-May-2023 00:01:13.871 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37571"] 10-May-2023 00:01:13.877 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 10-May-2023 00:01:13.879 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 10-May-2023 00:01:13.885 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:13.885 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:13.889 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45213"] 10-May-2023 00:01:13.890 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45213"] 10-May-2023 00:01:13.893 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:13.895 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45213"] 10-May-2023 00:01:13.896 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45213"] 10-May-2023 00:01:13.899 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 10-May-2023 00:01:13.900 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 10-May-2023 00:01:13.902 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:13.902 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:13.907 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45903"] 10-May-2023 00:01:13.911 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45903"] 10-May-2023 00:01:13.912 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:13.915 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45903"] 10-May-2023 00:01:13.915 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45903"] 10-May-2023 00:01:13.918 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 10-May-2023 00:01:13.919 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 10-May-2023 00:01:13.920 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 10-May-2023 00:01:13.921 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 10-May-2023 00:01:13.924 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:13.924 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:13.929 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43811"] 10-May-2023 00:01:13.933 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43811"] 10-May-2023 00:01:13.934 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:13.936 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43811"] 10-May-2023 00:01:13.936 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43811"] 10-May-2023 00:01:13.939 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 10-May-2023 00:01:13.941 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 10-May-2023 00:01:13.948 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:13.949 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:13.954 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39207"] 10-May-2023 00:01:13.957 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39207"] 10-May-2023 00:01:13.958 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:13.960 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39207"] 10-May-2023 00:01:13.961 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-39207"] 10-May-2023 00:01:13.970 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 10-May-2023 00:01:13.972 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 10-May-2023 00:01:13.988 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:13.988 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:13.994 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-44903"] 10-May-2023 00:01:13.998 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-44903"] 10-May-2023 00:01:14.001 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:14.003 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-44903"] 10-May-2023 00:01:14.004 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-44903"] 10-May-2023 00:01:14.007 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 10-May-2023 00:01:14.009 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 10-May-2023 00:01:14.016 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:14.016 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:14.023 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43823"] 10-May-2023 00:01:14.027 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43823"] 10-May-2023 00:01:14.029 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:14.031 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43823"] 10-May-2023 00:01:14.032 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43823"] 10-May-2023 00:01:14.035 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 10-May-2023 00:01:14.036 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 10-May-2023 00:01:14.036 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 10-May-2023 00:01:14.038 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 10-May-2023 00:01:14.043 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:14.044 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:14.048 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37899"] 10-May-2023 00:01:14.052 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37899"] 10-May-2023 00:01:14.055 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:14.057 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37899"] 10-May-2023 00:01:14.057 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37899"] 10-May-2023 00:01:14.060 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 10-May-2023 00:01:14.062 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 10-May-2023 00:01:14.068 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:14.068 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:14.073 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36979"] 10-May-2023 00:01:14.077 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36979"] 10-May-2023 00:01:14.079 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:14.081 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36979"] 10-May-2023 00:01:14.081 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-36979"] 10-May-2023 00:01:14.085 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 10-May-2023 00:01:14.090 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 10-May-2023 00:01:14.097 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 00:01:14.097 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 00:01:14.107 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-39405"] 10-May-2023 00:01:14.110 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-39405"] 10-May-2023 00:01:14.112 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 00:01:14.114 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-39405"] 10-May-2023 00:01:14.115 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-39405"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.689 sec Testcase: testUseContentTypeExpiresConfiguration took 0.044 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.248 sec Testcase: testConfiguration took 0.022 sec Testcase: testNullContentType took 0.019 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.02 sec Testcase: testUseDefaultConfiguration2 took 0.031 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.036 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.028 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.023 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.024 sec Testcase: testEmptyContent took 0.033 sec