Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.631 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 10 Oct 2023 20:20:01 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 10 Oct 2023 20:23:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 20:20:02 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 10 Oct 2023 20:20:02 GMT Expires: Tue, 10 Oct 2023 20:27:02 GMT Keep-Alive: timeout=3 ETag: W/"971-1696967955155" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 10 Oct 2023 20:21:02 GMT Content-Length: 0 Date: Tue, 10 Oct 2023 20:20:02 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 10 Oct 2023 20:21:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 20:20:02 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 10 Oct 2023 20:21:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 20:20:02 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 10 Oct 2023 20:27:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 20:20:02 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, 10 Oct 2023 20:20:02 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 10 Oct 2023 20:20:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 20:20:02 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 10 Oct 2023 20:25:02 GMT Content-Length: 11 Date: Tue, 10 Oct 2023 20:20:02 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 10 Oct 2023 20:27:02 GMT Content-Length: 0 Date: Tue, 10 Oct 2023 20:20:02 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 10-Oct-2023 20:20:00.328 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 10-Oct-2023 20:20:01.296 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 10-Oct-2023 20:20:01.397 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:01.400 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:01.595 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43427"] 10-Oct-2023 20:20:01.808 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43427"] 10-Oct-2023 20:20:01.809 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:01.842 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43427"] 10-Oct-2023 20:20:01.844 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-43427"] 10-Oct-2023 20:20:01.860 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 10-Oct-2023 20:20:01.863 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 10-Oct-2023 20:20:01.954 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:01.954 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.007 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40021"] 10-Oct-2023 20:20:02.037 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40021"] 10-Oct-2023 20:20:02.040 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.047 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40021"] 10-Oct-2023 20:20:02.048 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-40021"] 10-Oct-2023 20:20:02.059 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 10-Oct-2023 20:20:02.060 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 10-Oct-2023 20:20:02.061 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 10-Oct-2023 20:20:02.073 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 10-Oct-2023 20:20:02.091 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.092 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.175 INFO [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 10-Oct-2023 20:20:02.379 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43751"] 10-Oct-2023 20:20:02.389 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43751"] 10-Oct-2023 20:20:02.390 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.402 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43751"] 10-Oct-2023 20:20:02.408 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-43751"] 10-Oct-2023 20:20:02.412 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 10-Oct-2023 20:20:02.414 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 10-Oct-2023 20:20:02.416 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.417 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.422 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45645"] 10-Oct-2023 20:20:02.423 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45645"] 10-Oct-2023 20:20:02.423 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.425 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45645"] 10-Oct-2023 20:20:02.426 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-45645"] 10-Oct-2023 20:20:02.434 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 10-Oct-2023 20:20:02.436 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 10-Oct-2023 20:20:02.437 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.437 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.442 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-35905"] 10-Oct-2023 20:20:02.446 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-35905"] 10-Oct-2023 20:20:02.449 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.451 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-35905"] 10-Oct-2023 20:20:02.452 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-35905"] 10-Oct-2023 20:20:02.455 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 10-Oct-2023 20:20:02.455 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 10-Oct-2023 20:20:02.456 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 10-Oct-2023 20:20:02.457 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 10-Oct-2023 20:20:02.460 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.460 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.469 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42357"] 10-Oct-2023 20:20:02.475 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42357"] 10-Oct-2023 20:20:02.476 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.478 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42357"] 10-Oct-2023 20:20:02.479 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-42357"] 10-Oct-2023 20:20:02.489 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 10-Oct-2023 20:20:02.491 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 10-Oct-2023 20:20:02.493 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.493 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.499 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44543"] 10-Oct-2023 20:20:02.504 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44543"] 10-Oct-2023 20:20:02.506 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.508 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44543"] 10-Oct-2023 20:20:02.509 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44543"] 10-Oct-2023 20:20:02.518 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 10-Oct-2023 20:20:02.520 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 10-Oct-2023 20:20:02.528 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.528 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.536 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43169"] 10-Oct-2023 20:20:02.539 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43169"] 10-Oct-2023 20:20:02.542 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.544 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43169"] 10-Oct-2023 20:20:02.545 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-43169"] 10-Oct-2023 20:20:02.550 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 10-Oct-2023 20:20:02.551 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 10-Oct-2023 20:20:02.557 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.557 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.566 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-35967"] 10-Oct-2023 20:20:02.569 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-35967"] 10-Oct-2023 20:20:02.569 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.571 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-35967"] 10-Oct-2023 20:20:02.572 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-35967"] 10-Oct-2023 20:20:02.575 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 10-Oct-2023 20:20:02.576 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 10-Oct-2023 20:20:02.576 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 10-Oct-2023 20:20:02.577 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 10-Oct-2023 20:20:02.579 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.579 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.583 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38849"] 10-Oct-2023 20:20:02.591 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38849"] 10-Oct-2023 20:20:02.591 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.593 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38849"] 10-Oct-2023 20:20:02.594 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38849"] 10-Oct-2023 20:20:02.597 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 10-Oct-2023 20:20:02.598 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 10-Oct-2023 20:20:02.600 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.600 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.607 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-33753"] 10-Oct-2023 20:20:02.609 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-33753"] 10-Oct-2023 20:20:02.610 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.612 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-33753"] 10-Oct-2023 20:20:02.613 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-33753"] 10-Oct-2023 20:20:02.617 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 10-Oct-2023 20:20:02.618 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 10-Oct-2023 20:20:02.620 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2023 20:20:02.620 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.95-dev] 10-Oct-2023 20:20:02.631 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44637"] 10-Oct-2023 20:20:02.634 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44637"] 10-Oct-2023 20:20:02.635 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2023 20:20:02.637 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44637"] 10-Oct-2023 20:20:02.642 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-44637"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.767 sec Testcase: testUseContentTypeExpiresConfiguration took 0.199 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.35 sec Testcase: testConfiguration took 0.021 sec Testcase: testNullContentType took 0.021 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.033 sec Testcase: testUseDefaultConfiguration2 took 0.029 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.032 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.025 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.021 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.02 sec Testcase: testEmptyContent took 0.028 sec