Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.106 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Thu, 05 Oct 2023 10:54:22 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Thu, 05 Oct 2023 10:57:22 GMT Content-Length: 11 Date: Thu, 05 Oct 2023 10:54:22 GMT Content-Type: text/xml;charset=utf-8 Date: Thu, 05 Oct 2023 10:54:22 GMT Expires: Thu, 05 Oct 2023 11:01:23 GMT Keep-Alive: timeout=3 ETag: W/"971-1696502672576" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 05 Oct 2023 10:55:23 GMT Content-Length: 0 Date: Thu, 05 Oct 2023 10:54:22 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Thu, 05 Oct 2023 10:55:23 GMT Content-Length: 11 Date: Thu, 05 Oct 2023 10:54:22 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Thu, 05 Oct 2023 10:55:23 GMT Content-Length: 11 Date: Thu, 05 Oct 2023 10:54:22 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 05 Oct 2023 11:01:23 GMT Content-Length: 11 Date: Thu, 05 Oct 2023 10:54: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: Thu, 05 Oct 2023 10:54:22 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Thu, 05 Oct 2023 10:54:23 GMT Content-Length: 11 Date: Thu, 05 Oct 2023 10:54:22 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Thu, 05 Oct 2023 10:59:23 GMT Content-Length: 11 Date: Thu, 05 Oct 2023 10:54:22 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Thu, 05 Oct 2023 11:01:23 GMT Content-Length: 0 Date: Thu, 05 Oct 2023 10:54:22 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 05-Oct-2023 10:54:21.629 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 05-Oct-2023 10:54:22.279 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 05-Oct-2023 10:54:22.372 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:22.373 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:22.549 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-41921"] 05-Oct-2023 10:54:22.698 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-41921"] 05-Oct-2023 10:54:22.700 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:22.718 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-41921"] 05-Oct-2023 10:54:22.725 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-41921"] 05-Oct-2023 10:54:22.762 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 05-Oct-2023 10:54:22.773 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 05-Oct-2023 10:54:22.774 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:22.774 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:22.789 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-46537"] 05-Oct-2023 10:54:22.818 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-46537"] 05-Oct-2023 10:54:22.821 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:22.823 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-46537"] 05-Oct-2023 10:54:22.830 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-46537"] 05-Oct-2023 10:54:22.832 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 05-Oct-2023 10:54:22.833 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 05-Oct-2023 10:54:22.834 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 05-Oct-2023 10:54:22.844 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 05-Oct-2023 10:54:22.845 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:22.845 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:22.951 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 05-Oct-2023 10:54:23.083 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-38547"] 05-Oct-2023 10:54:23.152 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-38547"] 05-Oct-2023 10:54:23.154 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.160 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-38547"] 05-Oct-2023 10:54:23.166 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-38547"] 05-Oct-2023 10:54:23.168 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 05-Oct-2023 10:54:23.176 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 05-Oct-2023 10:54:23.181 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:23.181 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:23.189 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-40443"] 05-Oct-2023 10:54:23.216 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-40443"] 05-Oct-2023 10:54:23.216 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.219 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-40443"] 05-Oct-2023 10:54:23.224 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-40443"] 05-Oct-2023 10:54:23.225 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 05-Oct-2023 10:54:23.230 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 05-Oct-2023 10:54:23.232 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:23.232 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:23.243 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-41525"] 05-Oct-2023 10:54:23.251 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-41525"] 05-Oct-2023 10:54:23.253 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.255 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-41525"] 05-Oct-2023 10:54:23.259 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-41525"] 05-Oct-2023 10:54:23.260 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 05-Oct-2023 10:54:23.263 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 05-Oct-2023 10:54:23.265 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 05-Oct-2023 10:54:23.267 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 05-Oct-2023 10:54:23.268 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:23.269 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:23.298 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-46439"] 05-Oct-2023 10:54:23.309 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-46439"] 05-Oct-2023 10:54:23.311 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.315 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-46439"] 05-Oct-2023 10:54:23.317 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-46439"] 05-Oct-2023 10:54:23.318 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 05-Oct-2023 10:54:23.322 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 05-Oct-2023 10:54:23.323 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:23.323 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:23.330 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-36889"] 05-Oct-2023 10:54:23.339 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-36889"] 05-Oct-2023 10:54:23.340 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.341 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-36889"] 05-Oct-2023 10:54:23.345 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-36889"] 05-Oct-2023 10:54:23.346 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 05-Oct-2023 10:54:23.348 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 05-Oct-2023 10:54:23.349 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:23.349 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:23.356 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-43879"] 05-Oct-2023 10:54:23.364 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-43879"] 05-Oct-2023 10:54:23.367 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.369 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-43879"] 05-Oct-2023 10:54:23.373 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-43879"] 05-Oct-2023 10:54:23.374 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 05-Oct-2023 10:54:23.376 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 05-Oct-2023 10:54:23.376 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:23.376 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:23.383 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-45895"] 05-Oct-2023 10:54:23.391 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-45895"] 05-Oct-2023 10:54:23.394 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.396 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-45895"] 05-Oct-2023 10:54:23.398 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-45895"] 05-Oct-2023 10:54:23.399 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 05-Oct-2023 10:54:23.399 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 05-Oct-2023 10:54:23.400 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 05-Oct-2023 10:54:23.401 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 05-Oct-2023 10:54:23.402 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:23.402 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:23.406 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-41081"] 05-Oct-2023 10:54:23.414 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-41081"] 05-Oct-2023 10:54:23.416 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.418 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-41081"] 05-Oct-2023 10:54:23.419 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-41081"] 05-Oct-2023 10:54:23.420 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 05-Oct-2023 10:54:23.423 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 05-Oct-2023 10:54:23.423 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:23.424 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:23.427 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-37659"] 05-Oct-2023 10:54:23.443 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-37659"] 05-Oct-2023 10:54:23.446 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.448 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-37659"] 05-Oct-2023 10:54:23.453 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-37659"] 05-Oct-2023 10:54:23.455 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 05-Oct-2023 10:54:23.456 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 05-Oct-2023 10:54:23.457 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Oct-2023 10:54:23.457 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 05-Oct-2023 10:54:23.461 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-42711"] 05-Oct-2023 10:54:23.477 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-42711"] 05-Oct-2023 10:54:23.480 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Oct-2023 10:54:23.482 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-42711"] 05-Oct-2023 10:54:23.485 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-42711"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.332 sec Testcase: testUseContentTypeExpiresConfiguration took 0.069 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.001 sec Testcase: testBug63909 took 0.334 sec Testcase: testConfiguration took 0.058 sec Testcase: testNullContentType took 0.035 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.005 sec Testcase: testUseDefaultConfiguration1 took 0.053 sec Testcase: testUseDefaultConfiguration2 took 0.027 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.028 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.024 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.02 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.034 sec Testcase: testEmptyContent took 0.032 sec