From 3ca765cdaf12fc01ec63c9550037dbfa264162ea Mon Sep 17 00:00:00 2001 From: Jayesh Kharode Date: Tue, 17 Dec 2024 10:07:54 +0530 Subject: [PATCH 1/5] MOSIP-38404 Signed-off-by: Jayesh Kharode --- .../src/main/resources/config/scenarios.json | 254 ++++++++++++++++++ 1 file changed, 254 insertions(+) diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json index 111e137e..1768ec1f 100644 --- a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json @@ -19875,6 +19875,260 @@ "Action": "$$uin2=e2e_getUINByRid($$rid2)" } }, + { + "Scenario": "178", + "Tag": "Postive_Test", + "Persona": "ResidentFemaleAdult", + "Group": "Adult_New", + "Description": "Generate UIN1 by creating RID1 in Profile1 then update UIN1 with Profile1 by capturing all biometrics", + "Step-0": { + "Description": "Performs health check of given component", + "Input Parameters": "Keyword to check, only packetcreator is supported", + "Return Value": "NA", + "Action": "e2e_getPingHealth(packetcreator)" + }, + "Step-1": { + "Description": "Reads the pre-requisite data at the given index", + "Input Parameters": "Details can be found in in-line comments on the parameters", + "Return Value": "pre-requiste details", + "Action": "$$details1=e2e_ReadPreReq(1/*PRE_REQUISITE_DATA_INDEX*/)" + }, + "Step-2": { + "Description": "Sets the context for scenario execution", + "Input Parameters": "Enviornment and user details. Other prarameters details can be found in-line", + "Return Value": "NA", + "Action": "e2e_setContext(env_context,$$details1,false/*GENERATE_PRIVATE_KEY*/)" + }, + "Step-3": { + "Description": "Performs health check of required server components to run end-to-end scenarios", + "Input Parameters": "NA", + "Return Value": "NA", + "Action": "e2e_getPingHealth(targetenv)" + }, + "Step-4": { + "Description": "Generates persona data", + "Input Parameters": "Details are in parameter in-line comments", + "Return Value": "Persona file path", + "Action": "$$personaFilePath=e2e_getResidentData(adult/*PERSONA_TYPE*/,false,Female)" + }, + "Step-5": { + "Description": "Generates packet template based on the persona data", + "Input Parameters": "Process and persona file path", + "Return Value": "Generated Template file path", + "Action": "$$templatePath=e2e_getPacketTemplate(NEW/*PACKET_TYPE*/,$$personaFilePath)" + }, + "Step-6": { + "Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step", + "Input Parameters": "Persona file path and template file path", + "Return Value": "RID", + "Action": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$templatePath)" + }, + "Step-7": { + "Description": "Checkes the RID status against given packet processing status", + "Input Parameters": "Packet processing status and RID", + "Return Value": "NA", + "Action": "e2e_checkStatus(PROCESSED/*PACKET_STATUS*/,$$rid1)" + }, + "Step-8": { + "Description": "Gets the UIN for the given RID", + "Input Parameters": "RID", + "Return Value": "UIN", + "Action": "$$uin1=e2e_getUINByRid($$rid1)" + }, + "Step-9": { + "Description": "Generates the hash for the given modalities", + "Input Parameters": "Modalitie and persona file path. Other details can be found in the parameter in-line comments", + "Return Value": "Hash value", + "Action": "$$modalityHashValue=e2e_getBioModalityHash(-1/*CHECK_PERSONA_PRESENCE*/,Right IndexFinger@@Left LittleFinger,$$personaFilePath)" + }, + "Step-10": { + "Description": "Sets expectatation on mock ABIS", + "Input Parameters": "Modalities hash value. Other details can be found in the parameter in-line comments", + "Return Value": "NA", + "Action": "e2e_configureMockAbis(-1/*CHECK_PERSONA_PRESENCE*/,Right IndexFinger,false/*DUPLICATE_FLAG*/,Right IndexFinger,$$personaFilePath,$$modalityHashValue,-1/*DEFAULT_MOCK_DELAY*/,@@Duplicate/*STATUS_CODE*/)" + }, + "Step-11": { + "Description": "Updates Demo graphic details and biometric in the persona file", + "Input Parameters": "Data to update and persona file path. Other details can be found in the parameter in-line comments", + "Return Value": "NA", + "Action": "e2e_updateDemoOrBioDetails(face@@finger@@iris/*BIO_TYPE*/,0,0/*UPDATE_ATTRIBUTES*/,$$personaFilePath/*PERSONA_TO_UPDATE*/)" + }, + "Step-12": { + "Description": "Updates persona with UIN", + "Input Parameters": "Persona file path and UIN", + "Return Value": "NA", + "Action": "e2e_updateResidentWithUIN($$personaFilePath,$$uin1)" + }, + "Step-13": { + "Description": "Generates packet template based on the persona data", + "Input Parameters": "Process and persona file path", + "Return Value": "Generated Template file path", + "Action": "$$updateTemplate=e2e_getPacketTemplate(UPDATE/*PACKET_TYPE*/,$$personaFilePath)" + }, + "Step-14": { + "Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step", + "Input Parameters": "Persona file path and template file path", + "Return Value": "RID", + "Action": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath,$$updateTemplate)" + }, + "Step-15": { + "Description": "Checks the RID status against given packet processing status", + "Input Parameters": "Packet processing status and RID", + "Return Value": "NA", + "Action": "e2e_checkStatus(Failed/*PACKET_STATUS*/,$$rid2)" + } + }, + { + "Scenario": "179", + "Tag": "Postive_Test", + "Persona": "ResidentFemaleAdult", + "Group": "Adult_New", + "Description": "ResidentA get uin and ResidentB marking FPs and Iris as exception got their UINs and ResidentA is trying to update ResidentB with his biometric", + "Step-0": { + "Description": "Performs health check of given component", + "Input Parameters": "Keyword to check, only packetcreator is supported", + "Return Value": "NA", + "Action": "e2e_getPingHealth(packetcreator)" + }, + "Step-1": { + "Description": "Reads the pre-requisite data at the given index", + "Input Parameters": "Details can be found in in-line comments on the parameters", + "Return Value": "pre-requiste details", + "Action": "$$details1=e2e_ReadPreReq(1/*PRE_REQUISITE_DATA_INDEX*/)" + }, + "Step-2": { + "Description": "Sets the context for scenario execution", + "Input Parameters": "Enviornment and user details. Other prarameters details can be found in-line", + "Return Value": "NA", + "Action": "e2e_setContext(env_context,$$details1,false/*GENERATE_PRIVATE_KEY*/)" + }, + "Step-3": { + "Description": "Performs health check of required server components to run end-to-end scenarios", + "Input Parameters": "NA", + "Return Value": "NA", + "Action": "e2e_getPingHealth(targetenv)" + }, + "Step-4": { + "Description": "Generates persona data", + "Input Parameters": "Details are in parameter in-line comments", + "Return Value": "Persona file path", + "Action": "$$personaFilePath1=e2e_getResidentData(adult/*PERSONA_TYPE*/,false,Female)" + }, + "Step-5": { + "Description": "Generates packet template based on the persona data", + "Input Parameters": "Process and persona file path", + "Return Value": "Generated Template file path", + "Action": "$$templatePath1=e2e_getPacketTemplate(NEW/*PACKET_TYPE*/,$$personaFilePath1)" + }, + "Step-6": { + "Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step", + "Input Parameters": "Persona file path and template file path", + "Return Value": "RID", + "Action": "$$rid1=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath1,$$templatePath1)" + }, + "Step-7": { + "Description": "Checkes the RID status against given packet processing status", + "Input Parameters": "Packet processing status and RID", + "Return Value": "NA", + "Action": "e2e_checkStatus(PROCESSED/*PACKET_STATUS*/,$$rid1)" + }, + "Step-8": { + "Description": "Gets the UIN for the given RID", + "Input Parameters": "RID", + "Return Value": "UIN", + "Action": "$$uin1=e2e_getUINByRid($$rid1)" + }, + "Step-9": { + "Description": "Sets the context for scenario execution", + "Input Parameters": "Enviornment and user details. Other details can be found in the parameter in-line comments", + "Return Value": "NA", + "Action": "e2e_setContext(env_context,$$details1,false/*GENERATE_PRIVATE_KEY*/,null/*PUT_SCENARIO_DETAILS_IN_CONTEXT*/@@99/*SWITCH_DEMOGRAPHIC_DATA*/)" + }, + "Step-10": { + "Description": "Generates persona data", + "Input Parameters": "Details are in parameter in-line comments", + "Return Value": "Persona file path", + "Action": "$$personaFilePath2=e2e_getResidentData(adult/*PERSONA_TYPE*/,false,Female)" + }, + "Step-11": { + "Description": "Updates persona with Biometric exception", + "Input Parameters": "Persona and exception modalities details.", + "Return Value": "NA", + "Action": "e2e_UpdateBioExceptionInPersona($$personaFilePath2,Finger:Left IndexFinger@@Finger:Right IndexFinger@@Iris:Left)" + }, + "Step-12": { + "Description": "Generates packet template based on the persona data", + "Input Parameters": "Process and persona file path", + "Return Value": "Generated Template file path", + "Action": "$$templatePath2=e2e_getPacketTemplate(NEW/*PACKET_TYPE*/,$$personaFilePath2)" + }, + "Step-13": { + "Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step", + "Input Parameters": "Persona file path and template file path", + "Return Value": "RID", + "Action": "$$rid2=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath2,$$templatePath2)" + }, + "Step-14": { + "Description": "Checkes the RID status against given packet processing status", + "Input Parameters": "Packet processing status and RID", + "Return Value": "NA", + "Action": "e2e_checkStatus(PROCESSED/*PACKET_STATUS*/,$$rid2)" + }, + "Step-15": { + "Description": "Gets the UIN for the given RID", + "Input Parameters": "RID", + "Return Value": "UIN", + "Action": "$$uin2=e2e_getUINByRid($$rid2)" + }, + "Step-16": { + "Description": "Generates the hash for the given modalities", + "Input Parameters": "Modalitie and persona file path. Other details can be found in the parameter in-line comments", + "Return Value": "Hash value", + "Action": "$$modalityHashValue=e2e_getBioModalityHash(-1/*CHECK_PERSONA_PRESENCE*/,Left@@Right,$$personaFilePath2)" + }, + "Step-17": { + "Description": "Sets expectatation on mock ABIS", + "Input Parameters": "Modalities hash value. Other details can be found in the parameter in-line comments", + "Return Value": "NA", + "Action": "e2e_configureMockAbis(-1/*CHECK_PERSONA_PRESENCE*/,Left@@Right,true/*DUPLICATE_FLAG*/,Right IndexFinger,$$personaFilePath2,$$modalityHashValue,-1/*DEFAULT_MOCK_DELAY*/,@@Duplicate/*STATUS_CODE*/)" + }, + "Step-18": { + "Description": "Updates Demo graphic details and biometric in the persona file", + "Input Parameters": "Data to update and persona file path. Other details can be found in the parameter in-line comments", + "Return Value": "NA", + "Action": "e2e_updateDemoOrBioDetails(iris/*BIO_TYPE*/,0,0/*UPDATE_ATTRIBUTES*/,$$personaFilePath1/*PERSONA_TO_UPDATE*/,$$personaFilePath2/*PERSONA_TO_UPDATE_WITH*/)" + }, + "Step-19": { + "Description": "Updates persona with UIN", + "Input Parameters": "Persona file path and UIN", + "Return Value": "NA", + "Action": "e2e_updateResidentWithUIN($$personaFilePath1,$$uin2)" + }, + "Step-20": { + "Description": "Generates packet template based on the persona data", + "Input Parameters": "Process and persona file path", + "Return Value": "Generated Template file path", + "Action": "$$updateTemplate=e2e_getPacketTemplate(UPDATE/*PACKET_TYPE*/,$$personaFilePath1)" + }, + "Step-21": { + "Description": "Genertes and uploads packet with given persona and packet template skipping pre-registration step", + "Input Parameters": "Persona file path and template file path", + "Return Value": "RID", + "Action": "$$rid3=e2e_generateAndUploadPacketSkippingPrereg($$personaFilePath1,$$updateTemplate)" + }, + "Step-22": { + "Description": "Checks the RID status against given packet processing status", + "Input Parameters": "Packet processing status and RID", + "Return Value": "NA", + "Action": "e2e_checkStatus(PROCESSED/*PACKET_STATUS*/,$$rid3)" + }, + "Step-23": { + "Description": "Gets the UIN for the given RID", + "Input Parameters": "RID", + "Return Value": "UIN", + "Action": "$$uin3=e2e_getUINByRid($$rid3)" + } + }, { "Scenario": "AFTER_SUITE", "Tag": "Postive_Test", From 40b7921f16fd9912e64c59a0c057cb48667954d8 Mon Sep 17 00:00:00 2001 From: Jayesh Kharode Date: Tue, 17 Dec 2024 10:32:54 +0530 Subject: [PATCH 2/5] MOSIP-38404 Signed-off-by: Jayesh Kharode --- .../ivv-orchestrator/src/main/resources/config/scenarios.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json index 1768ec1f..14420cfe 100644 --- a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json @@ -19975,7 +19975,7 @@ "Description": "Checks the RID status against given packet processing status", "Input Parameters": "Packet processing status and RID", "Return Value": "NA", - "Action": "e2e_checkStatus(Failed/*PACKET_STATUS*/,$$rid2)" + "Action": "e2e_checkStatus(FAILED/*PACKET_STATUS*/,$$rid2)" } }, { From 0837da74d23ff3bcbabed4aca1052106c3d8101f Mon Sep 17 00:00:00 2001 From: Jayesh Kharode Date: Tue, 17 Dec 2024 10:34:46 +0530 Subject: [PATCH 3/5] MOSIP-38404 Signed-off-by: Jayesh Kharode --- .../ivv-orchestrator/src/main/resources/config/scenarios.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json index 14420cfe..3524e1a5 100644 --- a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json @@ -19877,7 +19877,7 @@ }, { "Scenario": "178", - "Tag": "Postive_Test", + "Tag": "Negative_Test", "Persona": "ResidentFemaleAdult", "Group": "Adult_New", "Description": "Generate UIN1 by creating RID1 in Profile1 then update UIN1 with Profile1 by capturing all biometrics", From d5b4594a54961324ec63d91e8cec86bfdc41b007 Mon Sep 17 00:00:00 2001 From: Jayesh Kharode Date: Tue, 17 Dec 2024 15:20:37 +0530 Subject: [PATCH 4/5] MOSIP-38404 Signed-off-by: Jayesh Kharode --- .../ivv-orchestrator/src/main/resources/config/scenarios.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json index 3524e1a5..5a50466a 100644 --- a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json @@ -19880,7 +19880,7 @@ "Tag": "Negative_Test", "Persona": "ResidentFemaleAdult", "Group": "Adult_New", - "Description": "Generate UIN1 by creating RID1 in Profile1 then update UIN1 with Profile1 by capturing all biometrics", + "Description": "Resident walks into registration center and Generates UIN1 by creating RID1 with exception biometrics in Profile1 then updates UIN1 with Profile1 by capturing all biometric", "Step-0": { "Description": "Performs health check of given component", "Input Parameters": "Keyword to check, only packetcreator is supported", From e905fe0f27acf739bd72335a9998322480735889 Mon Sep 17 00:00:00 2001 From: Jayesh Kharode Date: Tue, 17 Dec 2024 15:29:20 +0530 Subject: [PATCH 5/5] MOSIP-38404 Signed-off-by: Jayesh Kharode --- .../ivv-orchestrator/src/main/resources/config/scenarios.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json index 5a50466a..236a7eab 100644 --- a/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json +++ b/mosip-acceptance-tests/ivv-orchestrator/src/main/resources/config/scenarios.json @@ -19880,7 +19880,7 @@ "Tag": "Negative_Test", "Persona": "ResidentFemaleAdult", "Group": "Adult_New", - "Description": "Resident walks into registration center and Generates UIN1 by creating RID1 with exception biometrics in Profile1 then updates UIN1 with Profile1 by capturing all biometric", + "Description": "Resident walks into registration center and Generates UIN1 by creating RID1 with Profile1 then updates UIN1 with Profile1 by capturing all biometric with Abis false", "Step-0": { "Description": "Performs health check of given component", "Input Parameters": "Keyword to check, only packetcreator is supported",