From 99c25db7ff86f5e60fef2bc1cd4d1720a50983bb Mon Sep 17 00:00:00 2001 From: Nandhukumar Date: Thu, 1 Aug 2024 18:01:41 +0530 Subject: [PATCH] MOSIP-33845 Signed-off-by: Nandhukumar --- .../resources/config/idaCertDataDeleteQueries.txt | 8 ++++++++ .../config/keyManagerCertDataDeleteQueries.txt | 14 ++++++++++++++ .../config/masterDataCertDataDeleteQueries.txt | 8 ++++++++ 3 files changed, 30 insertions(+) create mode 100644 apitest/src/main/resources/config/idaCertDataDeleteQueries.txt create mode 100644 apitest/src/main/resources/config/keyManagerCertDataDeleteQueries.txt create mode 100644 apitest/src/main/resources/config/masterDataCertDataDeleteQueries.txt diff --git a/apitest/src/main/resources/config/idaCertDataDeleteQueries.txt b/apitest/src/main/resources/config/idaCertDataDeleteQueries.txt new file mode 100644 index 00000000000..6070b05a02e --- /dev/null +++ b/apitest/src/main/resources/config/idaCertDataDeleteQueries.txt @@ -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=auth_pid%' +delete from ida.ca_cert_store WHERE cert_subject LIKE '%O=auth_ekyc_pid%' +delete from ida.ca_cert_store WHERE cert_subject LIKE '%O=auth_device_pid%' +delete from ida.ca_cert_store WHERE cert_subject LIKE '%O=auth_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%' \ No newline at end of file diff --git a/apitest/src/main/resources/config/keyManagerCertDataDeleteQueries.txt b/apitest/src/main/resources/config/keyManagerCertDataDeleteQueries.txt new file mode 100644 index 00000000000..29303ca8536 --- /dev/null +++ b/apitest/src/main/resources/config/keyManagerCertDataDeleteQueries.txt @@ -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=auth_pid%' +delete from mosip_keymgr.keymgr.ca_cert_store WHERE cert_subject LIKE '%O=auth_ekyc_pid%' +delete from mosip_keymgr.keymgr.ca_cert_store WHERE cert_subject LIKE '%O=auth_device_pid%' +delete from mosip_keymgr.keymgr.ca_cert_store WHERE cert_subject LIKE '%O=auth_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=auth_pid%' +delete from mosip_keymgr.keymgr.partner_cert_store WHERE cert_subject LIKE '%O=auth_ekyc_pid%' +delete from mosip_keymgr.keymgr.partner_cert_store WHERE cert_subject LIKE '%O=auth_device_pid%' +delete from mosip_keymgr.keymgr.partner_cert_store WHERE cert_subject LIKE '%O=auth_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%' \ No newline at end of file diff --git a/apitest/src/main/resources/config/masterDataCertDataDeleteQueries.txt b/apitest/src/main/resources/config/masterDataCertDataDeleteQueries.txt new file mode 100644 index 00000000000..48e277a29db --- /dev/null +++ b/apitest/src/main/resources/config/masterDataCertDataDeleteQueries.txt @@ -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=auth_pid%' +delete from master.ca_cert_store WHERE cert_subject LIKE '%O=auth_ekyc_pid%' +delete from master.ca_cert_store WHERE cert_subject LIKE '%O=auth_device_pid%' +delete from master.ca_cert_store WHERE cert_subject LIKE '%O=auth_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%' \ No newline at end of file