Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.096 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Fri, 06 Oct 2023 14:01:41 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Fri, 06 Oct 2023 14:04:41 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 14:01:41 GMT Content-Type: text/xml;charset=utf-8 Date: Fri, 06 Oct 2023 14:01:41 GMT Expires: Fri, 06 Oct 2023 14:08:42 GMT Keep-Alive: timeout=3 ETag: W/"971-1696599609425" Connection: keep-alive Cache-Control: max-age=420 Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Fri, 06 Oct 2023 14:02:42 GMT Content-Length: 0 Date: Fri, 06 Oct 2023 14:01:41 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Fri, 06 Oct 2023 14:02:42 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 14:01:41 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: private, max-age=60 Connection: keep-alive Expires: Fri, 06 Oct 2023 14:02:42 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 14:01:41 GMT Content-Type: image/jpeg;charset=ISO-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Fri, 06 Oct 2023 14:08:42 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 14:01:41 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: Fri, 06 Oct 2023 14:01:41 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Fri, 06 Oct 2023 14:01:42 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 14:01:41 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Cache-Control: max-age=300 Connection: keep-alive Expires: Fri, 06 Oct 2023 14:06:42 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 14:01:41 GMT Content-Type: text/xml;charset=iso-8859-1 Keep-Alive: timeout=3 Cache-Control: max-age=420 Connection: keep-alive Expires: Fri, 06 Oct 2023 14:08:42 GMT Content-Length: 0 Date: Fri, 06 Oct 2023 14:01:41 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 06-Oct-2023 14:01:40.829 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 06-Oct-2023 14:01:41.469 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 06-Oct-2023 14:01:41.550 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:41.550 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:41.714 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33569"] 06-Oct-2023 14:01:41.830 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33569"] 06-Oct-2023 14:01:41.833 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:41.857 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33569"] 06-Oct-2023 14:01:41.860 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-33569"] 06-Oct-2023 14:01:41.869 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 06-Oct-2023 14:01:41.871 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 06-Oct-2023 14:01:41.878 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:41.878 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:41.901 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35055"] 06-Oct-2023 14:01:41.910 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35055"] 06-Oct-2023 14:01:41.912 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:41.914 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35055"] 06-Oct-2023 14:01:41.916 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-35055"] 06-Oct-2023 14:01:41.919 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 06-Oct-2023 14:01:41.921 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 06-Oct-2023 14:01:41.922 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 06-Oct-2023 14:01:41.936 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 06-Oct-2023 14:01:41.948 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:41.953 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:41.988 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 06-Oct-2023 14:01:42.144 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-42001"] 06-Oct-2023 14:01:42.151 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-42001"] 06-Oct-2023 14:01:42.152 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.166 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-42001"] 06-Oct-2023 14:01:42.167 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-42001"] 06-Oct-2023 14:01:42.171 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 06-Oct-2023 14:01:42.173 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 06-Oct-2023 14:01:42.192 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:42.192 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:42.198 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37725"] 06-Oct-2023 14:01:42.207 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37725"] 06-Oct-2023 14:01:42.210 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.212 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37725"] 06-Oct-2023 14:01:42.213 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-37725"] 06-Oct-2023 14:01:42.215 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 06-Oct-2023 14:01:42.217 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 06-Oct-2023 14:01:42.258 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:42.258 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:42.273 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-32869"] 06-Oct-2023 14:01:42.280 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-32869"] 06-Oct-2023 14:01:42.282 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.285 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-32869"] 06-Oct-2023 14:01:42.285 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-32869"] 06-Oct-2023 14:01:42.290 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 06-Oct-2023 14:01:42.291 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 06-Oct-2023 14:01:42.293 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 06-Oct-2023 14:01:42.297 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 06-Oct-2023 14:01:42.316 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:42.316 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:42.324 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-32859"] 06-Oct-2023 14:01:42.337 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-32859"] 06-Oct-2023 14:01:42.340 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.342 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-32859"] 06-Oct-2023 14:01:42.342 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-32859"] 06-Oct-2023 14:01:42.347 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 06-Oct-2023 14:01:42.349 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 06-Oct-2023 14:01:42.357 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:42.358 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:42.363 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-40113"] 06-Oct-2023 14:01:42.369 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-40113"] 06-Oct-2023 14:01:42.371 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.374 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-40113"] 06-Oct-2023 14:01:42.374 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-40113"] 06-Oct-2023 14:01:42.384 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 06-Oct-2023 14:01:42.386 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 06-Oct-2023 14:01:42.422 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:42.423 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:42.442 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33031"] 06-Oct-2023 14:01:42.457 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33031"] 06-Oct-2023 14:01:42.458 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.460 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33031"] 06-Oct-2023 14:01:42.461 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-33031"] 06-Oct-2023 14:01:42.465 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 06-Oct-2023 14:01:42.466 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 06-Oct-2023 14:01:42.477 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:42.477 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:42.492 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-35965"] 06-Oct-2023 14:01:42.502 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-35965"] 06-Oct-2023 14:01:42.505 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.509 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-35965"] 06-Oct-2023 14:01:42.513 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-35965"] 06-Oct-2023 14:01:42.516 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 06-Oct-2023 14:01:42.518 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 06-Oct-2023 14:01:42.518 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 06-Oct-2023 14:01:42.523 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 06-Oct-2023 14:01:42.568 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:42.569 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:42.580 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38155"] 06-Oct-2023 14:01:42.587 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38155"] 06-Oct-2023 14:01:42.590 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.592 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38155"] 06-Oct-2023 14:01:42.593 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-38155"] 06-Oct-2023 14:01:42.605 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 06-Oct-2023 14:01:42.607 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 06-Oct-2023 14:01:42.620 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:42.620 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:42.640 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41337"] 06-Oct-2023 14:01:42.651 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41337"] 06-Oct-2023 14:01:42.654 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.656 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41337"] 06-Oct-2023 14:01:42.657 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-41337"] 06-Oct-2023 14:01:42.660 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 06-Oct-2023 14:01:42.662 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 06-Oct-2023 14:01:42.665 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 14:01:42.665 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 14:01:42.670 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41341"] 06-Oct-2023 14:01:42.678 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41341"] 06-Oct-2023 14:01:42.678 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 14:01:42.680 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41341"] 06-Oct-2023 14:01:42.681 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-41341"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.224 sec Testcase: testUseContentTypeExpiresConfiguration took 0.051 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.002 sec Testcase: testBug63909 took 0.249 sec Testcase: testConfiguration took 0.043 sec Testcase: testNullContentType took 0.072 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.006 sec Testcase: testUseDefaultConfiguration1 took 0.053 sec Testcase: testUseDefaultConfiguration2 took 0.038 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.08 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.052 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.087 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.055 sec Testcase: testEmptyContent took 0.025 sec