Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.132 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Fri, 13 Oct 2023 08:01:51 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Fri, 13 Oct 2023 08:04:51 GMT Content-Length: 11 Date: Fri, 13 Oct 2023 08:01:51 GMT Content-Type: text/xml;charset=utf-8 Date: Fri, 13 Oct 2023 08:01:51 GMT Expires: Fri, 13 Oct 2023 08:08:52 GMT Keep-Alive: timeout=3 ETag: W/"971-1697183448781" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Fri, 13 Oct 2023 08:02:52 GMT Content-Length: 0 Date: Fri, 13 Oct 2023 08:01:51 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Fri, 13 Oct 2023 08:02:52 GMT Content-Length: 11 Date: Fri, 13 Oct 2023 08:01:51 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Fri, 13 Oct 2023 08:02:52 GMT Content-Length: 11 Date: Fri, 13 Oct 2023 08:01:51 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Fri, 13 Oct 2023 08:08:52 GMT Content-Length: 11 Date: Fri, 13 Oct 2023 08:01:51 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: Fri, 13 Oct 2023 08:01:51 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Fri, 13 Oct 2023 08:01:52 GMT Content-Length: 11 Date: Fri, 13 Oct 2023 08:01:51 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Fri, 13 Oct 2023 08:06:52 GMT Content-Length: 11 Date: Fri, 13 Oct 2023 08:01:51 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Fri, 13 Oct 2023 08:08:52 GMT Content-Length: 0 Date: Fri, 13 Oct 2023 08:01:51 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 13-Oct-2023 08:01:50.583 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 13-Oct-2023 08:01:51.280 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 13-Oct-2023 08:01:51.330 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:51.330 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:51.474 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-39135"] 13-Oct-2023 08:01:51.682 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-39135"] 13-Oct-2023 08:01:51.685 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:51.727 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-39135"] 13-Oct-2023 08:01:51.744 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-39135"] 13-Oct-2023 08:01:51.750 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 13-Oct-2023 08:01:51.752 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 13-Oct-2023 08:01:51.760 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:51.760 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:51.772 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-43963"] 13-Oct-2023 08:01:51.891 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-43963"] 13-Oct-2023 08:01:51.897 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:51.901 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-43963"] 13-Oct-2023 08:01:51.909 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-43963"] 13-Oct-2023 08:01:51.912 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 13-Oct-2023 08:01:51.914 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 13-Oct-2023 08:01:51.917 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 13-Oct-2023 08:01:51.926 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 13-Oct-2023 08:01:51.928 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:51.928 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.016 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 13-Oct-2023 08:01:52.168 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-32835"] 13-Oct-2023 08:01:52.196 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-32835"] 13-Oct-2023 08:01:52.199 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.204 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-32835"] 13-Oct-2023 08:01:52.208 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-32835"] 13-Oct-2023 08:01:52.213 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 13-Oct-2023 08:01:52.219 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 13-Oct-2023 08:01:52.219 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:52.219 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.224 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-34923"] 13-Oct-2023 08:01:52.227 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-34923"] 13-Oct-2023 08:01:52.227 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.230 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-34923"] 13-Oct-2023 08:01:52.232 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-34923"] 13-Oct-2023 08:01:52.233 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 13-Oct-2023 08:01:52.234 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 13-Oct-2023 08:01:52.235 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:52.235 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.240 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-45073"] 13-Oct-2023 08:01:52.247 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-45073"] 13-Oct-2023 08:01:52.248 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.250 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-45073"] 13-Oct-2023 08:01:52.251 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-45073"] 13-Oct-2023 08:01:52.253 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 13-Oct-2023 08:01:52.254 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 13-Oct-2023 08:01:52.254 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 13-Oct-2023 08:01:52.256 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 13-Oct-2023 08:01:52.257 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:52.257 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.262 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-46365"] 13-Oct-2023 08:01:52.282 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-46365"] 13-Oct-2023 08:01:52.283 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.285 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-46365"] 13-Oct-2023 08:01:52.293 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-46365"] 13-Oct-2023 08:01:52.295 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 13-Oct-2023 08:01:52.296 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 13-Oct-2023 08:01:52.297 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:52.297 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.302 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-45165"] 13-Oct-2023 08:01:52.312 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-45165"] 13-Oct-2023 08:01:52.313 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.315 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-45165"] 13-Oct-2023 08:01:52.321 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-45165"] 13-Oct-2023 08:01:52.323 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 13-Oct-2023 08:01:52.324 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 13-Oct-2023 08:01:52.325 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:52.325 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.330 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-41135"] 13-Oct-2023 08:01:52.350 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-41135"] 13-Oct-2023 08:01:52.351 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.353 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-41135"] 13-Oct-2023 08:01:52.355 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-41135"] 13-Oct-2023 08:01:52.356 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 13-Oct-2023 08:01:52.358 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 13-Oct-2023 08:01:52.358 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:52.358 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.362 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-41427"] 13-Oct-2023 08:01:52.370 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-41427"] 13-Oct-2023 08:01:52.370 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.372 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-41427"] 13-Oct-2023 08:01:52.375 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-41427"] 13-Oct-2023 08:01:52.376 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 13-Oct-2023 08:01:52.377 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 13-Oct-2023 08:01:52.378 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 13-Oct-2023 08:01:52.379 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 13-Oct-2023 08:01:52.380 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:52.380 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.384 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-34213"] 13-Oct-2023 08:01:52.396 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-34213"] 13-Oct-2023 08:01:52.398 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.400 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-34213"] 13-Oct-2023 08:01:52.402 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-34213"] 13-Oct-2023 08:01:52.403 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 13-Oct-2023 08:01:52.404 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 13-Oct-2023 08:01:52.405 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:52.405 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.409 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-41397"] 13-Oct-2023 08:01:52.415 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-41397"] 13-Oct-2023 08:01:52.416 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.417 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-41397"] 13-Oct-2023 08:01:52.419 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-41397"] 13-Oct-2023 08:01:52.421 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 13-Oct-2023 08:01:52.422 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 13-Oct-2023 08:01:52.423 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 13-Oct-2023 08:01:52.423 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 13-Oct-2023 08:01:52.427 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-33933"] 13-Oct-2023 08:01:52.436 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-33933"] 13-Oct-2023 08:01:52.437 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 13-Oct-2023 08:01:52.439 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-33933"] 13-Oct-2023 08:01:52.441 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-33933"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.382 sec Testcase: testUseContentTypeExpiresConfiguration took 0.162 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.003 sec Testcase: testBug63909 took 0.294 sec Testcase: testConfiguration took 0.023 sec Testcase: testNullContentType took 0.02 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.04 sec Testcase: testUseDefaultConfiguration2 took 0.028 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.034 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.02 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.025 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.017 sec Testcase: testEmptyContent took 0.022 sec