Skip to content

Commit

Permalink
Merge pull request #43 from pagopa/removing-touchpoints-removal
Browse files Browse the repository at this point in the history
removing touchpoint removal from integration tests
  • Loading branch information
FedericoRuzzier authored Jul 3, 2024
2 parents 69cdbf2 + b727614 commit 2191f0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions integration-test/src/step_definitions/support/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
});
});
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -12,6 +14,7 @@ public MarketPlaceTrigger(MarketPlaceClient marketPlaceClient) {

@Override
public void run() {
log.info("schedule task started: refresh configuration");
marketPlaceClient.getConfiguration();
}
}
2 changes: 0 additions & 2 deletions src/main/java/it/gov/pagopa/afm/utils/task/SchedulerTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SchedulerTask {

@Autowired private ThreadPoolTaskScheduler taskScheduler;
Expand All @@ -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);
Expand Down

0 comments on commit 2191f0c

Please sign in to comment.