mirror of
https://github.com/valitydev/three-ds-server-storage.git
synced 2024-11-06 00:15:16 +00:00
BJ-967: temporary comment Retryable policy (#5)
This commit is contained in:
parent
a44e2abee7
commit
9f80396802
@ -8,10 +8,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.retry.annotation.Backoff;
|
||||
import org.springframework.retry.annotation.Retryable;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.client.RestClientResponseException;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
@Slf4j
|
||||
@ -24,13 +21,13 @@ public class ThreeDsServerClient {
|
||||
@Value("${client.three-ds-server.url}")
|
||||
private String url;
|
||||
|
||||
@Retryable(
|
||||
value = {
|
||||
RestClientResponseException.class,
|
||||
MessageTypeException.class
|
||||
},
|
||||
backoff = @Backoff(delayExpression = "#{${client.retry.delay-ms}}"),
|
||||
maxAttemptsExpression = "#{${client.retry.max-attempts}}")
|
||||
// @Retryable(
|
||||
// value = {
|
||||
// RestClientResponseException.class,
|
||||
// MessageTypeException.class
|
||||
// },
|
||||
// backoff = @Backoff(delayExpression = "#{${client.retry.delay-ms}}"),
|
||||
// maxAttemptsExpression = "#{${client.retry.max-attempts}}")
|
||||
public RBKMoneyPreparationResponse preparationFlow(RBKMoneyPreparationRequest request) {
|
||||
log.info("Request: {}", request);
|
||||
|
||||
|
@ -67,7 +67,7 @@ public class PreparationFlowServiceTest extends AbstractDaoConfig {
|
||||
assertThat(cardRanges).hasSize(20);
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
public void shouldRetryOnException() throws IOException {
|
||||
/* Given:
|
||||
- first stub will answer with 500 status code
|
||||
|
Loading…
Reference in New Issue
Block a user