Skip to content

testResponseCachingMaxAge

(from org.openspcoop2.protocol.trasparente.testsuite.units.rest.response_caching.ResponseCachingPortaDelegata took 14 sec)

PASS

Test Name: Ant test
Suite Name: Ant suite

Group(s): ResponseCaching, ResponseCachingPortaDelegata, ResponseCachingPortaDelegata.REST.maxAge, ResponseCachingPortaDelegata.REST

Value
Parameter #1Pragma
Parameter #2max-age=10


[Method Execution Trend Chart]

Reporter Output

URL: http://localhost:8080/govway/api/out/ResponseCaching/service/echo?destFile=/etc/govway/testfiles/HelloWorld.json&returnHttpHeader=ProvaHeaderResponse:TEST_RESPONSE&testId=rc-1734800952125-308&destFileContentType=application/json&checkEqualsHttpMethod=GET
Atteso [200] ritornato [200], raccolgo id ...
Headers: ([GovWay-Service, Server, GovWay-Version, GovWay-Provider, GovWay-Version-Info, GovWay-Message-ID, Content-Type, Keep-Alive, Transfer-Encoding, GovWay-Provider-Type, GovWay-Transaction-ID, ReturnCode, GovWay-Action, X-Content-Type-Options, GovWay-TestSuite, GovWay-Service-Version, Connection, Pragma, GovWay-Service-Type, Date, Cache-Control, GovWay-Sender, Vary, Expires, GovWay-TestSuite-Description, ProvaHeaderResponse, GovWay-Sender-Type])
Leggo id da header [GovWay-Message-ID]
Ricevuto id [c22f0439-bfbd-11ef-b61e-060730329b56]
[c22f0439-bfbd-11ef-b61e-060730329b56] Atteso [200] ritornato [200]
[c22f0439-bfbd-11ef-b61e-060730329b56] Atteso Header [ProvaHeaderResponse] con valore atteso [TEST_RESPONSE] e valore ritornato [TEST_RESPONSE]
Non atteso header 'GovWay-CacheKey', non trovato
URL: http://localhost:8080/govway/api/out/ResponseCaching/service/echo?destFile=/etc/govway/testfiles/HelloWorld.json&returnHttpHeader=ProvaHeaderResponse:TEST_RESPONSE&testId=rc-1734800952125-308&destFileContentType=application/json&checkEqualsHttpMethod=GET
Atteso [200] ritornato [200], raccolgo id ...
Headers: ([GovWay-Service, Server, GovWay-Version, GovWay-Provider, GovWay-Version-Info, GovWay-Message-ID, Content-Type, Keep-Alive, Transfer-Encoding, GovWay-Provider-Type, GovWay-Transaction-ID, ReturnCode, GovWay-Action, X-Content-Type-Options, GovWay-TestSuite, GovWay-Service-Version, Connection, Pragma, GovWay-Service-Type, Date, Cache-Control, GovWay-Sender, Vary, GovWay-CacheKey, Expires, GovWay-TestSuite-Description, ProvaHeaderResponse, GovWay-Sender-Type])
Leggo id da header [GovWay-Message-ID]
Ricevuto id [c2c37c0e-bfbd-11ef-b61e-060730329b56]
[c2c37c0e-bfbd-11ef-b61e-060730329b56] Atteso [200] ritornato [200]
[c2c37c0e-bfbd-11ef-b61e-060730329b56] Atteso Header [ProvaHeaderResponse] con valore atteso [TEST_RESPONSE] e valore ritornato [TEST_RESPONSE]
Atteso header 'GovWay-CacheKey', trovato con valore: [c2c2b8ba-bfbd-11ef-b61e-060730329b56]
Trovato cache key [c2c2b8ba-bfbd-11ef-b61e-060730329b56]
URL: http://localhost:8080/govway/api/out/ResponseCaching/service/echo?destFile=/etc/govway/testfiles/HelloWorld.json&returnHttpHeader=ProvaHeaderResponse:TEST_RESPONSE&testId=rc-1734800952125-308&destFileContentType=application/json&checkEqualsHttpMethod=GET
Atteso [200] ritornato [200], raccolgo id ...
Headers: ([GovWay-Service, Server, GovWay-Version, GovWay-Provider, GovWay-Version-Info, GovWay-Message-ID, Content-Type, Keep-Alive, Transfer-Encoding, GovWay-Provider-Type, GovWay-Transaction-ID, ReturnCode, GovWay-Action, X-Content-Type-Options, GovWay-TestSuite, GovWay-Service-Version, Connection, Pragma, GovWay-Service-Type, Date, Cache-Control, GovWay-Sender, Vary, GovWay-CacheKey, Expires, GovWay-TestSuite-Description, ProvaHeaderResponse, GovWay-Sender-Type])
Leggo id da header [GovWay-Message-ID]
Ricevuto id [c36cdb78-bfbd-11ef-b61e-060730329b56]
[c36cdb78-bfbd-11ef-b61e-060730329b56] Atteso [200] ritornato [200]
[c36cdb78-bfbd-11ef-b61e-060730329b56] Atteso Header [ProvaHeaderResponse] con valore atteso [TEST_RESPONSE] e valore ritornato [TEST_RESPONSE]
Atteso header 'GovWay-CacheKey', trovato con valore: [c2c2b8ba-bfbd-11ef-b61e-060730329b56]
Terza invocazione, trovato cache key [c2c2b8ba-bfbd-11ef-b61e-060730329b56]