-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mosip 39047 - Commons cleanup (#813)
* MOSIP-39719 Signed-off-by: Nandhukumar <[email protected]> * MOSIP-39047 Signed-off-by: Nandhukumar <[email protected]> * MOSIP-39047 Signed-off-by: Nandhukumar <[email protected]> * MOSIP-39047 Signed-off-by: Nandhukumar <[email protected]> * MOSIP-39047 Signed-off-by: Nandhukumar <[email protected]> * MOSIP-39047 Signed-off-by: Nandhukumar <[email protected]> --------- Signed-off-by: Nandhukumar <[email protected]>
- Loading branch information
1 parent
354422d
commit ff087cb
Showing
15 changed files
with
52 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
import org.testng.internal.TestResult; | ||
|
||
import io.mosip.testrig.apirig.dbaccess.AuditDBManager; | ||
import io.mosip.testrig.apirig.dbaccess.DBManager; | ||
import io.mosip.testrig.apirig.dto.OutputValidationDto; | ||
import io.mosip.testrig.apirig.dto.TestCaseDTO; | ||
import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; | ||
|
@@ -36,7 +37,7 @@ | |
import io.mosip.testrig.apirig.utils.OutputValidationUtil; | ||
import io.restassured.response.Response; | ||
|
||
public class PreregAuditValidator extends AdminTestUtil implements ITest { | ||
public class PreregAuditValidator extends PreRegUtil implements ITest { | ||
private static final Logger logger = Logger.getLogger(PreregAuditValidator.class); | ||
protected String testCaseName = ""; | ||
public static List<String> templateFields = new ArrayList<>(); | ||
|
@@ -86,7 +87,7 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad | |
+ "[email protected]" + "'"; | ||
|
||
logger.info(query); | ||
Map<String, Object> response = AuditDBManager.executeQueryAndGetRecord(testCaseDTO.getRole(), query); | ||
Map<String, Object> response = DBManager.executeQueryAndGetRecord(testCaseDTO.getRole(), query); | ||
|
||
Map<String, List<OutputValidationDto>> objMap = new HashMap<>(); | ||
List<OutputValidationDto> objList = new ArrayList<>(); | ||
|
@@ -117,7 +118,7 @@ public void setResultTestName(ITestResult result) { | |
+ "[email protected]" + "'"; | ||
|
||
logger.info(deleteQuery); | ||
AuditDBManager.executeQueryAndDeleteRecord("audit", deleteQuery); | ||
DBManager.executeQueryAndDeleteRecord("audit", deleteQuery); | ||
try { | ||
Field method = TestResult.class.getDeclaredField("m_method"); | ||
method.setAccessible(true); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters