From dbf1a53ce204b98a0428a98e48d3f6bd6ee0fcbb Mon Sep 17 00:00:00 2001 From: Mohanachandran S <165888272+mohanachandran-s@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:15:52 +0530 Subject: [PATCH] MOSIP-36555 - Removed the OTPListener initializing and cleaned up (#932) Signed-off-by: Mohanachandran S --- .../apirig/testrunner/MosipTestRunner.java | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java index aa0a53ff52..d3c41d6c7e 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java @@ -93,19 +93,15 @@ public static void main(String[] arg) { LOGGER.error("Exception " + e.getMessage()); } - OTPListener.bTerminate = true; - if (BaseTestCase.isTargetEnvLTS()) HealthChecker.bTerminate = true; - if (BaseTestCase.listOfModules.contains("partner")) { - DBManager.executeDBQueries(PMSConfigManger.getPMSDbUrl(), PMSConfigManger.getPMSDbUser(), - PMSConfigManger.getPMSDbPass(), PMSConfigManger.getPMSDbSchema(), - getGlobalResourcePath() + "/" + "config/pmsDataDeleteQueries.txt"); - DBManager.executeDBQueries(PMSConfigManger.getKMDbUrl(), PMSConfigManger.getKMDbUser(), - PMSConfigManger.getKMDbPass(), PMSConfigManger.getKMDbSchema(), - getGlobalResourcePath() + "/" + "config/keyManagerDataDeleteQueries.txt"); - } + DBManager.executeDBQueries(PMSConfigManger.getPMSDbUrl(), PMSConfigManger.getPMSDbUser(), + PMSConfigManger.getPMSDbPass(), PMSConfigManger.getPMSDbSchema(), + getGlobalResourcePath() + "/" + "config/pmsDataDeleteQueries.txt"); + DBManager.executeDBQueries(PMSConfigManger.getKMDbUrl(), PMSConfigManger.getKMDbUser(), + PMSConfigManger.getKMDbPass(), PMSConfigManger.getKMDbSchema(), + getGlobalResourcePath() + "/" + "config/keyManagerDataDeleteQueries.txt"); System.exit(0); @@ -134,8 +130,6 @@ public static void suiteSetup(String runType) { BaseTestCase.currentModule = "partner"; BaseTestCase.setReportName("partner"); AdminTestUtil.copyPartnerTestResource(); - BaseTestCase.otpListener = new OTPListener(); - BaseTestCase.otpListener.run(); } private static void setLogLevels() {