Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.447 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 11 Oct 2023 13:14:31 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 11 Oct 2023 13:17:31 GMT Content-Length: 11 Date: Wed, 11 Oct 2023 13:14:31 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 11 Oct 2023 13:14:31 GMT Expires: Wed, 11 Oct 2023 13:21:31 GMT Keep-Alive: timeout=3 ETag: W/"971-1697028745005" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 11 Oct 2023 13:15:32 GMT Content-Length: 0 Date: Wed, 11 Oct 2023 13:14:31 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 11 Oct 2023 13:15:32 GMT Content-Length: 11 Date: Wed, 11 Oct 2023 13:14:31 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 11 Oct 2023 13:15:32 GMT Content-Length: 11 Date: Wed, 11 Oct 2023 13:14:31 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 11 Oct 2023 13:21:32 GMT Content-Length: 11 Date: Wed, 11 Oct 2023 13:14:31 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, 11 Oct 2023 13:14:31 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 11 Oct 2023 13:14:32 GMT Content-Length: 11 Date: Wed, 11 Oct 2023 13:14:31 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 11 Oct 2023 13:19:32 GMT Content-Length: 11 Date: Wed, 11 Oct 2023 13:14:31 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 11 Oct 2023 13:21:32 GMT Content-Length: 0 Date: Wed, 11 Oct 2023 13:14:31 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 11-Oct-2023 13:14:30.390 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 11-Oct-2023 13:14:31.173 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 11-Oct-2023 13:14:31.292 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:31.292 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:31.455 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-40369"] 11-Oct-2023 13:14:31.553 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-40369"] 11-Oct-2023 13:14:31.557 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:31.586 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-40369"] 11-Oct-2023 13:14:31.588 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-40369"] 11-Oct-2023 13:14:31.604 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 11-Oct-2023 13:14:31.607 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 11-Oct-2023 13:14:31.611 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:31.611 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:31.619 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-34561"] 11-Oct-2023 13:14:31.633 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-34561"] 11-Oct-2023 13:14:31.636 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:31.640 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-34561"] 11-Oct-2023 13:14:31.644 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-34561"] 11-Oct-2023 13:14:31.652 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 11-Oct-2023 13:14:31.654 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 11-Oct-2023 13:14:31.655 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 11-Oct-2023 13:14:31.663 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 11-Oct-2023 13:14:31.694 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:31.695 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:31.764 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 11-Oct-2023 13:14:31.928 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-38655"] 11-Oct-2023 13:14:31.936 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-38655"] 11-Oct-2023 13:14:31.937 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:31.944 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-38655"] 11-Oct-2023 13:14:31.948 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-38655"] 11-Oct-2023 13:14:31.952 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 11-Oct-2023 13:14:31.955 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 11-Oct-2023 13:14:31.996 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:31.996 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:32.004 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43539"] 11-Oct-2023 13:14:32.005 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43539"] 11-Oct-2023 13:14:32.007 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:32.010 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43539"] 11-Oct-2023 13:14:32.011 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43539"] 11-Oct-2023 13:14:32.013 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 11-Oct-2023 13:14:32.017 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 11-Oct-2023 13:14:32.063 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:32.064 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:32.074 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41809"] 11-Oct-2023 13:14:32.091 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41809"] 11-Oct-2023 13:14:32.094 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:32.097 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41809"] 11-Oct-2023 13:14:32.099 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-41809"] 11-Oct-2023 13:14:32.103 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 11-Oct-2023 13:14:32.104 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 11-Oct-2023 13:14:32.105 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 11-Oct-2023 13:14:32.108 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 11-Oct-2023 13:14:32.133 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:32.133 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:32.139 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44731"] 11-Oct-2023 13:14:32.146 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44731"] 11-Oct-2023 13:14:32.150 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:32.152 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44731"] 11-Oct-2023 13:14:32.153 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44731"] 11-Oct-2023 13:14:32.156 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 11-Oct-2023 13:14:32.158 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 11-Oct-2023 13:14:32.255 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:32.255 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:32.269 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44639"] 11-Oct-2023 13:14:32.281 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44639"] 11-Oct-2023 13:14:32.282 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:32.284 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44639"] 11-Oct-2023 13:14:32.286 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44639"] 11-Oct-2023 13:14:32.292 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 11-Oct-2023 13:14:32.294 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 11-Oct-2023 13:14:32.376 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:32.376 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:32.396 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33227"] 11-Oct-2023 13:14:32.403 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33227"] 11-Oct-2023 13:14:32.406 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:32.408 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33227"] 11-Oct-2023 13:14:32.409 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33227"] 11-Oct-2023 13:14:32.414 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 11-Oct-2023 13:14:32.416 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 11-Oct-2023 13:14:32.422 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:32.422 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:32.428 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-45471"] 11-Oct-2023 13:14:32.434 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-45471"] 11-Oct-2023 13:14:32.437 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:32.439 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-45471"] 11-Oct-2023 13:14:32.440 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-45471"] 11-Oct-2023 13:14:32.443 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 11-Oct-2023 13:14:32.444 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 11-Oct-2023 13:14:32.445 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 11-Oct-2023 13:14:32.447 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 11-Oct-2023 13:14:32.460 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:32.460 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:32.465 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42203"] 11-Oct-2023 13:14:32.469 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42203"] 11-Oct-2023 13:14:32.471 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:32.473 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42203"] 11-Oct-2023 13:14:32.473 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42203"] 11-Oct-2023 13:14:32.476 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 11-Oct-2023 13:14:32.478 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 11-Oct-2023 13:14:32.485 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:32.485 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:32.489 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35043"] 11-Oct-2023 13:14:32.494 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35043"] 11-Oct-2023 13:14:32.497 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:32.500 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35043"] 11-Oct-2023 13:14:32.501 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35043"] 11-Oct-2023 13:14:32.503 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 11-Oct-2023 13:14:32.505 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 11-Oct-2023 13:14:32.514 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 11-Oct-2023 13:14:32.514 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.82-dev] 11-Oct-2023 13:14:32.518 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36575"] 11-Oct-2023 13:14:32.522 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36575"] 11-Oct-2023 13:14:32.525 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 11-Oct-2023 13:14:32.526 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36575"] 11-Oct-2023 13:14:32.527 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-36575"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.444 sec Testcase: testUseContentTypeExpiresConfiguration took 0.049 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.298 sec Testcase: testConfiguration took 0.061 sec Testcase: testNullContentType took 0.089 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.05 sec Testcase: testUseDefaultConfiguration2 took 0.135 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.123 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.029 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.031 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.027 sec Testcase: testEmptyContent took 0.026 sec