Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.29 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Fri, 10 Nov 2023 14:31:22 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Fri, 10 Nov 2023 14:34:22 GMT Content-Length: 11 Date: Fri, 10 Nov 2023 14:31:22 GMT Content-Type: text/xml;charset=utf-8 Date: Fri, 10 Nov 2023 14:31:22 GMT Expires: Fri, 10 Nov 2023 14:38:23 GMT Keep-Alive: timeout=3 ETag: W/"971-1699624684444" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Fri, 10 Nov 2023 14:32:23 GMT Content-Length: 0 Date: Fri, 10 Nov 2023 14:31:22 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Fri, 10 Nov 2023 14:32:23 GMT Content-Length: 11 Date: Fri, 10 Nov 2023 14:31:22 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Fri, 10 Nov 2023 14:32:23 GMT Content-Length: 11 Date: Fri, 10 Nov 2023 14:31:22 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Fri, 10 Nov 2023 14:38:23 GMT Content-Length: 11 Date: Fri, 10 Nov 2023 14:31:22 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, 10 Nov 2023 14:31:22 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Fri, 10 Nov 2023 14:31:23 GMT Content-Length: 11 Date: Fri, 10 Nov 2023 14:31:22 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=299 Connection: keep-alive Expires: Fri, 10 Nov 2023 14:36:23 GMT Content-Length: 11 Date: Fri, 10 Nov 2023 14:31:22 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Fri, 10 Nov 2023 14:38:23 GMT Content-Length: 0 Date: Fri, 10 Nov 2023 14:31:22 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 10-Nov-2023 14:31:21.491 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 10-Nov-2023 14:31:22.270 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 10-Nov-2023 14:31:22.385 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:22.385 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:22.582 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36339"] 10-Nov-2023 14:31:22.715 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36339"] 10-Nov-2023 14:31:22.718 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:22.739 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36339"] 10-Nov-2023 14:31:22.746 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36339"] 10-Nov-2023 14:31:22.772 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 10-Nov-2023 14:31:22.774 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 10-Nov-2023 14:31:22.809 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:22.809 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:22.826 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-43971"] 10-Nov-2023 14:31:22.871 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-43971"] 10-Nov-2023 14:31:22.872 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:22.880 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-43971"] 10-Nov-2023 14:31:22.887 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-43971"] 10-Nov-2023 14:31:22.891 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 10-Nov-2023 14:31:22.895 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 10-Nov-2023 14:31:22.901 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 10-Nov-2023 14:31:22.924 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 10-Nov-2023 14:31:23.050 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.050 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.113 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 10-Nov-2023 14:31:23.227 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-33445"] 10-Nov-2023 14:31:23.237 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-33445"] 10-Nov-2023 14:31:23.240 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.246 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-33445"] 10-Nov-2023 14:31:23.247 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-33445"] 10-Nov-2023 14:31:23.252 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 10-Nov-2023 14:31:23.253 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 10-Nov-2023 14:31:23.258 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.259 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.264 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-34049"] 10-Nov-2023 14:31:23.264 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-34049"] 10-Nov-2023 14:31:23.265 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.267 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-34049"] 10-Nov-2023 14:31:23.268 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-34049"] 10-Nov-2023 14:31:23.270 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 10-Nov-2023 14:31:23.272 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 10-Nov-2023 14:31:23.277 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.277 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.285 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34811"] 10-Nov-2023 14:31:23.289 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34811"] 10-Nov-2023 14:31:23.292 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.295 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34811"] 10-Nov-2023 14:31:23.296 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-34811"] 10-Nov-2023 14:31:23.298 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 10-Nov-2023 14:31:23.299 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 10-Nov-2023 14:31:23.300 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 10-Nov-2023 14:31:23.301 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 10-Nov-2023 14:31:23.315 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.315 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.321 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-34833"] 10-Nov-2023 14:31:23.331 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-34833"] 10-Nov-2023 14:31:23.334 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.336 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-34833"] 10-Nov-2023 14:31:23.338 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-34833"] 10-Nov-2023 14:31:23.343 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 10-Nov-2023 14:31:23.345 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 10-Nov-2023 14:31:23.351 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.351 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.355 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38809"] 10-Nov-2023 14:31:23.359 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38809"] 10-Nov-2023 14:31:23.362 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.364 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38809"] 10-Nov-2023 14:31:23.364 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-38809"] 10-Nov-2023 14:31:23.366 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 10-Nov-2023 14:31:23.368 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 10-Nov-2023 14:31:23.374 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.374 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.382 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-40847"] 10-Nov-2023 14:31:23.384 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-40847"] 10-Nov-2023 14:31:23.385 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.387 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-40847"] 10-Nov-2023 14:31:23.388 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-40847"] 10-Nov-2023 14:31:23.393 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 10-Nov-2023 14:31:23.394 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 10-Nov-2023 14:31:23.399 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.399 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.403 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40663"] 10-Nov-2023 14:31:23.407 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40663"] 10-Nov-2023 14:31:23.409 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.411 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40663"] 10-Nov-2023 14:31:23.411 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40663"] 10-Nov-2023 14:31:23.413 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 10-Nov-2023 14:31:23.414 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 10-Nov-2023 14:31:23.415 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 10-Nov-2023 14:31:23.416 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 10-Nov-2023 14:31:23.421 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.421 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.425 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42883"] 10-Nov-2023 14:31:23.429 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42883"] 10-Nov-2023 14:31:23.432 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.434 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42883"] 10-Nov-2023 14:31:23.434 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42883"] 10-Nov-2023 14:31:23.436 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 10-Nov-2023 14:31:23.438 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 10-Nov-2023 14:31:23.442 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.443 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.447 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44631"] 10-Nov-2023 14:31:23.454 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44631"] 10-Nov-2023 14:31:23.455 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.456 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44631"] 10-Nov-2023 14:31:23.457 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-44631"] 10-Nov-2023 14:31:23.461 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 10-Nov-2023 14:31:23.462 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 10-Nov-2023 14:31:23.468 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Nov-2023 14:31:23.468 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 10-Nov-2023 14:31:23.472 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36155"] 10-Nov-2023 14:31:23.475 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36155"] 10-Nov-2023 14:31:23.476 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Nov-2023 14:31:23.477 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36155"] 10-Nov-2023 14:31:23.481 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36155"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.484 sec Testcase: testUseContentTypeExpiresConfiguration took 0.12 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.006 sec Testcase: testBug63909 took 0.353 sec Testcase: testConfiguration took 0.019 sec Testcase: testNullContentType took 0.027 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.043 sec Testcase: testUseDefaultConfiguration2 took 0.023 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.026 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.021 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.021 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.024 sec Testcase: testEmptyContent took 0.023 sec