Skip to content

Commit

Permalink
Merge pull request #674 from Sohandey/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ckm007 authored May 20, 2024
2 parents 5d447c2 + 74d2e7b commit 3db9bf3
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 0 deletions.
22 changes: 22 additions & 0 deletions apitest/src/main/resources/dbFiles/.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<session-factory>

<property name="hibernate.connection.driver_class"></property>
<property name="hibernate.connection.url"></property>
<property name="hibernate.connection.username"></property>
<property name="hibernate.connection.password"></property>
<property name="hibernate.hibernate.default_schema"></property>
<property name="hibernate.connection.pool_size"></property>
<property name="hibernate.dialect"></property>
<property name="hibernate.show_sql"></property>
<property name="hibernate.current_session_context_class"></property>

</session-factory>


</hibernate-configuration>
28 changes: 28 additions & 0 deletions apitest/src/main/resources/dbFiles/PMS_delete_script.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
delete from pms.partner_contact where partner_id='Tech-123';
delete from partner_policy where part_id='Tech-123';
delete from partner_policy where policy_id in (select id from auth_policy where name in ('mosip policy','mosip data share policy'));
delete from partner_policy_request where part_id='Tech-123';
delete from pms.partner_policy where label='string';
delete from partner_policy_request where policy_id in (select id from auth_policy where name in ('mosip policy','mosip data share policy'));
delete from partner_policy_bioextract where policy_id in (select id from auth_policy where name in ('mosip policy','mosip data share policy'));
delete from partner_policy_credential_type where part_id='MOVP';
delete from pms.partner where id in ('Tech-123','MOVP','DPP','MISP','MISP2','FTP','111997','updatepolicy');
delete from pms.auth_policy where name in('mosip policy','mosip policy2','mosip policy3','mosip data share policy','mosip data share policy2');
delete from pms.policy_group where name in ('mosip policy group','mosip policy group2','update_policy_group');
delete from pms.misp_license where cr_by='pm_testuser';
delete from pms.misp_license where misp_id in ('MISP','MISP2');
delete from pms.ftp_chip_detail where foundational_trust_provider_id='FTP';
delete from pms.misp where name='mosip_misp';
delete from pms.secure_biometric_interface where provider_id='Tech-123';
delete from pms.device_detail where id='device-id-123';
delete from pms.device_detail where make in ('abcde','abcdef');
delete from mosip_keymgr.keymgr.ca_cert_store where cert_subject ='CN=mosiptest.org,O=MOSIPTEST,L=Bangalore,ST=Karantaka,C=IN';
delete from mosip_keymgr.keymgr.partner_cert_store where cert_subject ='CN=Techno.com,O=Techno,L=Bangalore,ST=Karnataka,C=IN';
delete from mosip_keymgr.keymgr.partner_cert_store where cert_subject ='CN=Techno,O=Techno,L=Bangalore,ST=Karnataka,C=IN';
delete from mosip_keymgr.keymgr.ca_cert_store where cert_subject ='CN=apitest,OU=apitest,O=apitest,L=BLR,ST=KAR,C=IN';
delete from mosip_keymgr.keymgr.ca_cert_store where cert_subject ='CN=apitest2,OU=apitest2,O=apitest2,L=BLR,ST=KAR,C=IN';
delete from mosip_keymgr.keymgr.partner_cert_store where cert_subject ='CN=deviceprovider,OU=deviceprovider,O=deviceprovider,L=BLR,ST=KAR,C=IN';
delete from mosip_keymgr.keymgr.partner_cert_store where cert_subject ='CN=movp,OU=movp,O=movp,L=BLR,ST=KAR,C=IN';
delete from mosip_keymgr.keymgr.partner_cert_store where cert_subject ='CN=ftp,OU=ftp,O=ftp,L=BLR,ST=KAR,C=IN';
delete from mosip_keymgr.keymgr.partner_cert_store where cert_subject ='CN=misp,OU=misp,O=misp,L=BLR,ST=KAR,C=IN';
delete from mosip_keymgr.keymgr.partner_cert_store where cert_subject ='CN=misp2,OU=misp2,O=misp2,L=BLR,ST=KAR,C=IN';
22 changes: 22 additions & 0 deletions apitest/src/main/resources/dbFiles/dbConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<session-factory>

<property name="connection.driver_class"></property>
<property name="connection.url"></property>
<property name="connection.username"></property>
<property name="connection.password"></property>
<property name="hibernate.default_schema"></property>
<property name="connection.pool_size"></property>
<property name="dialect"></property>
<property name="show_sql"></property>
<property name="current_session_context_class"></property>

</session-factory>


</hibernate-configuration>
88 changes: 88 additions & 0 deletions apitest/src/main/resources/dbFiles/delete_Masterdata.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
delete from master.blocklisted_words where cr_by='dumbo6';
delete from master.blocklisted_words where word='dumbooo';
delete from master.blocklisted_words where cr_by='masterdata-220005';
delete from master.machine_master where cr_by='masterdata-220005';
delete from master.machine_master where cr_by='masterdata-220005';
delete from master.machine_master where name in ('Mach-Test','Mach-Test2','Mach-Test updated');
delete from master.machine_master mm WHERE mm.mspec_id IN(SELECT ms.id from master.machine_spec ms where ms.cr_by='masterdata-220005');
delete FROM master.machine_spec WHERE mtyp_code IN (SELECT code FROM master.machine_type WHERE cr_by = 'masterdata-220005');
delete from master.machine_spec where cr_by='masterdata-220005';
delete from master.machine_type where cr_by='masterdata-220005';
delete from master.gender where cr_by='masterdata-220005';
delete from master.device_master where upd_by='masterdata-220005';
delete from master.device_master where cr_by='masterdata-220005';
delete from master.device_master where name='testDevicedummy';
DELETE FROM master.device_master WHERE dspec_id IN(SELECT id FROM master.device_spec WHERE cr_by='masterdata-220005');
delete from master.device_spec where cr_by='masterdata-220005';
delete from master.device_type where cr_by='masterdata-220005';
delete from master.loc_holiday where cr_by='masterdata-220005';
delete from master.reg_center_type where cr_by='masterdata-220005';
delete from master.registration_center where cr_by='masterdata-220005';
delete from master.loc_holiday where cr_by='masterdata-220005';
delete from master.reg_center_type where cr_by='masterdata-220005';
delete from master.registration_center where cr_by='masterdata-220005';
delete from master.device_type where cr_by='masterdata-220005';
delete from master.doc_type where cr_by='masterdata-220005';
delete from master.doc_category where cr_by='masterdata-220005';
delete from master.location where cr_by='masterdata-220005';
delete from master.template where cr_by='masterdata-220005';
update master.template set is_active='true', is_deleted='false' where id='1101';
delete from master.template where template_typ_code IN(select code from master.template_type where code='Test-info-Template-auto');
delete from master.template_type where code='Test-info-Template-auto';
update master.location set is_active='true', is_deleted='false' where code='10114';
delete from master.location where code in('TST123','IND');
delete from master.valid_document where cr_by='masterdata-220005';
delete from master.user_detail where cr_by='masterdata-220005';
delete from master.template_type where cr_by='masterdata-220005';
delete from master.template_file_format where cr_by='masterdata-220005';
delete from master.reason_list where cr_by='masterdata-220005';
delete from master.reason_category where cr_by='masterdata-220005';
delete from master.language where cr_by='masterdata-220005';
delete from master.identity_schema where cr_by='masterdata-220005';
delete from master.biometric_attribute where cr_by='masterdata-220005';
delete from master.biometric_type where cr_by='masterdata-220005';
delete from master.appl_form_type where cr_by='masterdata-220005';
delete from master.id_type where cr_by='masterdata-220005';
delete from master.dynamic_field where cr_by='masterdata-220005';
delete from master.zone_user where usr_id='masterdata-220005';
delete from master.blocklisted_words where word='dumbo6';
delete from master.blocklisted_words where word='dumbo7';
delete from master.machine_master where name in ('Mach-Test','Mach-Test2','Mach-Test updated');
delete from master.machine_master where mac_address = '61-D3-FD-12-C9-ED';
delete from master.machine_spec where name='HP';
delete from master.machine_master where cr_by='masterdata-220005';
delete from master.machine_type where code='Laptop2';
delete from master.gender where code='Genderdummy';
delete FROM master.device_master where name in ('testDevicedummy','testDevicedummy updated');
delete from master.device_master where dspec_id='743';
delete from master.device_spec where id='743';
delete from master.device_type where code='GST3';
delete from master.loc_holiday where holiday_name='AutoTest user Eng';
delete from master.reg_center_type where code='ALT-3';
delete FROM master.registration_center where name in ('Test123','HSR Center updated');
delete from master.loc_holiday where holiday_name in ('AutoTest user Eng','AutoTest user');
delete from master.reg_center_type where code in('ALT-3','ALT-5');
delete from master.registration_center where id='10000';
delete from master.device_type where code in ('GST3','GST4');
delete from master.doc_type where code in ('TestDocType0010','TestDocType0020');
delete from master.doc_category where code in ('DocTestCode123','DocTestCode321');
delete from master.location where code='TST12';
delete from master.template where id='445566777';
delete from master.template where template_typ_code IN(select code from master.template_type where code='Test-info-Template-auto');
update master.template set is_active='true', is_deleted='false' where id='1101';
delete from master.template_type where code='Test-info-Template-auto';
update master.location set is_active='true', is_deleted='false' where code='10114';
delete from master.location where code in('TST123','IND');
delete from master.valid_document where doctyp_Code='doc_auto_test';
delete from master.user_detail where cr_by='110005';
delete from master.template_type where code='Test-info-Template-auto';
delete from master.template_file_format where code='Doc';
delete from master.reason_list where code='TEST_LIST_CODE';
delete from master.reason_category where code='TEST_CAT_CODE';
delete from master.language where code='automationLang';
delete from master.identity_schema where title='test-schema';
delete from master.biometric_attribute where code='TST';
delete from master.biometric_type where code='dumbo6';
delete from master.appl_form_type where code='dumbo';
delete from master.id_type where code='NEW';
delete from master.dynamic_field where name in ('TestAutomationField','TestAPL');

0 comments on commit 3db9bf3

Please sign in to comment.