Skip to content

Commit

Permalink
[PPD-238]: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini authored and aacitelli committed Jul 14, 2022
1 parent 38ccffd commit 6cc7fc1
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ServiceRef {
@NotBlank(message = "iban is required")
private String iban;

@NotBlank
@NotBlank(message = "segregation code is required")
private String segregationCode;

private String postalIban;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
@FeignClient(value = "gpd", url = "${service.gpd.host}", configuration = FeignConfig.class)
public interface GpdClient {

@Retryable(exclude = FeignException.FeignClientException.class, maxAttemptsExpression = "${retry.maxAttempts}",
backoff = @Backoff(delayExpression = "${retry.maxDelay}"))
@Retryable(exclude = FeignException.FeignClientException.class, maxAttemptsExpression = "${retry.gpd.maxAttempts}",
backoff = @Backoff(delayExpression = "${retry.gpd.maxDelay}"))
@GetMapping(value = "/organizations/{organizationfiscalcode}/debtpositions")
PaymentPositionModel createDebtPosition(@PathVariable("organizationfiscalcode") String organizationFiscalCode,
@RequestBody PaymentPositionModel paymentPositionModel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
@FeignClient(value = "iuvgenerator", url = "${service.iuv.generator.host}", configuration = FeignConfig.class)
public interface IuvGeneratorClient {

@Retryable(exclude = FeignException.FeignClientException.class, maxAttemptsExpression = "${retry.iuv.generator.maxAttempts}",
backoff = @Backoff(delayExpression = "${retry.iuv.generator.maxDelay}"))
@Retryable(exclude = FeignException.FeignClientException.class, maxAttemptsExpression = "${retry.iuv-generator.maxAttempts}",
backoff = @Backoff(delayExpression = "${retry.iuv-generator.maxDelay}"))
@GetMapping(value = "/organizations/{organizationfiscalcode}/iuv")
IuvGenerationModelResponse generateIUV(@PathVariable("organizationfiscalcode") String organizationFiscalCode,
@RequestBody IuvGenerationModel paymentPositionModel);
Expand Down
10 changes: 3 additions & 7 deletions src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ service.aux.digit=3
feign.client.config.default.connect-timeout=1000
feign.client.config.default.read-timeout=1000

<<<<<<< HEAD
# Retry configuration
=======
# retry configuration
>>>>>>> branch 'PPD-238-call-iuv-generator' of https://github.com/pagopa/pagopa-spontaneous-payments
retry.gpd.maxAttempts=1
retry.gpd.maxDelay=200
retry.iuv.generator.maxAttempts=1
retry.iuv.generator.maxDelay=200
retry.iuv-generator.maxAttempts=1
retry.iuv-generator.maxDelay=200

# logging level settings
logging.level.root=INFO
logging.level.it.gov.pagopa.spontaneouspayment=INFO
logging.level.it.gov.pagopa.spontaneouspayment=INFO
6 changes: 3 additions & 3 deletions src/main/resources/application-local.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ feign.client.config.default.read-timeout=1000
# Retry configuration
retry.gpd.maxAttempts=1
retry.gpd.maxDelay=200
retry.iuv.generator.maxAttempts=1
retry.iuv.generator.maxDelay=200
retry.iuv-generator.maxAttempts=1
retry.iuv-generator.maxDelay=200

# Logging Level settings
logging.level.root=INFO
logging.level.it.gov.pagopa.spontaneouspayment=INFO
logging.level.it.gov.pagopa.spontaneouspayment=INFO
4 changes: 2 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ feign.client.config.default.read-timeout=${CONNECTION_TIMEOUT}
# Retry configuration
retry.gpd.maxAttempts=${RETRY_GPD_MAX_ATTEMPTS}
retry.gpd.maxDelay=${RETRY_GPD_MAX_DELAY}
retry.iuv.generator.maxAttempts=${RETRY_IUV_GENERATOR_MAX_ATTEMPTS}
retry.iuv.generator.maxDelay=${RETRY_IUV_GENERATOR_MAX_DELAY}
retry.iuv-generator.maxAttempts=${RETRY_IUV_GENERATOR_MAX_ATTEMPTS}
retry.iuv-generator.maxDelay=${RETRY_IUV_GENERATOR_MAX_DELAY}

# Logging Level settings
logging.level.root=${LOGGING_LEVEL}
Expand Down
14 changes: 12 additions & 2 deletions src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,19 @@ feign.client.config.default.connect-timeout=1000
feign.client.config.default.read-timeout=1000

# retry configuration
retry.maxAttempts=1
retry.maxDelay=200
retry.gpd.maxAttempts=1
retry.gpd.maxDelay=200
retry.iuv-generator.maxAttempts=1
retry.iuv-generator.maxDelay=200

# logging level settings
logging.level.root=INFO
logging.level.it.gov.pagopa.spontaneouspayment=INFO

# Actuator
management.endpoints.web.exposure.include=health,info
management.endpoints.jmx.exposure.include=health,info
management.info.env.enabled=true
management.endpoint.health.probes.enabled=true
management.health.livenessState.enabled=true
management.health.readinessState.enabled=true

0 comments on commit 6cc7fc1

Please sign in to comment.