Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.42 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Tue, 24 Oct 2023 12:30:14 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Tue, 24 Oct 2023 12:33:15 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 12:30:15 GMT Content-Type: text/xml;charset=utf-8 Date: Tue, 24 Oct 2023 12:30:15 GMT Expires: Tue, 24 Oct 2023 12:37:15 GMT Keep-Alive: timeout=3 ETag: W/"971-1698150010124" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 24 Oct 2023 12:31:15 GMT Content-Length: 0 Date: Tue, 24 Oct 2023 12:30:15 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Tue, 24 Oct 2023 12:31:15 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 12:30:15 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Tue, 24 Oct 2023 12:31:15 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 12:30:15 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 24 Oct 2023 12:37:15 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 12:30:15 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, 24 Oct 2023 12:30:15 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Tue, 24 Oct 2023 12:30:15 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 12:30:15 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Tue, 24 Oct 2023 12:35:15 GMT Content-Length: 11 Date: Tue, 24 Oct 2023 12:30:15 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Tue, 24 Oct 2023 12:37:15 GMT Content-Length: 0 Date: Tue, 24 Oct 2023 12:30:15 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 24-Oct-2023 12:30:13.843 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 24-Oct-2023 12:30:14.454 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 24-Oct-2023 12:30:14.501 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:14.501 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:14.749 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-43079"] 24-Oct-2023 12:30:14.984 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-43079"] 24-Oct-2023 12:30:14.986 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.012 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-43079"] 24-Oct-2023 12:30:15.031 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-43079"] 24-Oct-2023 12:30:15.038 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 24-Oct-2023 12:30:15.040 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 24-Oct-2023 12:30:15.041 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.041 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.063 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-42023"] 24-Oct-2023 12:30:15.111 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-42023"] 24-Oct-2023 12:30:15.114 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.117 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-42023"] 24-Oct-2023 12:30:15.120 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-42023"] 24-Oct-2023 12:30:15.122 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 24-Oct-2023 12:30:15.123 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 24-Oct-2023 12:30:15.124 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 24-Oct-2023 12:30:15.132 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 24-Oct-2023 12:30:15.132 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.133 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.186 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 24-Oct-2023 12:30:15.363 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-34999"] 24-Oct-2023 12:30:15.470 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-34999"] 24-Oct-2023 12:30:15.474 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.488 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-34999"] 24-Oct-2023 12:30:15.499 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-34999"] 24-Oct-2023 12:30:15.501 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 24-Oct-2023 12:30:15.503 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 24-Oct-2023 12:30:15.504 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.504 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.529 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-39053"] 24-Oct-2023 12:30:15.538 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-39053"] 24-Oct-2023 12:30:15.538 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.556 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-39053"] 24-Oct-2023 12:30:15.563 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-39053"] 24-Oct-2023 12:30:15.565 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 24-Oct-2023 12:30:15.567 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 24-Oct-2023 12:30:15.569 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.569 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.584 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-33143"] 24-Oct-2023 12:30:15.649 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-33143"] 24-Oct-2023 12:30:15.652 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.654 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-33143"] 24-Oct-2023 12:30:15.659 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-33143"] 24-Oct-2023 12:30:15.661 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 24-Oct-2023 12:30:15.662 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 24-Oct-2023 12:30:15.663 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 24-Oct-2023 12:30:15.667 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 24-Oct-2023 12:30:15.669 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.669 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.688 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-40499"] 24-Oct-2023 12:30:15.700 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-40499"] 24-Oct-2023 12:30:15.700 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.702 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-40499"] 24-Oct-2023 12:30:15.706 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-40499"] 24-Oct-2023 12:30:15.708 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 24-Oct-2023 12:30:15.709 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-9"] 24-Oct-2023 12:30:15.710 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.710 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.716 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-9-45997"] 24-Oct-2023 12:30:15.726 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-9-45997"] 24-Oct-2023 12:30:15.726 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.728 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-9-45997"] 24-Oct-2023 12:30:15.731 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-9-45997"] 24-Oct-2023 12:30:15.732 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 24-Oct-2023 12:30:15.734 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-10"] 24-Oct-2023 12:30:15.735 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.735 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.742 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-10-46307"] 24-Oct-2023 12:30:15.749 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-10-46307"] 24-Oct-2023 12:30:15.751 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.753 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-10-46307"] 24-Oct-2023 12:30:15.755 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-10-46307"] 24-Oct-2023 12:30:15.756 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 24-Oct-2023 12:30:15.758 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-11"] 24-Oct-2023 12:30:15.758 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.758 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.763 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-11-46285"] 24-Oct-2023 12:30:15.776 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-11-46285"] 24-Oct-2023 12:30:15.778 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.780 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-11-46285"] 24-Oct-2023 12:30:15.784 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-11-46285"] 24-Oct-2023 12:30:15.785 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 24-Oct-2023 12:30:15.786 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-12"] 24-Oct-2023 12:30:15.788 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 24-Oct-2023 12:30:15.790 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-13"] 24-Oct-2023 12:30:15.790 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.790 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.794 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-13-37469"] 24-Oct-2023 12:30:15.802 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-13-37469"] 24-Oct-2023 12:30:15.805 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.806 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-13-37469"] 24-Oct-2023 12:30:15.808 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-13-37469"] 24-Oct-2023 12:30:15.809 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 24-Oct-2023 12:30:15.811 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-14"] 24-Oct-2023 12:30:15.811 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.812 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.815 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-14-39283"] 24-Oct-2023 12:30:15.824 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-14-39283"] 24-Oct-2023 12:30:15.826 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.828 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-14-39283"] 24-Oct-2023 12:30:15.830 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-14-39283"] 24-Oct-2023 12:30:15.831 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 24-Oct-2023 12:30:15.832 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-15"] 24-Oct-2023 12:30:15.832 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 24-Oct-2023 12:30:15.832 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.83-dev] 24-Oct-2023 12:30:15.835 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-15-42393"] 24-Oct-2023 12:30:15.854 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-15-42393"] 24-Oct-2023 12:30:15.855 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 24-Oct-2023 12:30:15.856 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-15-42393"] 24-Oct-2023 12:30:15.858 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-15-42393"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.521 sec Testcase: testUseContentTypeExpiresConfiguration took 0.084 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.003 sec Testcase: testBug63909 took 0.376 sec Testcase: testConfiguration took 0.065 sec Testcase: testNullContentType took 0.095 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.003 sec Testcase: testUseDefaultConfiguration1 took 0.044 sec Testcase: testUseDefaultConfiguration2 took 0.025 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.024 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.028 sec Testcase: testIntsToCommaDelimitedString took 0.003 sec Testcase: testSkipBecauseExpiresIsDefined took 0.021 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.021 sec Testcase: testEmptyContent took 0.028 sec