Skip to content

Commit

Permalink
MOSIP-36555 - Removed the OTPListener initializing and cleaned up (#932)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohanachandran S <[email protected]>
  • Loading branch information
mohanachandran-s authored Oct 16, 2024
1 parent 2a9db73 commit dbf1a53
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit dbf1a53

Please sign in to comment.