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