Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.809 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 22 May 2023 11:22:45 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 22 May 2023 11:25:45 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:22:45 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 22 May 2023 11:22:45 GMT Expires: Mon, 22 May 2023 11:29:46 GMT Keep-Alive: timeout=3 ETag: W/"971-1684753586255" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 22 May 2023 11:23:46 GMT Content-Length: 0 Date: Mon, 22 May 2023 11:22:45 GMT Keep-Alive: timeout=3 Cache-Control: max-age=59 Connection: keep-alive Expires: Mon, 22 May 2023 11:23:46 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:22:45 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 22 May 2023 11:23:46 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:22:45 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 22 May 2023 11:29:46 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:22:45 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: Mon, 22 May 2023 11:22:45 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 22 May 2023 11:22:46 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:22:45 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 22 May 2023 11:27:46 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:22:46 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 22 May 2023 11:29:46 GMT Content-Length: 0 Date: Mon, 22 May 2023 11:22:46 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 22-May-2023 11:22:44.603 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 22-May-2023 11:22:45.209 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 22-May-2023 11:22:45.264 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:45.264 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:45.427 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-33329"] 22-May-2023 11:22:45.631 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-33329"] 22-May-2023 11:22:45.633 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:45.666 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-33329"] 22-May-2023 11:22:45.678 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-33329"] 22-May-2023 11:22:45.683 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 22-May-2023 11:22:45.686 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 22-May-2023 11:22:45.686 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:45.687 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:45.737 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-41657"] 22-May-2023 11:22:45.812 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-41657"] 22-May-2023 11:22:45.817 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:45.820 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-41657"] 22-May-2023 11:22:45.840 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-41657"] 22-May-2023 11:22:45.844 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 22-May-2023 11:22:45.846 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 22-May-2023 11:22:45.849 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 22-May-2023 11:22:45.879 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 22-May-2023 11:22:45.881 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:45.882 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:45.973 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 22-May-2023 11:22:46.223 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-41979"] 22-May-2023 11:22:46.290 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-41979"] 22-May-2023 11:22:46.293 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.299 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-41979"] 22-May-2023 11:22:46.301 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-41979"] 22-May-2023 11:22:46.305 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 22-May-2023 11:22:46.307 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 22-May-2023 11:22:46.307 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:46.307 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:46.317 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-38123"] 22-May-2023 11:22:46.330 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-38123"] 22-May-2023 11:22:46.330 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.333 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-38123"] 22-May-2023 11:22:46.335 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-38123"] 22-May-2023 11:22:46.337 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 22-May-2023 11:22:46.339 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 22-May-2023 11:22:46.340 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:46.340 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:46.348 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-45505"] 22-May-2023 11:22:46.374 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-45505"] 22-May-2023 11:22:46.375 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.382 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-45505"] 22-May-2023 11:22:46.389 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-45505"] 22-May-2023 11:22:46.390 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 22-May-2023 11:22:46.391 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 22-May-2023 11:22:46.395 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 22-May-2023 11:22:46.397 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 22-May-2023 11:22:46.399 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:46.399 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:46.411 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-41349"] 22-May-2023 11:22:46.475 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-41349"] 22-May-2023 11:22:46.481 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.484 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-41349"] 22-May-2023 11:22:46.487 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-41349"] 22-May-2023 11:22:46.489 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 22-May-2023 11:22:46.491 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 22-May-2023 11:22:46.491 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:46.491 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:46.498 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-38359"] 22-May-2023 11:22:46.540 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-38359"] 22-May-2023 11:22:46.542 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.545 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-38359"] 22-May-2023 11:22:46.547 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-38359"] 22-May-2023 11:22:46.549 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 22-May-2023 11:22:46.550 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 22-May-2023 11:22:46.551 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:46.556 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:46.572 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-44101"] 22-May-2023 11:22:46.591 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-44101"] 22-May-2023 11:22:46.594 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.597 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-44101"] 22-May-2023 11:22:46.605 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-44101"] 22-May-2023 11:22:46.607 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 22-May-2023 11:22:46.608 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 22-May-2023 11:22:46.609 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:46.609 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:46.614 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-45653"] 22-May-2023 11:22:46.685 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-45653"] 22-May-2023 11:22:46.688 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.692 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-45653"] 22-May-2023 11:22:46.700 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-45653"] 22-May-2023 11:22:46.701 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 22-May-2023 11:22:46.702 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 22-May-2023 11:22:46.703 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 22-May-2023 11:22:46.705 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 22-May-2023 11:22:46.706 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:46.706 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:46.718 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-45775"] 22-May-2023 11:22:46.747 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-45775"] 22-May-2023 11:22:46.750 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.754 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-45775"] 22-May-2023 11:22:46.757 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-45775"] 22-May-2023 11:22:46.759 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 22-May-2023 11:22:46.761 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 22-May-2023 11:22:46.761 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:46.763 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:46.789 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-42197"] 22-May-2023 11:22:46.872 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-42197"] 22-May-2023 11:22:46.875 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.877 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-42197"] 22-May-2023 11:22:46.885 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-42197"] 22-May-2023 11:22:46.887 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 22-May-2023 11:22:46.889 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 22-May-2023 11:22:46.889 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:22:46.890 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:22:46.894 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-32967"] 22-May-2023 11:22:46.908 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-32967"] 22-May-2023 11:22:46.908 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:22:46.910 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-32967"] 22-May-2023 11:22:46.913 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-32967"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.466 sec Testcase: testUseContentTypeExpiresConfiguration took 0.159 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.003 sec Testcase: testBug63909 took 0.457 sec Testcase: testConfiguration took 0.032 sec Testcase: testNullContentType took 0.053 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.005 sec Testcase: testUseDefaultConfiguration1 took 0.093 sec Testcase: testUseDefaultConfiguration2 took 0.059 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.058 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.095 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.055 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.128 sec Testcase: testEmptyContent took 0.027 sec