Testsuite: org.apache.catalina.filters.TestExpiresFilter Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.244 sec ------------- Standard Output --------------- Keep-Alive: timeout=3 ETag: W/"1934-1269208821000" Connection: keep-alive Date: Fri, 06 Oct 2023 11:54:50 GMT Keep-Alive: timeout=3 Cache-Control: max-age=180 Connection: keep-alive Expires: Fri, 06 Oct 2023 11:57:50 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 11:54:50 GMT Content-Type: text/xml;charset=utf-8 Date: Fri, 06 Oct 2023 11:54:50 GMT Expires: Fri, 06 Oct 2023 12:01:51 GMT Keep-Alive: timeout=3 ETag: W/"971-1696591984627" 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 11:55:51 GMT Content-Length: 0 Date: Fri, 06 Oct 2023 11:54:50 GMT Keep-Alive: timeout=3 Cache-Control: max-age=60 Connection: keep-alive Expires: Fri, 06 Oct 2023 11:55:51 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 11:54:50 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 11:55:51 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 11:54:50 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 12:01:51 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 11:54:50 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 11:54:50 GMT Content-Type: text/xml;charset=utf-8 Keep-Alive: timeout=3 Connection: keep-alive Expires: Fri, 06 Oct 2023 11:54:51 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 11:54:50 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 11:59:51 GMT Content-Length: 11 Date: Fri, 06 Oct 2023 11:54:50 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 12:01:51 GMT Content-Length: 0 Date: Fri, 06 Oct 2023 11:54:50 GMT Content-Type: text/plain ------------- ---------------- --------------- ------------- Standard Error ----------------- 06-Oct-2023 11:54:49.752 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testExcludedResponseStatusCode] 06-Oct-2023 11:54:50.461 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 06-Oct-2023 11:54:50.566 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:50.567 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:50.693 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36041"] 06-Oct-2023 11:54:50.829 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36041"] 06-Oct-2023 11:54:50.832 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:50.858 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36041"] 06-Oct-2023 11:54:50.862 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-36041"] 06-Oct-2023 11:54:50.881 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeExpiresConfiguration] 06-Oct-2023 11:54:50.890 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 06-Oct-2023 11:54:50.935 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:50.935 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:50.969 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-39901"] 06-Oct-2023 11:54:50.978 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-39901"] 06-Oct-2023 11:54:50.979 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:50.982 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-39901"] 06-Oct-2023 11:54:50.983 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-39901"] 06-Oct-2023 11:54:50.989 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationCombinedDuration] 06-Oct-2023 11:54:50.991 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 06-Oct-2023 11:54:50.997 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testBug63909] 06-Oct-2023 11:54:51.007 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 06-Oct-2023 11:54:51.030 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.031 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.070 INFO [main] org.apache.catalina.startup.ContextConfig.getDefaultWebXmlFragment No global web.xml found 06-Oct-2023 11:54:51.244 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40651"] 06-Oct-2023 11:54:51.278 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40651"] 06-Oct-2023 11:54:51.281 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.296 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40651"] 06-Oct-2023 11:54:51.297 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-40651"] 06-Oct-2023 11:54:51.300 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testConfiguration] 06-Oct-2023 11:54:51.302 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 06-Oct-2023 11:54:51.384 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.384 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.396 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33959"] 06-Oct-2023 11:54:51.408 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33959"] 06-Oct-2023 11:54:51.409 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.411 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33959"] 06-Oct-2023 11:54:51.412 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-33959"] 06-Oct-2023 11:54:51.414 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testNullContentType] 06-Oct-2023 11:54:51.417 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 06-Oct-2023 11:54:51.428 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.428 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.435 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-43003"] 06-Oct-2023 11:54:51.441 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-43003"] 06-Oct-2023 11:54:51.442 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.450 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-43003"] 06-Oct-2023 11:54:51.450 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-43003"] 06-Oct-2023 11:54:51.456 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testParseExpiresConfigurationMonoDuration] 06-Oct-2023 11:54:51.457 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 06-Oct-2023 11:54:51.461 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration1] 06-Oct-2023 11:54:51.464 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 06-Oct-2023 11:54:51.479 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.479 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.485 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44225"] 06-Oct-2023 11:54:51.490 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44225"] 06-Oct-2023 11:54:51.492 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.495 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44225"] 06-Oct-2023 11:54:51.496 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-44225"] 06-Oct-2023 11:54:51.499 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseDefaultConfiguration2] 06-Oct-2023 11:54:51.501 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 06-Oct-2023 11:54:51.510 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.510 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.532 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-41369"] 06-Oct-2023 11:54:51.542 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-41369"] 06-Oct-2023 11:54:51.543 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.545 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-41369"] 06-Oct-2023 11:54:51.546 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-41369"] 06-Oct-2023 11:54:51.562 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseMajorTypeExpiresConfiguration] 06-Oct-2023 11:54:51.564 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-10"] 06-Oct-2023 11:54:51.638 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.638 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.644 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41575"] 06-Oct-2023 11:54:51.648 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41575"] 06-Oct-2023 11:54:51.651 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.653 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41575"] 06-Oct-2023 11:54:51.654 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-10-41575"] 06-Oct-2023 11:54:51.656 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseCacheControlMaxAgeIsDefined] 06-Oct-2023 11:54:51.658 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-11"] 06-Oct-2023 11:54:51.660 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.660 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.668 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39057"] 06-Oct-2023 11:54:51.672 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39057"] 06-Oct-2023 11:54:51.675 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.677 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39057"] 06-Oct-2023 11:54:51.678 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-11-39057"] 06-Oct-2023 11:54:51.681 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testIntsToCommaDelimitedString] 06-Oct-2023 11:54:51.682 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-12"] 06-Oct-2023 11:54:51.683 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSkipBecauseExpiresIsDefined] 06-Oct-2023 11:54:51.685 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-13"] 06-Oct-2023 11:54:51.688 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.688 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.693 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-13-45591"] 06-Oct-2023 11:54:51.702 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-13-45591"] 06-Oct-2023 11:54:51.705 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.707 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-13-45591"] 06-Oct-2023 11:54:51.707 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-13-45591"] 06-Oct-2023 11:54:51.710 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testUseContentTypeWithoutCharsetExpiresConfiguration] 06-Oct-2023 11:54:51.712 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-14"] 06-Oct-2023 11:54:51.716 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.716 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.721 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35649"] 06-Oct-2023 11:54:51.725 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35649"] 06-Oct-2023 11:54:51.728 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.730 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35649"] 06-Oct-2023 11:54:51.730 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-14-35649"] 06-Oct-2023 11:54:51.733 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEmptyContent] 06-Oct-2023 11:54:51.735 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-15"] 06-Oct-2023 11:54:51.742 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 06-Oct-2023 11:54:51.742 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 06-Oct-2023 11:54:51.747 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46261"] 06-Oct-2023 11:54:51.750 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46261"] 06-Oct-2023 11:54:51.751 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 06-Oct-2023 11:54:51.753 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46261"] 06-Oct-2023 11:54:51.754 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-15-46261"] ------------- ---------------- --------------- Testcase: testExcludedResponseStatusCode took 1.3 sec Testcase: testUseContentTypeExpiresConfiguration took 0.106 sec Testcase: testParseExpiresConfigurationCombinedDuration took 0.009 sec Testcase: testBug63909 took 0.304 sec Testcase: testConfiguration took 0.114 sec Testcase: testNullContentType took 0.04 sec Testcase: testParseExpiresConfigurationMonoDuration took 0.006 sec Testcase: testUseDefaultConfiguration1 took 0.037 sec Testcase: testUseDefaultConfiguration2 took 0.064 sec Testcase: testUseMajorTypeExpiresConfiguration took 0.093 sec Testcase: testSkipBecauseCacheControlMaxAgeIsDefined took 0.025 sec Testcase: testIntsToCommaDelimitedString took 0.002 sec Testcase: testSkipBecauseExpiresIsDefined took 0.027 sec Testcase: testUseContentTypeWithoutCharsetExpiresConfiguration took 0.023 sec Testcase: testEmptyContent took 0.022 sec