Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Apache Sling Testing Clients 2.0.10
-
None
Description
Currently the ServerErrorRetryStrategy would retry for the list of error codes or if not defined default for 500 and above.
Let say you have a a test that expect a 500 or any other code define in the list of error codes.
client.doGet("someurl", 500);
That will then retry a number of time, while in fact this code is expected to happen, so in that case it should not retry.
Since we have control on the "http" context parameter, the expected status codes could be passed in that object , and so used to decide or not if we need a retry too.