Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.938 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 27 Feb 2024 09:20:06 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 27 Feb 2024 09:23:06 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 09:20:06 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 27 Feb 2024 09:20:06 GMT Expires: Tue, 27 Feb 2024 09:27:07 GMT Keep-Alive: timeout=3 ETag: W/"971-1709024807455" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 27 Feb 2024 09:21:07 GMT Content-Length: 0 Date: Tue, 27 Feb 2024 09:20:06 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 27 Feb 2024 09:21:07 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 09:20:06 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 27 Feb 2024 09:21:07 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 09:20:06 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 27 Feb 2024 09:27:07 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 09:20:06 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, 27 Feb 2024 09:20:06 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 27 Feb 2024 09:20:07 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 09:20:06 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 27 Feb 2024 09:25:07 GMT Content-Length: 11 Date: Tue, 27 Feb 2024 09:20:06 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 27 Feb 2024 09:27:07 GMT Content-Length: 0 Date: Tue, 27 Feb 2024 09:20:06 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 27-Feb-2024 09:20:05.150 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 27-Feb-2024 09:20:05.836 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 27-Feb-2024 09:20:05.900 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:05.908 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:06.241 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-42987"] 27-Feb-2024 09:20:06.493 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-42987"] 27-Feb-2024 09:20:06.496 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:06.517 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-42987"] 27-Feb-2024 09:20:06.544 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-42987"] 27-Feb-2024 09:20:06.553 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 27-Feb-2024 09:20:06.555 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 27-Feb-2024 09:20:06.556 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:06.559 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:06.590 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-39337"] 27-Feb-2024 09:20:06.690 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-39337"] 27-Feb-2024 09:20:06.691 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:06.693 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-39337"] 27-Feb-2024 09:20:06.703 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-39337"] 27-Feb-2024 09:20:06.704 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 27-Feb-2024 09:20:06.708 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 27-Feb-2024 09:20:06.721 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 27-Feb-2024 09:20:06.743 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 27-Feb-2024 09:20:06.744 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:06.744 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:06.871 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 27-Feb-2024 09:20:07.106 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-37455"] 27-Feb-2024 09:20:07.184 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-37455"] 27-Feb-2024 09:20:07.187 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.193 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-37455"] 27-Feb-2024 09:20:07.197 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-37455"] 27-Feb-2024 09:20:07.201 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 27-Feb-2024 09:20:07.207 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 27-Feb-2024 09:20:07.208 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:07.208 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:07.225 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-39793"] 27-Feb-2024 09:20:07.238 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-39793"] 27-Feb-2024 09:20:07.238 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.240 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-39793"] 27-Feb-2024 09:20:07.250 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-39793"] 27-Feb-2024 09:20:07.252 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 27-Feb-2024 09:20:07.254 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 27-Feb-2024 09:20:07.255 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:07.255 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:07.267 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-35217"] 27-Feb-2024 09:20:07.273 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-35217"] 27-Feb-2024 09:20:07.278 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.280 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-35217"] 27-Feb-2024 09:20:07.283 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-35217"] 27-Feb-2024 09:20:07.284 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 27-Feb-2024 09:20:07.285 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 27-Feb-2024 09:20:07.286 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 27-Feb-2024 09:20:07.289 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 27-Feb-2024 09:20:07.289 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:07.290 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:07.301 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-45321"] 27-Feb-2024 09:20:07.317 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-45321"] 27-Feb-2024 09:20:07.319 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.322 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-45321"] 27-Feb-2024 09:20:07.329 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-45321"] 27-Feb-2024 09:20:07.331 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 27-Feb-2024 09:20:07.333 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 27-Feb-2024 09:20:07.334 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:07.334 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:07.340 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-36513"] 27-Feb-2024 09:20:07.403 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-36513"] 27-Feb-2024 09:20:07.410 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.412 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-36513"] 27-Feb-2024 09:20:07.416 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-36513"] 27-Feb-2024 09:20:07.418 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 27-Feb-2024 09:20:07.420 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 27-Feb-2024 09:20:07.420 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:07.421 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:07.429 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-35385"] 27-Feb-2024 09:20:07.439 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-35385"] 27-Feb-2024 09:20:07.441 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.444 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-35385"] 27-Feb-2024 09:20:07.454 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-35385"] 27-Feb-2024 09:20:07.455 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 27-Feb-2024 09:20:07.458 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 27-Feb-2024 09:20:07.462 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:07.462 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:07.472 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-45195"] 27-Feb-2024 09:20:07.486 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-45195"] 27-Feb-2024 09:20:07.488 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.490 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-45195"] 27-Feb-2024 09:20:07.492 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-45195"] 27-Feb-2024 09:20:07.493 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 27-Feb-2024 09:20:07.494 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 27-Feb-2024 09:20:07.495 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 27-Feb-2024 09:20:07.496 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 27-Feb-2024 09:20:07.497 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:07.497 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:07.502 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-35967"] 27-Feb-2024 09:20:07.522 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-35967"] 27-Feb-2024 09:20:07.525 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.528 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-35967"] 27-Feb-2024 09:20:07.532 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-35967"] 27-Feb-2024 09:20:07.534 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 27-Feb-2024 09:20:07.535 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 27-Feb-2024 09:20:07.536 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:07.536 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:07.542 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-44551"] 27-Feb-2024 09:20:07.558 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-44551"] 27-Feb-2024 09:20:07.561 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.564 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-44551"] 27-Feb-2024 09:20:07.571 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-44551"] 27-Feb-2024 09:20:07.572 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 27-Feb-2024 09:20:07.574 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 27-Feb-2024 09:20:07.575 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Feb-2024 09:20:07.575 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.20-dev] 27-Feb-2024 09:20:07.585 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-45679"] 27-Feb-2024 09:20:07.608 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-45679"] 27-Feb-2024 09:20:07.608 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Feb-2024 09:20:07.610 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-45679"] 27-Feb-2024 09:20:07.613 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-45679"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.752 sec Testcase: testUseContentTypeExpiresConfiguration took 0.152 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.014 sec Testcase: testBug63909 took 0.482 sec Testcase: testConfiguration took 0.051 sec Testcase: testNullContentType took 0.032 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.044 sec Testcase: testUseDefaultConfiguration2 took 0.087 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.037 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.038 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.039 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.039 sec Testcase: testEmptyContent took 0.043 sec