Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.428 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 21 Feb 2024 15:28:59 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 21 Feb 2024 15:31:59 GMT Content-Length: 11 Date: Wed, 21 Feb 2024 15:28:59 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 21 Feb 2024 15:28:59 GMT Expires: Wed, 21 Feb 2024 15:36:00 GMT Keep-Alive: timeout=3 ETag: W/"971-1708528701761" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 21 Feb 2024 15:30:00 GMT Content-Length: 0 Date: Wed, 21 Feb 2024 15:28:59 GMT Keep-Alive: timeout=3 Cache-Control: max-age=59 Connection: keep-alive Expires: Wed, 21 Feb 2024 15:30:00 GMT Content-Length: 11 Date: Wed, 21 Feb 2024 15:28:59 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 21 Feb 2024 15:30:00 GMT Content-Length: 11 Date: Wed, 21 Feb 2024 15:28:59 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 21 Feb 2024 15:36:00 GMT Content-Length: 11 Date: Wed, 21 Feb 2024 15:28: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, 21 Feb 2024 15:28:59 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 21 Feb 2024 15:29:00 GMT Content-Length: 11 Date: Wed, 21 Feb 2024 15:28:59 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 21 Feb 2024 15:34:00 GMT Content-Length: 11 Date: Wed, 21 Feb 2024 15:28:59 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=419 Connection: keep-alive Expires: Wed, 21 Feb 2024 15:36:00 GMT Content-Length: 0 Date: Wed, 21 Feb 2024 15:28:59 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 21-Feb-2024 15:28:58.531 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 21-Feb-2024 15:28:59.251 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 21-Feb-2024 15:28:59.304 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:28:59.305 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:28:59.539 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-42693"] 21-Feb-2024 15:28:59.659 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-42693"] 21-Feb-2024 15:28:59.662 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:28:59.685 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-42693"] 21-Feb-2024 15:28:59.700 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-42693"] 21-Feb-2024 15:28:59.731 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 21-Feb-2024 15:28:59.741 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 21-Feb-2024 15:28:59.742 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:28:59.742 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:28:59.763 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-33101"] 21-Feb-2024 15:28:59.903 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-33101"] 21-Feb-2024 15:28:59.906 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:28:59.908 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-33101"] 21-Feb-2024 15:28:59.913 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-33101"] 21-Feb-2024 15:28:59.917 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 21-Feb-2024 15:28:59.931 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 21-Feb-2024 15:28:59.932 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 21-Feb-2024 15:28:59.941 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 21-Feb-2024 15:28:59.942 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:28:59.949 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.043 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 21-Feb-2024 15:29:00.198 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-37001"] 21-Feb-2024 15:29:00.270 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-37001"] 21-Feb-2024 15:29:00.275 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.285 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-37001"] 21-Feb-2024 15:29:00.297 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-37001"] 21-Feb-2024 15:29:00.302 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 21-Feb-2024 15:29:00.304 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 21-Feb-2024 15:29:00.305 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:29:00.305 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.313 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-41059"] 21-Feb-2024 15:29:00.350 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-41059"] 21-Feb-2024 15:29:00.350 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.353 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-41059"] 21-Feb-2024 15:29:00.355 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-41059"] 21-Feb-2024 15:29:00.357 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 21-Feb-2024 15:29:00.359 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 21-Feb-2024 15:29:00.360 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:29:00.360 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.365 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-38181"] 21-Feb-2024 15:29:00.373 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-38181"] 21-Feb-2024 15:29:00.375 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.377 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-38181"] 21-Feb-2024 15:29:00.379 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-38181"] 21-Feb-2024 15:29:00.381 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 21-Feb-2024 15:29:00.382 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 21-Feb-2024 15:29:00.384 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 21-Feb-2024 15:29:00.387 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 21-Feb-2024 15:29:00.387 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:29:00.388 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.403 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-45817"] 21-Feb-2024 15:29:00.449 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-45817"] 21-Feb-2024 15:29:00.454 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.456 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-45817"] 21-Feb-2024 15:29:00.465 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-45817"] 21-Feb-2024 15:29:00.467 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 21-Feb-2024 15:29:00.469 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 21-Feb-2024 15:29:00.471 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:29:00.471 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.479 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-34921"] 21-Feb-2024 15:29:00.491 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-34921"] 21-Feb-2024 15:29:00.492 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.494 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-34921"] 21-Feb-2024 15:29:00.501 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-34921"] 21-Feb-2024 15:29:00.503 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 21-Feb-2024 15:29:00.505 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 21-Feb-2024 15:29:00.505 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:29:00.506 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.512 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-41791"] 21-Feb-2024 15:29:00.535 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-41791"] 21-Feb-2024 15:29:00.535 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.537 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-41791"] 21-Feb-2024 15:29:00.540 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-41791"] 21-Feb-2024 15:29:00.541 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 21-Feb-2024 15:29:00.543 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 21-Feb-2024 15:29:00.544 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:29:00.544 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.548 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-46855"] 21-Feb-2024 15:29:00.561 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-46855"] 21-Feb-2024 15:29:00.563 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.565 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-46855"] 21-Feb-2024 15:29:00.571 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-46855"] 21-Feb-2024 15:29:00.573 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 21-Feb-2024 15:29:00.574 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 21-Feb-2024 15:29:00.576 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 21-Feb-2024 15:29:00.578 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 21-Feb-2024 15:29:00.578 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:29:00.578 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.594 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-42521"] 21-Feb-2024 15:29:00.609 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-42521"] 21-Feb-2024 15:29:00.610 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.611 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-42521"] 21-Feb-2024 15:29:00.616 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-42521"] 21-Feb-2024 15:29:00.617 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 21-Feb-2024 15:29:00.618 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 21-Feb-2024 15:29:00.619 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:29:00.619 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.623 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-41477"] 21-Feb-2024 15:29:00.633 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-41477"] 21-Feb-2024 15:29:00.636 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.637 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-41477"] 21-Feb-2024 15:29:00.640 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-41477"] 21-Feb-2024 15:29:00.641 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 21-Feb-2024 15:29:00.642 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 21-Feb-2024 15:29:00.643 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 21-Feb-2024 15:29:00.643 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.87-dev] 21-Feb-2024 15:29:00.648 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-40317"] 21-Feb-2024 15:29:00.656 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-40317"] 21-Feb-2024 15:29:00.658 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 21-Feb-2024 15:29:00.661 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-40317"] 21-Feb-2024 15:29:00.664 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-40317"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.438 sec Testcase: testUseContentTypeExpiresConfiguration took 0.185 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.017 sec Testcase: testBug63909 took 0.369 sec Testcase: testConfiguration took 0.055 sec Testcase: testNullContentType took 0.023 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.003 sec Testcase: testUseDefaultConfiguration1 took 0.083 sec Testcase: testUseDefaultConfiguration2 took 0.036 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.038 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.031 sec Testcase: testIntsToCommaDelimitedString took 0.003 sec Testcase: testSkipBecauseExpiresIsDefined took 0.041 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.024 sec Testcase: testEmptyContent took 0.024 sec