Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.374 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 22 May 2023 11:40:27 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 22 May 2023 11:43:27 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:40:27 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 22 May 2023 11:40:27 GMT Expires: Mon, 22 May 2023 11:47:28 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:41:28 GMT Content-Length: 0 Date: Mon, 22 May 2023 11:40:27 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 22 May 2023 11:41:28 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:40:27 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:41:28 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:40:27 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:47:28 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:40:27 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:40:27 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 22 May 2023 11:40:28 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:40:27 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:45:28 GMT Content-Length: 11 Date: Mon, 22 May 2023 11:40:27 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:47:28 GMT Content-Length: 0 Date: Mon, 22 May 2023 11:40:27 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 22-May-2023 11:40:26.239 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 22-May-2023 11:40:27.038 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 22-May-2023 11:40:27.133 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:27.133 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:27.404 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-42133"] 22-May-2023 11:40:27.603 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-42133"] 22-May-2023 11:40:27.605 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:27.644 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-42133"] 22-May-2023 11:40:27.649 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-42133"] 22-May-2023 11:40:27.664 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 22-May-2023 11:40:27.677 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 22-May-2023 11:40:27.721 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:27.721 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:27.735 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38407"] 22-May-2023 11:40:27.752 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38407"] 22-May-2023 11:40:27.753 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:27.756 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38407"] 22-May-2023 11:40:27.757 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-38407"] 22-May-2023 11:40:27.777 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 22-May-2023 11:40:27.778 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 22-May-2023 11:40:27.779 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 22-May-2023 11:40:27.788 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 22-May-2023 11:40:27.840 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:27.840 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:27.891 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 22-May-2023 11:40:27.995 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40073"] 22-May-2023 11:40:28.004 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40073"] 22-May-2023 11:40:28.005 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.012 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40073"] 22-May-2023 11:40:28.013 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40073"] 22-May-2023 11:40:28.016 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 22-May-2023 11:40:28.018 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 22-May-2023 11:40:28.024 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:28.025 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:28.030 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43101"] 22-May-2023 11:40:28.031 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43101"] 22-May-2023 11:40:28.032 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.034 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43101"] 22-May-2023 11:40:28.036 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-43101"] 22-May-2023 11:40:28.040 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 22-May-2023 11:40:28.041 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 22-May-2023 11:40:28.055 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:28.055 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:28.070 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45517"] 22-May-2023 11:40:28.075 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45517"] 22-May-2023 11:40:28.076 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.079 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45517"] 22-May-2023 11:40:28.080 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-45517"] 22-May-2023 11:40:28.083 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 22-May-2023 11:40:28.084 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 22-May-2023 11:40:28.085 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 22-May-2023 11:40:28.086 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 22-May-2023 11:40:28.093 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:28.093 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:28.099 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-34345"] 22-May-2023 11:40:28.108 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-34345"] 22-May-2023 11:40:28.110 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.112 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-34345"] 22-May-2023 11:40:28.113 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-34345"] 22-May-2023 11:40:28.116 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 22-May-2023 11:40:28.117 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 22-May-2023 11:40:28.132 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:28.132 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:28.142 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44341"] 22-May-2023 11:40:28.148 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44341"] 22-May-2023 11:40:28.149 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.152 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44341"] 22-May-2023 11:40:28.153 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-44341"] 22-May-2023 11:40:28.156 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 22-May-2023 11:40:28.157 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 22-May-2023 11:40:28.164 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:28.164 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:28.170 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-32989"] 22-May-2023 11:40:28.177 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-32989"] 22-May-2023 11:40:28.178 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.180 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-32989"] 22-May-2023 11:40:28.181 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-32989"] 22-May-2023 11:40:28.184 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 22-May-2023 11:40:28.185 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 22-May-2023 11:40:28.188 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:28.189 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:28.193 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39881"] 22-May-2023 11:40:28.197 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39881"] 22-May-2023 11:40:28.200 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.202 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39881"] 22-May-2023 11:40:28.203 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39881"] 22-May-2023 11:40:28.206 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 22-May-2023 11:40:28.207 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 22-May-2023 11:40:28.208 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 22-May-2023 11:40:28.209 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 22-May-2023 11:40:28.212 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:28.212 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:28.216 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42087"] 22-May-2023 11:40:28.223 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42087"] 22-May-2023 11:40:28.225 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.228 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42087"] 22-May-2023 11:40:28.229 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-42087"] 22-May-2023 11:40:28.235 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 22-May-2023 11:40:28.237 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 22-May-2023 11:40:28.240 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:28.240 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:28.246 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-45603"] 22-May-2023 11:40:28.251 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-45603"] 22-May-2023 11:40:28.253 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.255 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-45603"] 22-May-2023 11:40:28.256 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-45603"] 22-May-2023 11:40:28.259 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 22-May-2023 11:40:28.260 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 22-May-2023 11:40:28.266 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 22-May-2023 11:40:28.266 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.10-dev] 22-May-2023 11:40:28.272 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-39505"] 22-May-2023 11:40:28.276 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-39505"] 22-May-2023 11:40:28.277 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 22-May-2023 11:40:28.280 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-39505"] 22-May-2023 11:40:28.280 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-39505"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.675 sec Testcase: testUseContentTypeExpiresConfiguration took 0.115 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.238 sec Testcase: testConfiguration took 0.023 sec Testcase: testNullContentType took 0.043 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.002 sec Testcase: testUseDefaultConfiguration1 took 0.031 sec Testcase: testUseDefaultConfiguration2 took 0.04 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.028 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.022 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.026 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.025 sec Testcase: testEmptyContent took 0.024 sec