From 33d3e8659c8e7f1a13513b71b3da35cfed43da57 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Mon, 26 Aug 2024 18:21:33 +0530 Subject: [PATCH] MOSIP-35082 - Fixed failure test cases Signed-off-by: Mohanachandran S --- .../masterdata/FetchRegCent/FetchRegCent.yml | 12 ++++++------ .../FetchRegCentHistory/FetchRegCentHistory.yml | 2 +- .../FetchValidDocuments/FetchValidDocuments.yml | 2 +- .../masterdata/RegCenterSearch/RegCenterSearch.yml | 2 +- .../SearchMachineSpec/SearchMachineSpec.yml | 10 +++++----- .../UserCenterMapping/UpdateUserCenterMapping.yml | 2 +- .../UserCenterMapping/UserCenterMapping.yml | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/apitest/src/main/resources/masterdata/FetchRegCent/FetchRegCent.yml b/apitest/src/main/resources/masterdata/FetchRegCent/FetchRegCent.yml index 4095d6d53e6..72663f68767 100644 --- a/apitest/src/main/resources/masterdata/FetchRegCent/FetchRegCent.yml +++ b/apitest/src/main/resources/masterdata/FetchRegCent/FetchRegCent.yml @@ -34,8 +34,8 @@ FetchRegCent: inputTemplate: masterdata/FetchRegCent/fetchRegCent outputTemplate: masterdata/FetchRegCent/fetchRegCentResult input: '{ - "longitude": "-6.453275", - "latitude": "34.52117", + "longitude": "45.2456", + "latitude": "78.5478", "langcode": "eng", "proximitydistance": "21", "locationcode": "$REMOVE$", @@ -122,7 +122,7 @@ FetchRegCent: "latitude": "$REMOVE$", "langcode": "eng", "proximitydistance": "$REMOVE$", - "locationcode": "14022", + "locationcode": "$ID:CreateLocationData_WithMandatoryLanguage_All_Valid_Smoke_Sid_code$", "registrationcenterid": "$REMOVE$", "year": "$REMOVE$", "id": "$REMOVE$", @@ -235,7 +235,7 @@ FetchRegCent: "locationcode": "$REMOVE$", "registrationcenterid": "$REMOVE$", "year": "$REMOVE$", - "id": "10001", + "id": "$ID:CreateRegCenter_allValid_smoke_sid_id$", "hierarchylevel": "$REMOVE$", "name": "$REMOVE$", "zonecode": "$REMOVE$", @@ -371,11 +371,11 @@ FetchRegCent: "locationcode": "$REMOVE$", "registrationcenterid": "$REMOVE$", "year": "$REMOVE$", - "id": "10001", + "id": "$ID:CreateRegCenter_allValid_smoke_sid_id$", "hierarchylevel": "$REMOVE$", "name": "$REMOVE$", "zonecode": "$REMOVE$", - "timestamp": "2021-01-20T06:22:07.797Z" + "timestamp": "$TIMESTAMP$" }' output: '{ "status":"Valid" diff --git a/apitest/src/main/resources/masterdata/FetchRegCentHistory/FetchRegCentHistory.yml b/apitest/src/main/resources/masterdata/FetchRegCentHistory/FetchRegCentHistory.yml index 52f649ed9dc..a7824872cf8 100644 --- a/apitest/src/main/resources/masterdata/FetchRegCentHistory/FetchRegCentHistory.yml +++ b/apitest/src/main/resources/masterdata/FetchRegCentHistory/FetchRegCentHistory.yml @@ -8,7 +8,7 @@ FetchRegCentHistory: inputTemplate: masterdata/FetchRegCentHistory/fetchRegCentHistory outputTemplate: masterdata/FetchRegCentHistory/fetchRegCentHistoryResult input: '{ - "registrationCenterId": "10001", + "registrationCenterId": "$ID:CreateRegCenter_allValid_smoke_sid_id$", "effectiveDate": "$TIMESTAMP$", "langCode": "eng" }' diff --git a/apitest/src/main/resources/masterdata/FetchValidDocuments/FetchValidDocuments.yml b/apitest/src/main/resources/masterdata/FetchValidDocuments/FetchValidDocuments.yml index c12803f27c0..08626e1f1c0 100644 --- a/apitest/src/main/resources/masterdata/FetchValidDocuments/FetchValidDocuments.yml +++ b/apitest/src/main/resources/masterdata/FetchValidDocuments/FetchValidDocuments.yml @@ -1,6 +1,6 @@ FetchValidDocuments: MasterData_FetchValidDocuments_allValid_smoke_with_lang: - endPoint: /v1/masterdata/validdocuments/{languagecode} + endPoint: /v1/masterdata/validdocuments/{languageCode} description: Retrieve valid Documents By languagecode with all valid data role: admin checkErrorsOnlyInResponse: true diff --git a/apitest/src/main/resources/masterdata/RegCenterSearch/RegCenterSearch.yml b/apitest/src/main/resources/masterdata/RegCenterSearch/RegCenterSearch.yml index fe54f2a53f4..ceb0ae22256 100644 --- a/apitest/src/main/resources/masterdata/RegCenterSearch/RegCenterSearch.yml +++ b/apitest/src/main/resources/masterdata/RegCenterSearch/RegCenterSearch.yml @@ -3,7 +3,7 @@ RegCenterSearch: endPoint: /v1/masterdata/registrationcenters/search description: Search the registration center with the condition that the name column is equal to English role: admin - templateFields: ["name"] + templateFields: ["name","value"] restMethod: post inputTemplate: masterdata/RegCenterSearch/regCenterSearch outputTemplate: masterdata/RegCenterSearch/regCenterSearchResult diff --git a/apitest/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml b/apitest/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml index a72c20a9975..72f77341ad6 100644 --- a/apitest/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml +++ b/apitest/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml @@ -3,7 +3,7 @@ SearchMachineSpec: endPoint: /v1/masterdata/machinespecifications/search description: Search for machine spec details where the name parameter equals the specified condition role: admin - templateFields: ["languageCode"] + templateFields: ["description"] restMethod: post inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult @@ -44,7 +44,7 @@ SearchMachineSpec: endPoint: /v1/masterdata/machinespecifications/search description: Search for machine spec details sorted in descending order role: admin - templateFields: ["languageCode"] + templateFields: ["description"] restMethod: post inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult @@ -83,7 +83,7 @@ SearchMachineSpec: endPoint: /v1/masterdata/machinespecifications/search description: Search for machine spec details with condition column as model role: admin - templateFields: ["languageCode"] + templateFields: ["description"] restMethod: post inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult @@ -191,7 +191,7 @@ SearchMachineSpec: endPoint: /v1/masterdata/machinespecifications/search description: Search for machine spec details where the condition column name is name and the filter type is starts with role: admin - templateFields: ["languageCode"] + templateFields: ["description"] restMethod: post inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult @@ -230,7 +230,7 @@ SearchMachineSpec: endPoint: /v1/masterdata/machinespecifications/search description: Search for machine spec details where the condition column name is name and the filter type is contains role: admin - templateFields: ["languageCode"] + templateFields: ["description"] restMethod: post inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult diff --git a/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml b/apitest/src/main/resources/masterdata/UserCenterMapping/UpdateUserCenterMapping.yml index 433413ae2f7..ebac0382899 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: ["langCode"] + templateFields: ["zoneName","regCenterName"] restMethod: put inputTemplate: masterdata/UserCenterMapping/updateUserCenterMapping outputTemplate: masterdata/UserCenterMapping/userCenterMappingResult diff --git a/apitest/src/main/resources/masterdata/UserCenterMapping/UserCenterMapping.yml b/apitest/src/main/resources/masterdata/UserCenterMapping/UserCenterMapping.yml index dc7fe5cba10..577e69b26b7 100644 --- a/apitest/src/main/resources/masterdata/UserCenterMapping/UserCenterMapping.yml +++ b/apitest/src/main/resources/masterdata/UserCenterMapping/UserCenterMapping.yml @@ -17,7 +17,7 @@ UserCenterMapping: "requesttime": "$TIMESTAMP$" }' output: '{ - "name": "$IGNORE$", + "name": "automation", "statusCode": "active", "regCenterId": "$IGNORE$", "zoneCode": "$IGNORE$",