marcpf opened a new pull request, #42:
URL: https://github.com/apache/sling-org-apache-sling-testing-clients/pull/42

   https://issues.apache.org/jira/browse/SLING-11748
   
   Proposal for improving the HTTP retry log output in the testing clients.
   
   Current Output (from unit test):
   ```
   Request retry needed due to service unavailable response
   Response headers contained:
   Header Date:Wed, 11 Jan 2023 08:36:43 GMT
   Header Server:TEST/1.1
   Header Content-Length:8
   Header Content-Type:text/plain; charset=ISO-8859-1
   Header Connection:Keep-Alive
   Response content: TEST_NOK
   ```
   
   Proposed output with this PR (from unit test):
   ```
   Request retry condition met: [count=1/4], [expected-codes=[200]], 
[retry-codes=[500, 503]]
   Request: GET /test/internalerror/resource HTTP/1.1 [Host: 127.0.0.1:32953, 
Connection: Keep-Alive, User-Agent: Java, Accept-Encoding: gzip,deflate, 
Authorization: Basic dXNlcjpwYXNz]
   Response: HTTP/1.1 500 Internal Server Error [Date: Wed, 11 Jan 2023 
08:39:59 GMT, Server: TEST/1.1, Content-Length: 8, Content-Type: text/plain; 
charset=ISO-8859-1, Connection: Keep-Alive, ]
   Response Body: TEST_NOK
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@sling.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to