Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.287 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 10 May 2023 12:42:59 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 10 May 2023 12:45:59 GMT Content-Length: 11 Date: Wed, 10 May 2023 12:42:59 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 10 May 2023 12:42:59 GMT Expires: Wed, 10 May 2023 12:49:59 GMT Keep-Alive: timeout=3 ETag: W/"971-1683720508758" 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 12:44:00 GMT Content-Length: 0 Date: Wed, 10 May 2023 12:42:59 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 10 May 2023 12:44:00 GMT Content-Length: 11 Date: Wed, 10 May 2023 12:42:59 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=59 Connection: keep-alive Expires: Wed, 10 May 2023 12:44:00 GMT Content-Length: 11 Date: Wed, 10 May 2023 12:42:59 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 12:50:00 GMT Content-Length: 11 Date: Wed, 10 May 2023 12:42:59 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 12:42:59 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 10 May 2023 12:43:00 GMT Content-Length: 11 Date: Wed, 10 May 2023 12:42:59 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 12:48:00 GMT Content-Length: 11 Date: Wed, 10 May 2023 12:42:59 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 12:50:00 GMT Content-Length: 0 Date: Wed, 10 May 2023 12:42:59 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 10-May-2023 12:42:58.253 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 10-May-2023 12:42:58.919 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 10-May-2023 12:42:58.991 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:42:58.991 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:42:59.222 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33237"] 10-May-2023 12:42:59.344 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33237"] 10-May-2023 12:42:59.345 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:42:59.403 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33237"] 10-May-2023 12:42:59.407 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33237"] 10-May-2023 12:42:59.432 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 10-May-2023 12:42:59.435 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 10-May-2023 12:42:59.501 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:42:59.502 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:42:59.523 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35733"] 10-May-2023 12:42:59.550 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35733"] 10-May-2023 12:42:59.553 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:42:59.556 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35733"] 10-May-2023 12:42:59.567 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35733"] 10-May-2023 12:42:59.576 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 10-May-2023 12:42:59.578 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 10-May-2023 12:42:59.579 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 10-May-2023 12:42:59.588 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 10-May-2023 12:42:59.610 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:42:59.610 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:42:59.735 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 10-May-2023 12:42:59.931 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41639"] 10-May-2023 12:42:59.945 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41639"] 10-May-2023 12:42:59.946 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:42:59.952 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41639"] 10-May-2023 12:42:59.953 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41639"] 10-May-2023 12:42:59.957 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 10-May-2023 12:42:59.959 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 10-May-2023 12:42:59.964 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:42:59.964 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:42:59.973 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45949"] 10-May-2023 12:42:59.974 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45949"] 10-May-2023 12:42:59.979 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:42:59.982 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45949"] 10-May-2023 12:42:59.982 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45949"] 10-May-2023 12:42:59.986 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 10-May-2023 12:42:59.988 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 10-May-2023 12:42:59.996 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:42:59.996 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:43:00.009 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45259"] 10-May-2023 12:43:00.013 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45259"] 10-May-2023 12:43:00.014 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:43:00.016 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45259"] 10-May-2023 12:43:00.017 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45259"] 10-May-2023 12:43:00.019 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 10-May-2023 12:43:00.020 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 10-May-2023 12:43:00.021 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 10-May-2023 12:43:00.023 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 10-May-2023 12:43:00.026 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:43:00.026 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:43:00.031 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39951"] 10-May-2023 12:43:00.036 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39951"] 10-May-2023 12:43:00.036 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:43:00.039 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39951"] 10-May-2023 12:43:00.039 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-39951"] 10-May-2023 12:43:00.043 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 10-May-2023 12:43:00.045 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 10-May-2023 12:43:00.048 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:43:00.048 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:43:00.053 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45911"] 10-May-2023 12:43:00.057 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45911"] 10-May-2023 12:43:00.059 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:43:00.062 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45911"] 10-May-2023 12:43:00.062 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-45911"] 10-May-2023 12:43:00.066 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 10-May-2023 12:43:00.067 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 10-May-2023 12:43:00.070 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:43:00.070 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:43:00.076 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42043"] 10-May-2023 12:43:00.079 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42043"] 10-May-2023 12:43:00.080 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:43:00.082 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42043"] 10-May-2023 12:43:00.083 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42043"] 10-May-2023 12:43:00.090 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 10-May-2023 12:43:00.091 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 10-May-2023 12:43:00.093 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:43:00.093 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:43:00.098 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43197"] 10-May-2023 12:43:00.104 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43197"] 10-May-2023 12:43:00.105 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:43:00.107 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43197"] 10-May-2023 12:43:00.109 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-43197"] 10-May-2023 12:43:00.114 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 10-May-2023 12:43:00.115 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 10-May-2023 12:43:00.115 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 10-May-2023 12:43:00.117 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 10-May-2023 12:43:00.119 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:43:00.119 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:43:00.127 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-46305"] 10-May-2023 12:43:00.134 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-46305"] 10-May-2023 12:43:00.137 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:43:00.138 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-46305"] 10-May-2023 12:43:00.139 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-46305"] 10-May-2023 12:43:00.141 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 10-May-2023 12:43:00.143 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 10-May-2023 12:43:00.160 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:43:00.160 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:43:00.166 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-43675"] 10-May-2023 12:43:00.170 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-43675"] 10-May-2023 12:43:00.171 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:43:00.173 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-43675"] 10-May-2023 12:43:00.174 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-43675"] 10-May-2023 12:43:00.178 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 10-May-2023 12:43:00.180 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 10-May-2023 12:43:00.184 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-May-2023 12:43:00.184 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 10-May-2023 12:43:00.188 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40277"] 10-May-2023 12:43:00.192 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40277"] 10-May-2023 12:43:00.195 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-May-2023 12:43:00.197 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40277"] 10-May-2023 12:43:00.198 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-40277"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.463 sec Testcase: testUseContentTypeExpiresConfiguration took 0.145 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.378 sec Testcase: testConfiguration took 0.028 sec Testcase: testNullContentType took 0.033 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.021 sec Testcase: testUseDefaultConfiguration2 took 0.022 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.024 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.024 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.026 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.037 sec Testcase: testEmptyContent took 0.025 sec