From 7dde6062a026f6015c56d4a5689fe79cf6d9e9c3 Mon Sep 17 00:00:00 2001 From: FedericoRuzzier <49512050+FedericoRuzzier@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:51:15 +0200 Subject: [PATCH 1/2] removing toucxhpoint removal from integration tests --- integration-test/src/step_definitions/support/steps.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/integration-test/src/step_definitions/support/steps.js b/integration-test/src/step_definitions/support/steps.js index 773ba7f0..f0a1fe8d 100644 --- a/integration-test/src/step_definitions/support/steps.js +++ b/integration-test/src/step_definitions/support/steps.js @@ -56,11 +56,8 @@ Then(/^check statusCode is (\d+)$/, function(status) { // Asynchronous Promise AfterAll(async function() { - await dataStoreClient.deleteTestTouchPoints("touchpoints", "WISP", "WISP"); - await dataStoreClient.deleteTestTouchPoints("touchpoints", "IO", "IO"); - await dataStoreClient.deleteTestTouchPoints("touchpoints", "CHECKOUT", "CHECKOUT"); // the idPsp is the one in the test ./config/cdis.json file await dataStoreClient.deleteTestDataByIdPsp("bundles", "IDPSPINTTEST01", "IDPSPINTTEST01"); await dataStoreClient.deleteTestDataByIdPsp("cdis", "IDPSPINTTEST01", "IDPSPINTTEST01"); return Promise.resolve() -}); \ No newline at end of file +}); From a981326bf2684dd53cbffc44f8c1391a1a6473bb Mon Sep 17 00:00:00 2001 From: FedericoRuzzier <49512050+FedericoRuzzier@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:10:13 +0200 Subject: [PATCH 2/2] adding log to schedule job --- .../java/it/gov/pagopa/afm/utils/task/MarketPlaceTrigger.java | 3 +++ src/main/java/it/gov/pagopa/afm/utils/task/SchedulerTask.java | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/gov/pagopa/afm/utils/task/MarketPlaceTrigger.java b/src/main/java/it/gov/pagopa/afm/utils/task/MarketPlaceTrigger.java index ba8f53df..0784ee7a 100644 --- a/src/main/java/it/gov/pagopa/afm/utils/task/MarketPlaceTrigger.java +++ b/src/main/java/it/gov/pagopa/afm/utils/task/MarketPlaceTrigger.java @@ -1,7 +1,9 @@ package it.gov.pagopa.afm.utils.task; import it.gov.pagopa.afm.utils.service.MarketPlaceClient; +import lombok.extern.slf4j.Slf4j; +@Slf4j public class MarketPlaceTrigger implements Runnable { private final MarketPlaceClient marketPlaceClient; @@ -12,6 +14,7 @@ public MarketPlaceTrigger(MarketPlaceClient marketPlaceClient) { @Override public void run() { + log.info("schedule task started: refresh configuration"); marketPlaceClient.getConfiguration(); } } diff --git a/src/main/java/it/gov/pagopa/afm/utils/task/SchedulerTask.java b/src/main/java/it/gov/pagopa/afm/utils/task/SchedulerTask.java index 6d3af1ff..6c9da085 100644 --- a/src/main/java/it/gov/pagopa/afm/utils/task/SchedulerTask.java +++ b/src/main/java/it/gov/pagopa/afm/utils/task/SchedulerTask.java @@ -10,7 +10,6 @@ import org.springframework.stereotype.Component; @Component -@Slf4j public class SchedulerTask { @Autowired private ThreadPoolTaskScheduler taskScheduler; @@ -21,7 +20,6 @@ public class SchedulerTask { @PostConstruct public void scheduleRunnableWithCronTrigger() { - log.info("schedule task started: refresh configuration"); MarketPlaceTrigger marketPlaceTrigger = new MarketPlaceTrigger(marketPlaceClient); taskScheduler.schedule(marketPlaceTrigger, cronTrigger);