From 9fa39ea6631f05053565d7dffd4225b1e9e5eb3f Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Tue, 27 Aug 2024 18:01:47 +0530 Subject: [PATCH 1/2] MOSIP-35082 - Fixed failure test cases Signed-off-by: Mohanachandran S --- .../FetchRegCentHistory.yml | 3 ++- ...tRegistrationMachineUserMappingHistory.yml | 1 + .../UpdateUserCenterMapping.yml | 4 +-- ...tregistrationmachineusermappinghistory.yml | 25 ------------------- 4 files changed, 5 insertions(+), 28 deletions(-) delete mode 100644 apitest/src/main/resources/masterdata/getregistrationmachineusermappinghistory/getregistrationmachineusermappinghistory.yml diff --git a/apitest/src/main/resources/masterdata/FetchRegCentHistory/FetchRegCentHistory.yml b/apitest/src/main/resources/masterdata/FetchRegCentHistory/FetchRegCentHistory.yml index a7824872cf8..ded7caa9ad2 100644 --- a/apitest/src/main/resources/masterdata/FetchRegCentHistory/FetchRegCentHistory.yml +++ b/apitest/src/main/resources/masterdata/FetchRegCentHistory/FetchRegCentHistory.yml @@ -3,6 +3,7 @@ FetchRegCentHistory: endPoint: /v1/masterdata/registrationcentershistory/{registrationCenterId}/{langCode}/{effectiveDate} description: Retrieve Registration Center History with all valid data role: admin + checkErrorsOnlyInResponse: true templateFields: ["langCode"] restMethod: get inputTemplate: masterdata/FetchRegCentHistory/fetchRegCentHistory @@ -14,7 +15,7 @@ FetchRegCentHistory: }' output: '{ "registrationCentersHistory": [{ - "isActive": "true" + "isActive": "$IGNORE$" }] }' Masterdata_FetchRegCentHistory_invalid_registrationCenterId: diff --git a/apitest/src/main/resources/masterdata/GetRegistrationMachineUserMappingHistory/GetRegistrationMachineUserMappingHistory.yml b/apitest/src/main/resources/masterdata/GetRegistrationMachineUserMappingHistory/GetRegistrationMachineUserMappingHistory.yml index 7c164165784..fa9ee979541 100644 --- a/apitest/src/main/resources/masterdata/GetRegistrationMachineUserMappingHistory/GetRegistrationMachineUserMappingHistory.yml +++ b/apitest/src/main/resources/masterdata/GetRegistrationMachineUserMappingHistory/GetRegistrationMachineUserMappingHistory.yml @@ -1,6 +1,7 @@ GetRegistrationMachineUserMappingHistory: MasterData_GetRegistrationMachineUserMappingHistory_allValid_smoke: endPoint: /v1/masterdata/getregistrationmachineusermappinghistory/{effdtimes}/{registrationcenterid}/{machineid}/{userid} + description: Retrieve registration machine user mapping history missing using valid effdtimes, registration center ID, machine ID, user id role: admin checkErrorsOnlyInResponse: true restMethod: get diff --git a/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml b/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml index ebac0382899..9e8fc91457a 100644 --- a/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml +++ b/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml @@ -3,7 +3,7 @@ UpdateUserCenterMapping: endPoint: /v1/masterdata/usercentermapping description: Update user center mapping details with valid data role: globalAdmin - templateFields: ["zoneName","regCenterName"] + templateFields: ["regCenterName"] restMethod: put inputTemplate: masterdata/UserCenterMapping/updateUserCenterMapping outputTemplate: masterdata/UserCenterMapping/userCenterMappingResult @@ -20,7 +20,7 @@ UpdateUserCenterMapping: "statusCode": "active", "regCenterId": "$IGNORE$", "zoneCode": "RBT", - "zoneName": "Rabat", + "zoneName": "$IGNORE$", "regCenterName": "HSR Center updated" }' MasterData_UserCenterMapping_Invalid_InputParameter_regCenterId_Missing: diff --git a/apitest/src/main/resources/masterdata/getregistrationmachineusermappinghistory/getregistrationmachineusermappinghistory.yml b/apitest/src/main/resources/masterdata/getregistrationmachineusermappinghistory/getregistrationmachineusermappinghistory.yml deleted file mode 100644 index fa9ee979541..00000000000 --- a/apitest/src/main/resources/masterdata/getregistrationmachineusermappinghistory/getregistrationmachineusermappinghistory.yml +++ /dev/null @@ -1,25 +0,0 @@ -GetRegistrationMachineUserMappingHistory: - MasterData_GetRegistrationMachineUserMappingHistory_allValid_smoke: - endPoint: /v1/masterdata/getregistrationmachineusermappinghistory/{effdtimes}/{registrationcenterid}/{machineid}/{userid} - description: Retrieve registration machine user mapping history missing using valid effdtimes, registration center ID, machine ID, user id - role: admin - checkErrorsOnlyInResponse: true - restMethod: get - inputTemplate: masterdata/GetRegistrationMachineUserMappingHistory/getRegistrationMachineUserMappingHistory - outputTemplate: masterdata/GetRegistrationMachineUserMappingHistory/getRegistrationMachineUserMappingHistoryResult - input: '{ - "effdtimes":"$ID:SearchMachine_Valid_Smoke_FullResponse_sid_responsetime$", - "registrationcenterid":"$ID:CreateRegCenter_allValid_smoke_sid_id$", - "machineid":"$ID:CreateMachine_All_Valid_Smoke_sid_id$", - "userid":"$ID:CreateZoneUser_All_Valid_Smoke_Sid_userId$" -}' - output: '{ -"registrationCenters": [{ - "cntrId": "$IGNORE$", - "machineId": "$IGNORE$", - "usrId": "$IGNORE$", - "isActive": "$IGNORE$", - "langCode": "$IGNORE$", - "effectivetimes": "$IGNORE$" - }] -}' \ No newline at end of file From 0dcf069c92dc45b450c2090207da56e5759891c0 Mon Sep 17 00:00:00 2001 From: Mohanachandran S <165888272+mohanachandran-s@users.noreply.github.com> Date: Tue, 27 Aug 2024 19:04:10 +0530 Subject: [PATCH 2/2] MOSIP-35082 - Fixed failure test cases Signed-off-by: Mohanachandran S <165888272+mohanachandran-s@users.noreply.github.com> --- .../masterdata/UserCenterMapping/UpdateUserCenterMapping.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml b/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml index 9e8fc91457a..482a39bd993 100644 --- a/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml +++ b/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml @@ -19,7 +19,7 @@ UpdateUserCenterMapping: "name": "automationUpdated", "statusCode": "active", "regCenterId": "$IGNORE$", - "zoneCode": "RBT", + "zoneCode": "$IGNORE$", "zoneName": "$IGNORE$", "regCenterName": "HSR Center updated" }' @@ -70,4 +70,4 @@ UpdateUserCenterMapping: "message": "Registration Center not found" } ] -}' \ No newline at end of file +}'