Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.072 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Wed, 18 Oct 2023 17:02:29 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Wed, 18 Oct 2023 17:05:29 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 17:02:29 GMT Content-Type: text/xml;charset=utf-8 Date: Wed, 18 Oct 2023 17:02:29 GMT Expires: Wed, 18 Oct 2023 17:09:30 GMT Keep-Alive: timeout=3 ETag: W/"971-1697647264607" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 18 Oct 2023 17:03:30 GMT Content-Length: 0 Date: Wed, 18 Oct 2023 17:02:29 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Wed, 18 Oct 2023 17:03:30 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 17:02:29 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Wed, 18 Oct 2023 17:03:30 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 17:02:29 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Wed, 18 Oct 2023 17:09:30 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 17:02:29 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, 18 Oct 2023 17:02:29 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Wed, 18 Oct 2023 17:02:30 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 17:02:29 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Wed, 18 Oct 2023 17:07:30 GMT Content-Length: 11 Date: Wed, 18 Oct 2023 17:02:29 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=419 Connection: keep-alive Expires: Wed, 18 Oct 2023 17:09:30 GMT Content-Length: 0 Date: Wed, 18 Oct 2023 17:02:29 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 18-Oct-2023 17:02:28.770 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 18-Oct-2023 17:02:29.328 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 18-Oct-2023 17:02:29.468 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:29.469 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:29.612 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-37203"] 18-Oct-2023 17:02:29.710 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-37203"] 18-Oct-2023 17:02:29.714 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:29.741 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-37203"] 18-Oct-2023 17:02:29.746 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-37203"] 18-Oct-2023 17:02:29.760 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 18-Oct-2023 17:02:29.765 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 18-Oct-2023 17:02:29.791 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:29.791 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:29.809 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38095"] 18-Oct-2023 17:02:29.822 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38095"] 18-Oct-2023 17:02:29.823 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:29.826 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38095"] 18-Oct-2023 17:02:29.829 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38095"] 18-Oct-2023 17:02:29.832 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 18-Oct-2023 17:02:29.833 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 18-Oct-2023 17:02:29.834 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 18-Oct-2023 17:02:29.840 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 18-Oct-2023 17:02:29.855 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:29.855 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:29.936 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 18-Oct-2023 17:02:30.148 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41925"] 18-Oct-2023 17:02:30.155 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41925"] 18-Oct-2023 17:02:30.156 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.162 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41925"] 18-Oct-2023 17:02:30.163 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-41925"] 18-Oct-2023 17:02:30.174 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 18-Oct-2023 17:02:30.176 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 18-Oct-2023 17:02:30.222 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:30.223 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:30.236 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33809"] 18-Oct-2023 17:02:30.240 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33809"] 18-Oct-2023 17:02:30.242 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.244 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33809"] 18-Oct-2023 17:02:30.244 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33809"] 18-Oct-2023 17:02:30.248 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 18-Oct-2023 17:02:30.250 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 18-Oct-2023 17:02:30.265 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:30.266 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:30.276 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-40929"] 18-Oct-2023 17:02:30.279 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-40929"] 18-Oct-2023 17:02:30.280 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.282 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-40929"] 18-Oct-2023 17:02:30.283 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-40929"] 18-Oct-2023 17:02:30.295 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 18-Oct-2023 17:02:30.296 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 18-Oct-2023 17:02:30.297 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 18-Oct-2023 17:02:30.299 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 18-Oct-2023 17:02:30.314 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:30.314 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:30.321 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-36679"] 18-Oct-2023 17:02:30.326 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-36679"] 18-Oct-2023 17:02:30.329 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.331 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-36679"] 18-Oct-2023 17:02:30.332 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-36679"] 18-Oct-2023 17:02:30.335 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 18-Oct-2023 17:02:30.345 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 18-Oct-2023 17:02:30.352 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:30.352 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:30.365 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-33053"] 18-Oct-2023 17:02:30.380 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-33053"] 18-Oct-2023 17:02:30.382 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.384 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-33053"] 18-Oct-2023 17:02:30.385 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-33053"] 18-Oct-2023 17:02:30.390 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 18-Oct-2023 17:02:30.391 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 18-Oct-2023 17:02:30.467 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:30.467 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:30.486 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33679"] 18-Oct-2023 17:02:30.491 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33679"] 18-Oct-2023 17:02:30.492 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.494 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33679"] 18-Oct-2023 17:02:30.495 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33679"] 18-Oct-2023 17:02:30.498 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 18-Oct-2023 17:02:30.502 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 18-Oct-2023 17:02:30.507 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:30.507 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:30.512 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-33899"] 18-Oct-2023 17:02:30.514 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-33899"] 18-Oct-2023 17:02:30.515 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.517 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-33899"] 18-Oct-2023 17:02:30.518 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-33899"] 18-Oct-2023 17:02:30.520 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 18-Oct-2023 17:02:30.521 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 18-Oct-2023 17:02:30.521 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 18-Oct-2023 17:02:30.523 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 18-Oct-2023 17:02:30.524 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:30.525 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:30.528 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-32781"] 18-Oct-2023 17:02:30.534 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-32781"] 18-Oct-2023 17:02:30.534 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.536 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-32781"] 18-Oct-2023 17:02:30.537 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-32781"] 18-Oct-2023 17:02:30.538 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 18-Oct-2023 17:02:30.539 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 18-Oct-2023 17:02:30.541 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:30.541 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:30.545 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-37311"] 18-Oct-2023 17:02:30.553 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-37311"] 18-Oct-2023 17:02:30.554 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.556 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-37311"] 18-Oct-2023 17:02:30.556 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-37311"] 18-Oct-2023 17:02:30.559 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 18-Oct-2023 17:02:30.560 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 18-Oct-2023 17:02:30.563 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 18-Oct-2023 17:02:30.563 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 18-Oct-2023 17:02:30.569 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41807"] 18-Oct-2023 17:02:30.571 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41807"] 18-Oct-2023 17:02:30.572 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 18-Oct-2023 17:02:30.573 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41807"] 18-Oct-2023 17:02:30.574 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41807"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.209 sec Testcase: testUseContentTypeExpiresConfiguration took 0.073 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.34 sec Testcase: testConfiguration took 0.073 sec Testcase: testNullContentType took 0.046 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.039 sec Testcase: testUseDefaultConfiguration2 took 0.054 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.108 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.021 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.017 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.02 sec Testcase: testEmptyContent took 0.019 sec