Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.115 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Mon, 30 Oct 2023 17:55:13 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Mon, 30 Oct 2023 17:58:13 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 17:55:13 GMT Content-Type: text/xml;charset=utf-8 Date: Mon, 30 Oct 2023 17:55:13 GMT Expires: Mon, 30 Oct 2023 18:02:14 GMT Keep-Alive: timeout=3 ETag: W/"971-1698686549583" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 30 Oct 2023 17:56:14 GMT Content-Length: 0 Date: Mon, 30 Oct 2023 17:55:13 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Mon, 30 Oct 2023 17:56:14 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 17:55:13 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Mon, 30 Oct 2023 17:56:14 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 17:55:13 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:02:14 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 17:55:13 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, 30 Oct 2023 17:55:13 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Mon, 30 Oct 2023 17:55:14 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 17:55:13 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:00:14 GMT Content-Length: 11 Date: Mon, 30 Oct 2023 17:55:13 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Mon, 30 Oct 2023 18:02:14 GMT Content-Length: 0 Date: Mon, 30 Oct 2023 17:55:13 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 30-Oct-2023 17:55:12.568 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 30-Oct-2023 17:55:13.222 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 30-Oct-2023 17:55:13.360 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:13.360 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:13.566 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-37169"] 30-Oct-2023 17:55:13.736 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-37169"] 30-Oct-2023 17:55:13.740 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:13.775 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-37169"] 30-Oct-2023 17:55:13.786 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-37169"] 30-Oct-2023 17:55:13.794 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 30-Oct-2023 17:55:13.804 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 30-Oct-2023 17:55:13.813 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:13.813 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:13.820 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-46433"] 30-Oct-2023 17:55:13.852 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-46433"] 30-Oct-2023 17:55:13.853 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:13.869 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-46433"] 30-Oct-2023 17:55:13.871 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-46433"] 30-Oct-2023 17:55:13.874 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 30-Oct-2023 17:55:13.875 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 30-Oct-2023 17:55:13.875 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 30-Oct-2023 17:55:13.883 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 30-Oct-2023 17:55:13.931 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:13.931 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.038 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 30-Oct-2023 17:55:14.170 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-46159"] 30-Oct-2023 17:55:14.182 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-46159"] 30-Oct-2023 17:55:14.183 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.196 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-46159"] 30-Oct-2023 17:55:14.197 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-46159"] 30-Oct-2023 17:55:14.200 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 30-Oct-2023 17:55:14.201 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 30-Oct-2023 17:55:14.206 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:14.206 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.213 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36177"] 30-Oct-2023 17:55:14.214 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36177"] 30-Oct-2023 17:55:14.217 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.219 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36177"] 30-Oct-2023 17:55:14.219 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-36177"] 30-Oct-2023 17:55:14.222 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 30-Oct-2023 17:55:14.223 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 30-Oct-2023 17:55:14.226 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:14.226 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.233 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-39247"] 30-Oct-2023 17:55:14.237 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-39247"] 30-Oct-2023 17:55:14.240 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.242 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-39247"] 30-Oct-2023 17:55:14.243 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-39247"] 30-Oct-2023 17:55:14.245 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 30-Oct-2023 17:55:14.246 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 30-Oct-2023 17:55:14.247 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 30-Oct-2023 17:55:14.248 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 30-Oct-2023 17:55:14.253 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:14.254 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.259 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43533"] 30-Oct-2023 17:55:14.263 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43533"] 30-Oct-2023 17:55:14.264 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.266 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43533"] 30-Oct-2023 17:55:14.267 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-43533"] 30-Oct-2023 17:55:14.270 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 30-Oct-2023 17:55:14.271 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 30-Oct-2023 17:55:14.276 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:14.276 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.281 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-46221"] 30-Oct-2023 17:55:14.285 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-46221"] 30-Oct-2023 17:55:14.286 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.287 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-46221"] 30-Oct-2023 17:55:14.288 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-46221"] 30-Oct-2023 17:55:14.293 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 30-Oct-2023 17:55:14.294 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 30-Oct-2023 17:55:14.296 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:14.296 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.299 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41921"] 30-Oct-2023 17:55:14.302 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41921"] 30-Oct-2023 17:55:14.302 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.304 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41921"] 30-Oct-2023 17:55:14.304 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41921"] 30-Oct-2023 17:55:14.310 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 30-Oct-2023 17:55:14.312 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 30-Oct-2023 17:55:14.314 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:14.314 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.320 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34291"] 30-Oct-2023 17:55:14.328 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34291"] 30-Oct-2023 17:55:14.334 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.336 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34291"] 30-Oct-2023 17:55:14.337 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-34291"] 30-Oct-2023 17:55:14.341 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 30-Oct-2023 17:55:14.342 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 30-Oct-2023 17:55:14.342 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 30-Oct-2023 17:55:14.343 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 30-Oct-2023 17:55:14.345 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:14.345 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.349 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37129"] 30-Oct-2023 17:55:14.353 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37129"] 30-Oct-2023 17:55:14.355 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.357 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37129"] 30-Oct-2023 17:55:14.357 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-37129"] 30-Oct-2023 17:55:14.359 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 30-Oct-2023 17:55:14.360 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 30-Oct-2023 17:55:14.362 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:14.362 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.365 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-40629"] 30-Oct-2023 17:55:14.377 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-40629"] 30-Oct-2023 17:55:14.377 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.379 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-40629"] 30-Oct-2023 17:55:14.380 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-40629"] 30-Oct-2023 17:55:14.386 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 30-Oct-2023 17:55:14.387 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 30-Oct-2023 17:55:14.389 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Oct-2023 17:55:14.389 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.16-dev] 30-Oct-2023 17:55:14.393 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-33471"] 30-Oct-2023 17:55:14.395 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-33471"] 30-Oct-2023 17:55:14.396 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Oct-2023 17:55:14.397 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-33471"] 30-Oct-2023 17:55:14.398 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-33471"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.449 sec Testcase: testUseContentTypeExpiresConfiguration took 0.08 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.324 sec Testcase: testConfiguration took 0.021 sec Testcase: testNullContentType took 0.023 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.001 sec Testcase: testUseDefaultConfiguration1 took 0.024 sec Testcase: testUseDefaultConfiguration2 took 0.023 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.017 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.031 sec Testcase: testIntsToCommaDelimitedString took 0.001 sec Testcase: testSkipBecauseExpiresIsDefined took 0.017 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.027 sec Testcase: testEmptyContent took 0.014 sec