-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #689 from jayesh12234/develop
INJIMOB-1399--Clear partners on boarded as part of run
- Loading branch information
Showing
5 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
...java/io/mosip/testrig/dslrig/ivv/e2e/methods/DeleteCertificatesAndOnboardingPartners.java
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.mosip.testrig.dslrig.ivv.e2e.methods; | ||
|
||
import org.apache.log4j.Level; | ||
import org.apache.log4j.Logger; | ||
|
||
import io.mosip.testrig.apirig.dbaccess.DBManager; | ||
import io.mosip.testrig.apirig.utils.ConfigManager; | ||
import io.mosip.testrig.dslrig.ivv.core.base.StepInterface; | ||
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError; | ||
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil; | ||
import io.mosip.testrig.dslrig.ivv.orchestrator.TestRunner; | ||
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager; | ||
|
||
public class DeleteCertificatesAndOnboardingPartners extends BaseTestCaseUtil implements StepInterface { | ||
public static Logger logger = Logger.getLogger(CheckRIDStage.class); | ||
|
||
static { | ||
if (dslConfigManager.IsDebugEnabled()) | ||
logger.setLevel(Level.ALL); | ||
else | ||
logger.setLevel(Level.ERROR); | ||
} | ||
|
||
@Override | ||
public void run() throws RigInternalError { | ||
DBManager.executeDBQueries(dslConfigManager.getKMDbUrl(), dslConfigManager.getKMDbUser(), | ||
dslConfigManager.getKMDbPass(), dslConfigManager.getKMDbSchema(), | ||
TestRunner.getGlobalResourcePath() + "/" + "config/keyManagerCertDataDeleteQueries.txt"); | ||
DBManager.executeDBQueries(dslConfigManager.getIdaDbUrl(), dslConfigManager.getIdaDbUser(), | ||
dslConfigManager.getPMSDbPass(), dslConfigManager.getIdaDbSchema(), | ||
TestRunner.getGlobalResourcePath() + "/" + "config/idaCertDataDeleteQueries.txt"); | ||
DBManager.executeDBQueries(dslConfigManager.getMASTERDbUrl(), dslConfigManager.getMasterDbUser(), | ||
dslConfigManager.getMasterDbPass(), dslConfigManager.getMasterDbSchema(), | ||
TestRunner.getGlobalResourcePath() + "/" + "config/masterDataCertDataDeleteQueries.txt"); | ||
} | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...-acceptance-tests/ivv-orchestrator/src/main/resources/config/idaCertDataDeleteQueries.txt
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
##### DB queries to be executed to tear down the data used and generated during the test rig run | ||
|
||
delete from ida.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_pid%' | ||
delete from ida.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_ekyc_pid%' | ||
delete from ida.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_device_pid%' | ||
delete from ida.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_ftm_pid%' | ||
delete from ida.ca_cert_store WHERE cert_subject LIKE '%O=partnernameforautomationesi%' | ||
delete from ida.ca_cert_store WHERE cert_subject LIKE '%O=partnernameforesignet%' |
14 changes: 14 additions & 0 deletions
14
...ance-tests/ivv-orchestrator/src/main/resources/config/keyManagerCertDataDeleteQueries.txt
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
##### DB queries to be executed to tear down the data used and generated during the test rig run | ||
|
||
delete from mosip_keymgr.keymgr.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_pid%' | ||
delete from mosip_keymgr.keymgr.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_ekyc_pid%' | ||
delete from mosip_keymgr.keymgr.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_device_pid%' | ||
delete from mosip_keymgr.keymgr.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_ftm_pid%' | ||
delete from mosip_keymgr.keymgr.ca_cert_store WHERE cert_subject LIKE '%O=partnernameforautomationesi%' | ||
delete from mosip_keymgr.keymgr.ca_cert_store WHERE cert_subject LIKE '%O=partnernameforesignet%' | ||
delete from mosip_keymgr.keymgr.partner_cert_store WHERE cert_subject LIKE '%O=masterdata_pid%' | ||
delete from mosip_keymgr.keymgr.partner_cert_store WHERE cert_subject LIKE '%O=masterdata_ekyc_pid%' | ||
delete from mosip_keymgr.keymgr.partner_cert_store WHERE cert_subject LIKE '%O=masterdata_device_pid%' | ||
delete from mosip_keymgr.keymgr.partner_cert_store WHERE cert_subject LIKE '%O=masterdata_ftm_pid%' | ||
delete from mosip_keymgr.keymgr.partner_cert_store WHERE cert_subject LIKE '%O=partnernameforautomationesi%' | ||
delete from mosip_keymgr.keymgr.partner_cert_store WHERE cert_subject LIKE '%O=partnernameforesignet%' |
8 changes: 8 additions & 0 deletions
8
...ance-tests/ivv-orchestrator/src/main/resources/config/masterDataCertDataDeleteQueries.txt
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
##### DB queries to be executed to tear down the data used and generated during the test rig run | ||
|
||
delete from master.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_pid%' | ||
delete from master.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_ekyc_pid%' | ||
delete from master.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_device_pid%' | ||
delete from master.ca_cert_store WHERE cert_subject LIKE '%O=masterdata_ftm_pid%' | ||
delete from master.ca_cert_store WHERE cert_subject LIKE '%O=partnernameforautomationesi%' | ||
delete from master.ca_cert_store WHERE cert_subject LIKE '%O=partnernameforesignet%' |
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