Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.405 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 03 Oct 2023 15:02:19 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 03 Oct 2023 15:05:19 GMT Content-Length: 11 Date: Tue, 03 Oct 2023 15:02:19 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 03 Oct 2023 15:02:19 GMT Expires: Tue, 03 Oct 2023 15:09:19 GMT Keep-Alive: timeout=3 ETag: W/"971-1696344108159" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 03 Oct 2023 15:03:19 GMT Content-Length: 0 Date: Tue, 03 Oct 2023 15:02:19 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 03 Oct 2023 15:03:19 GMT Content-Length: 11 Date: Tue, 03 Oct 2023 15:02:19 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 03 Oct 2023 15:03:19 GMT Content-Length: 11 Date: Tue, 03 Oct 2023 15:02:19 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 03 Oct 2023 15:09:19 GMT Content-Length: 11 Date: Tue, 03 Oct 2023 15:02:19 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, 03 Oct 2023 15:02:19 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 03 Oct 2023 15:02:19 GMT Content-Length: 11 Date: Tue, 03 Oct 2023 15:02:19 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 03 Oct 2023 15:07:19 GMT Content-Length: 11 Date: Tue, 03 Oct 2023 15:02:19 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 03 Oct 2023 15:09:19 GMT Content-Length: 0 Date: Tue, 03 Oct 2023 15:02:19 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 03-Oct-2023 15:02:17.725 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 03-Oct-2023 15:02:18.821 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 03-Oct-2023 15:02:18.881 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:18.884 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.085 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-44275"] 03-Oct-2023 15:02:19.200 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-44275"] 03-Oct-2023 15:02:19.202 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.215 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-44275"] 03-Oct-2023 15:02:19.217 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-44275"] 03-Oct-2023 15:02:19.232 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 03-Oct-2023 15:02:19.234 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 03-Oct-2023 15:02:19.237 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.238 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.248 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41459"] 03-Oct-2023 15:02:19.256 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41459"] 03-Oct-2023 15:02:19.259 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.262 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41459"] 03-Oct-2023 15:02:19.263 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-41459"] 03-Oct-2023 15:02:19.273 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 03-Oct-2023 15:02:19.274 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 03-Oct-2023 15:02:19.275 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 03-Oct-2023 15:02:19.281 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 03-Oct-2023 15:02:19.288 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.288 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.328 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 03-Oct-2023 15:02:19.427 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40525"] 03-Oct-2023 15:02:19.434 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40525"] 03-Oct-2023 15:02:19.435 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.450 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40525"] 03-Oct-2023 15:02:19.451 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40525"] 03-Oct-2023 15:02:19.460 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 03-Oct-2023 15:02:19.462 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 03-Oct-2023 15:02:19.472 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.472 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.484 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-38587"] 03-Oct-2023 15:02:19.485 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-38587"] 03-Oct-2023 15:02:19.485 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.489 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-38587"] 03-Oct-2023 15:02:19.489 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-38587"] 03-Oct-2023 15:02:19.496 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 03-Oct-2023 15:02:19.497 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 03-Oct-2023 15:02:19.500 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.500 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.508 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36583"] 03-Oct-2023 15:02:19.515 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36583"] 03-Oct-2023 15:02:19.518 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.521 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36583"] 03-Oct-2023 15:02:19.521 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-36583"] 03-Oct-2023 15:02:19.525 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 03-Oct-2023 15:02:19.526 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 03-Oct-2023 15:02:19.527 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 03-Oct-2023 15:02:19.529 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 03-Oct-2023 15:02:19.540 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.540 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.548 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40943"] 03-Oct-2023 15:02:19.556 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40943"] 03-Oct-2023 15:02:19.556 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.561 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40943"] 03-Oct-2023 15:02:19.562 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-40943"] 03-Oct-2023 15:02:19.565 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 03-Oct-2023 15:02:19.567 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 03-Oct-2023 15:02:19.580 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.580 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.586 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43573"] 03-Oct-2023 15:02:19.591 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43573"] 03-Oct-2023 15:02:19.591 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.594 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43573"] 03-Oct-2023 15:02:19.595 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43573"] 03-Oct-2023 15:02:19.606 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 03-Oct-2023 15:02:19.607 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 03-Oct-2023 15:02:19.616 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.617 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.635 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42985"] 03-Oct-2023 15:02:19.640 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42985"] 03-Oct-2023 15:02:19.642 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.652 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42985"] 03-Oct-2023 15:02:19.653 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-42985"] 03-Oct-2023 15:02:19.656 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 03-Oct-2023 15:02:19.658 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 03-Oct-2023 15:02:19.684 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.684 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.700 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40689"] 03-Oct-2023 15:02:19.705 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40689"] 03-Oct-2023 15:02:19.707 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.714 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40689"] 03-Oct-2023 15:02:19.714 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-40689"] 03-Oct-2023 15:02:19.718 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 03-Oct-2023 15:02:19.719 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 03-Oct-2023 15:02:19.720 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 03-Oct-2023 15:02:19.721 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 03-Oct-2023 15:02:19.729 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.729 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.738 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34731"] 03-Oct-2023 15:02:19.741 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34731"] 03-Oct-2023 15:02:19.741 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.744 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34731"] 03-Oct-2023 15:02:19.745 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-34731"] 03-Oct-2023 15:02:19.751 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 03-Oct-2023 15:02:19.752 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 03-Oct-2023 15:02:19.753 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.753 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.768 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41099"] 03-Oct-2023 15:02:19.770 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41099"] 03-Oct-2023 15:02:19.771 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.779 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41099"] 03-Oct-2023 15:02:19.780 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41099"] 03-Oct-2023 15:02:19.783 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 03-Oct-2023 15:02:19.785 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 03-Oct-2023 15:02:19.790 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 03-Oct-2023 15:02:19.790 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.94-dev] 03-Oct-2023 15:02:19.795 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-32921"] 03-Oct-2023 15:02:19.798 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-32921"] 03-Oct-2023 15:02:19.798 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 03-Oct-2023 15:02:19.800 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-32921"] 03-Oct-2023 15:02:19.801 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-32921"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.795 sec Testcase: testUseContentTypeExpiresConfiguration took 0.041 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.184 sec Testcase: testConfiguration took 0.034 sec Testcase: testNullContentType took 0.031 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.038 sec Testcase: testUseDefaultConfiguration2 took 0.04 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.051 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.062 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.03 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.033 sec Testcase: testEmptyContent took 0.023 sec