[ 
https://issues.apache.org/jira/browse/SLING-10860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Hoh closed SLING-10860.
-----------------------------

> ServerErrorRetryStrategy should not retry if the code is expected
> -----------------------------------------------------------------
>
>                 Key: SLING-10860
>                 URL: https://issues.apache.org/jira/browse/SLING-10860
>             Project: Sling
>          Issue Type: Bug
>          Components: Apache Sling Testing Clients
>    Affects Versions: Apache Sling Testing Clients 2.0.10
>            Reporter: Thierry Ygé
>            Priority: Major
>             Fix For: Apache Sling Testing Clients 3.0.6
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to