From 7c1ec254d8c9bff69cbb99c8204ebfb3ad832c22 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Wed, 9 Oct 2024 11:36:44 +0530 Subject: [PATCH 1/7] MOSIP-35897 - Fixed automation failures Signed-off-by: Mohanachandran S --- api-test/src/main/resources/config/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/src/main/resources/config/application.properties b/api-test/src/main/resources/config/application.properties index d6356d113fd..65376073b77 100644 --- a/api-test/src/main/resources/config/application.properties +++ b/api-test/src/main/resources/config/application.properties @@ -32,7 +32,7 @@ authPolicyUrl=/v1/policymanager/policies policyGroupUrl=/v1/policymanager/policies/group/new publishPolicyurl=/v1/policymanager/policies/POLICYID/group/POLICYGROUPID/publish clearCertificateURL=v1/identity/clearKeys?moduleName=$MODULENAME$&certsDir=$CERTSDIR$ -fetchLocationData=/v1/masterdata/locations/all?pageNumber=0&pageSize=100&sortBy=createdDateTime&orderBy=desc +fetchLocationData=/v1/masterdata/locations/all?pageNumber=0&pageSize=1000&sortBy=createdDateTime&orderBy=desc fetchLocationLevel=/v1/masterdata/locations/level/ fetchTitle=/v1/masterdata/title fetchZoneCode=/v1/masterdata/zones/hierarchy/ From 19feaaf28751f6e806265fb740bcd124d6cfa9b8 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Mon, 28 Oct 2024 10:10:01 +0530 Subject: [PATCH 2/7] MOSIP-36673 - Updated the zone code for creating registration center Signed-off-by: Mohanachandran S --- .../RegistrationCenter/CreateRegistrationCenter.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api-test/src/main/resources/masterdata/RegistrationCenter/CreateRegistrationCenter.yml b/api-test/src/main/resources/masterdata/RegistrationCenter/CreateRegistrationCenter.yml index 37d6a44751a..ac28d81717f 100644 --- a/api-test/src/main/resources/masterdata/RegistrationCenter/CreateRegistrationCenter.yml +++ b/api-test/src/main/resources/masterdata/RegistrationCenter/CreateRegistrationCenter.yml @@ -29,7 +29,7 @@ CreateRegistrationCenter: "perKioskProcessTime":"00:30:00", "timeZone":"(GTM+01:00) CENTRAL EUROPEAN TIME", "workingHours":3.5, - "zoneCode":"RBT", + "zoneCode":"$ZONE_CODE$", "id":"", "isActive":"false", "numberOfKiosks":"1", @@ -208,7 +208,7 @@ CreateRegistrationCenter: "perKioskProcessTime":"00:30:00", "timeZone":"(GTM+01:00) CENTRAL EUROPEAN TIME", "workingHours":3.5, - "zoneCode":"RBT", + "zoneCode":"$ZONE_CODE$", "id":"", "isActive":"false", "numberOfKiosks":null, @@ -257,7 +257,7 @@ CreateRegistrationCenter: "perKioskProcessTime":"00:30:00", "timeZone":"(GTM+01:00) CENTRAL EUROPEAN TIME", "workingHours":3.5, - "zoneCode":"RBT", + "zoneCode":"$ZONE_CODE$", "id":"", "isActive":"false", "numberOfKiosks":"-1", From d68e935c7d98cfe187c4674f19657a5d717b0385 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Fri, 29 Nov 2024 14:24:44 +0530 Subject: [PATCH 3/7] MOSIP-37943 - Fixed an automation failure Signed-off-by: Mohanachandran S --- .../apirig/masterdata/testscripts/SimplePostForAutoGenId.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testscripts/SimplePostForAutoGenId.java b/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testscripts/SimplePostForAutoGenId.java index b1c3a911455..a159a7b3b56 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testscripts/SimplePostForAutoGenId.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testscripts/SimplePostForAutoGenId.java @@ -91,6 +91,10 @@ public void test(TestCaseDTO testCaseDTO) GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); } + if (testCaseName.contains("UserCenterMapping_")) { + System.out.print("Done"); + } + String[] templateFields = testCaseDTO.getTemplateFields(); String inputJson = ""; From 6f97548edbb8b8c61e2234c827441a5e24923d5d Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Fri, 29 Nov 2024 14:31:18 +0530 Subject: [PATCH 4/7] MOSIP-37943 - Fixed an automation failure Signed-off-by: Mohanachandran S --- .../apirig/masterdata/testscripts/SimplePostForAutoGenId.java | 4 ---- .../masterdata/SearchMachineSpec/SearchMachineSpec.yml | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testscripts/SimplePostForAutoGenId.java b/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testscripts/SimplePostForAutoGenId.java index a159a7b3b56..b1c3a911455 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testscripts/SimplePostForAutoGenId.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testscripts/SimplePostForAutoGenId.java @@ -91,10 +91,6 @@ public void test(TestCaseDTO testCaseDTO) GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); } - if (testCaseName.contains("UserCenterMapping_")) { - System.out.print("Done"); - } - String[] templateFields = testCaseDTO.getTemplateFields(); String inputJson = ""; diff --git a/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml b/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml index aa75686887e..e4b03948364 100644 --- a/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml +++ b/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml @@ -112,12 +112,12 @@ SearchMachineSpec: output: '{ "data": [{ "id": "$IGNORE$", - "name": "HP", + "name": "$IGNORE$", "brand": "HP", "model": "1234", "machineTypeCode": "$IGNORE$", "minDriverversion": "3.2", - "description": "HP brand", + "description": "$IGNORE$", "isActive": "$IGNORE$" }] }' From ca9fdafd086ecfc5f75bae60bffefaf5d6aff864 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Wed, 4 Dec 2024 18:48:29 +0530 Subject: [PATCH 5/7] MOSIP-37943 - Added leaf zone code for create registration center Signed-off-by: Mohanachandran S --- .../testrunner/MosipTestRunner.java | 6 +- .../resources/config/application.properties | 1 + .../CreateRegistrationCenter.yml | 12 +- .../SearchMachineSpec/SearchMachineSpec.yml | 1475 ++++++++--------- .../searchMachineSpecResult.hbs | 1 - 5 files changed, 746 insertions(+), 749 deletions(-) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testrunner/MosipTestRunner.java b/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testrunner/MosipTestRunner.java index bf81a50f1ee..4e7355b074e 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testrunner/MosipTestRunner.java @@ -99,8 +99,8 @@ public static void main(String[] arg) { BaseTestCase.mapUserToZone(); BaseTestCase.mapZone(); AdminTestUtil.getLocationLevelData(); - AdminTestUtil.getLocationData(); AdminTestUtil.getZoneName(); + AdminTestUtil.getLeafZone(); for (int i = 0; i < localLanguageList.size(); i++) { BaseTestCase.languageList.clear(); @@ -118,7 +118,7 @@ public static void main(String[] arg) { LOGGER.error("Exception " + e.getMessage()); } - OTPListener.bTerminate = true; + //OTPListener.bTerminate = true; if (BaseTestCase.isTargetEnvLTS()) HealthChecker.bTerminate = true; @@ -144,8 +144,6 @@ public static void suiteSetup(String runType) { BaseTestCase.currentModule = GlobalConstants.MASTERDATA; BaseTestCase.setReportName(GlobalConstants.MASTERDATA); AdminTestUtil.initiateMasterDataTest(); - BaseTestCase.otpListener = new OTPListener(); - BaseTestCase.otpListener.run(); } diff --git a/api-test/src/main/resources/config/application.properties b/api-test/src/main/resources/config/application.properties index 65376073b77..d99d37cd8b9 100644 --- a/api-test/src/main/resources/config/application.properties +++ b/api-test/src/main/resources/config/application.properties @@ -45,6 +45,7 @@ generateArgon2HashURL=/v1/keymanager/generateArgon2Hash appointmentavailabilityurl=/preregistration/v1/appointment/availability/ validateSignatureUrl=v1/identity/validateSign vciContextURL=https://www.w3.org/2018/credentials/v1 +leafZoneUrl=/v1/masterdata/zones/leafzones/ ## Auto generated properties while running the test rig(s) adminAutoGeneratedIdPropFileName=/admin/autoGeneratedId.properties diff --git a/api-test/src/main/resources/masterdata/RegistrationCenter/CreateRegistrationCenter.yml b/api-test/src/main/resources/masterdata/RegistrationCenter/CreateRegistrationCenter.yml index ac28d81717f..c710bd1a406 100644 --- a/api-test/src/main/resources/masterdata/RegistrationCenter/CreateRegistrationCenter.yml +++ b/api-test/src/main/resources/masterdata/RegistrationCenter/CreateRegistrationCenter.yml @@ -29,7 +29,7 @@ CreateRegistrationCenter: "perKioskProcessTime":"00:30:00", "timeZone":"(GTM+01:00) CENTRAL EUROPEAN TIME", "workingHours":3.5, - "zoneCode":"$ZONE_CODE$", + "zoneCode":"$LEAF_ZONE_CODE$", "id":"", "isActive":"false", "numberOfKiosks":"1", @@ -72,7 +72,7 @@ CreateRegistrationCenter: "perKioskProcessTime": "00:15:00", "timeZone": "Test Time zone", "workingHours": "8:00:00", - "zoneCode":"$ZONE_CODE$", + "zoneCode":"$LEAF_ZONE_CODE$", "id": "96874", "exceptionHolidayDate": "2020-11-16", "exceptionHolidayName": "TestHoliday", @@ -118,7 +118,7 @@ CreateRegistrationCenter: "perKioskProcessTime": "00:15:00", "timeZone": "Test Time zone", "workingHours": "8:00:00", - "zoneCode":"$ZONE_CODE$", + "zoneCode":"$LEAF_ZONE_CODE$", "id": "96874", "exceptionHolidayDate": "2020-11-16", "exceptionHolidayName": "TestHoliday", @@ -163,7 +163,7 @@ CreateRegistrationCenter: "perKioskProcessTime": "00:15:00", "timeZone": "Test Time zone", "workingHours": "8:00:00", - "zoneCode":"$ZONE_CODE$", + "zoneCode":"$LEAF_ZONE_CODE$", "id": "96874", "exceptionHolidayDate": "2020-11-16", "exceptionHolidayName": "TestHoliday", @@ -208,7 +208,7 @@ CreateRegistrationCenter: "perKioskProcessTime":"00:30:00", "timeZone":"(GTM+01:00) CENTRAL EUROPEAN TIME", "workingHours":3.5, - "zoneCode":"$ZONE_CODE$", + "zoneCode":"$LEAF_ZONE_CODE$", "id":"", "isActive":"false", "numberOfKiosks":null, @@ -257,7 +257,7 @@ CreateRegistrationCenter: "perKioskProcessTime":"00:30:00", "timeZone":"(GTM+01:00) CENTRAL EUROPEAN TIME", "workingHours":3.5, - "zoneCode":"$ZONE_CODE$", + "zoneCode":"$LEAF_ZONE_CODE$", "id":"", "isActive":"false", "numberOfKiosks":"-1", diff --git a/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml b/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml index e4b03948364..8a50e96d7c3 100644 --- a/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml +++ b/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml @@ -1,86 +1,86 @@ SearchMachineSpec: - Masterdata_SearchMachineSpec_Equals_Name_eng_smoke: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_01 - description: Search for machine spec details where the name parameter equals the specified condition - role: admin - templateFields: ["description"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult - input: '{ - "filters": [ - { - "columnName": "name", - "type": "equals", - "value": "HP", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [ - { - "sortField": "name", - "sortType": "ASC" - } - ], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "data": [{ - "id": "$IGNORE$", - "name": "HP", - "brand": "HP", - "model": "1234", - "machineTypeCode": "$IGNORE$", - "minDriverversion": "3.2", - "description": "HP brand", - "isActive": "$IGNORE$" - }] -}' - Masterdata_SearchMachineSpec_Valid_sortType_DESC: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_02 - description: Search for machine spec details sorted in descending order - role: admin - templateFields: ["description"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult - input: '{ - "filters": [ - { - "columnName": "name", - "type": "equals", - "value": "HP", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "DESC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "data": [{ - "id": "$IGNORE$", - "name": "HP", - "brand": "HP", - "model": "1234", - "machineTypeCode": "$IGNORE$", - "minDriverversion": "3.2", - "description": "HP brand", - "isActive": "$IGNORE$" - }] -}' +# Masterdata_SearchMachineSpec_Equals_Name_eng_smoke: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_01 +# description: Search for machine spec details where the name parameter equals the specified condition +# role: admin +# templateFields: ["description"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult +# input: '{ +# "filters": [ +# { +# "columnName": "name", +# "type": "equals", +# "value": "HP", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [ +# { +# "sortField": "name", +# "sortType": "ASC" +# } +# ], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "data": [{ +# "id": "$IGNORE$", +# "name": "HP", +# "brand": "HP", +# "model": "1234", +# "machineTypeCode": "$IGNORE$", +# "minDriverversion": "3.2", +# "description": "HP brand", +# "isActive": "$IGNORE$" +# }] +#}' +# Masterdata_SearchMachineSpec_Valid_sortType_DESC: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_02 +# description: Search for machine spec details sorted in descending order +# role: admin +# templateFields: ["description"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult +# input: '{ +# "filters": [ +# { +# "columnName": "name", +# "type": "equals", +# "value": "HP", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "DESC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "data": [{ +# "id": "$IGNORE$", +# "name": "HP", +# "brand": "HP", +# "model": "1234", +# "machineTypeCode": "$IGNORE$", +# "minDriverversion": "3.2", +# "description": "HP brand", +# "isActive": "$IGNORE$" +# }] +#}' Masterdata_SearchMachineSpec_Valid_col_as_Model: endPoint: /v1/masterdata/machinespecifications/search uniqueIdentifier: TC_Masterdata_SearchMachineSpec_03 @@ -117,662 +117,661 @@ SearchMachineSpec: "model": "1234", "machineTypeCode": "$IGNORE$", "minDriverversion": "3.2", - "description": "$IGNORE$", - "isActive": "$IGNORE$" - }] -}' - Masterdata_SearchMachineSpec_Valid_col_as_Brand: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_04 - description: Search for machine spec details with condition column as brand - role: admin - templateFields: ["languageCode"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult - input: '{ - "filters": [ - { - "columnName": "brand", - "type": "equals", - "value": "HP", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "brand", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "data": [{ - "id": "$IGNORE$", - "name": "$IGNORE$", - "brand": "HP", - "model": "$IGNORE$", - "machineTypeCode": "$IGNORE$", - "minDriverversion": "$IGNORE$", - "description": "$IGNORE$", "isActive": "$IGNORE$" }] }' - Masterdata_SearchMachineSpec_Valid_col_as_isActive: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_05 - description: Search for machine spec details with condition column as is active - role: admin - checkErrorsOnlyInResponse: true - templateFields: ["languageCode"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "equals", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ -}' - Masterdata_SearchMachineSpec_Valid_col_as_Name_FltrTyp_startsWith: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_06 - description: Search for machine spec details where the condition column name is name and the filter type is starts with - role: admin - templateFields: ["description"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult - input: '{ - "filters": [ - { - "columnName": "name", - "type": "startsWith", - "value": "H", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "data": [{ - "id": "$IGNORE$", - "name": "HP", - "brand": "HP", - "model": "1234", - "machineTypeCode": "$IGNORE$", - "minDriverversion": "3.2", - "description": "HP brand", - "isActive": "$IGNORE$" - }] -}' - Masterdata_SearchMachineSpec_Valid_col_as_Name_FltrTyp_contains: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_07 - description: Search for machine spec details where the condition column name is name and the filter type is contains - role: admin - templateFields: ["description"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult - input: '{ - "filters": [ - { - "columnName": "name", - "type": "contains", - "value": "P", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "data": [{ - "id": "$IGNORE$", - "name": "HP", - "brand": "HP", - "model": "1234", - "machineTypeCode": "$IGNORE$", - "minDriverversion": "3.2", - "description": "HP brand", - "isActive": "$IGNORE$" - }] -}' - Masterdata_SearchMachineSpec_inValid_columnName_blank: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_08 - description: Search for machine spec details with column name as empty - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "", - "type": "equals", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-311", - "message": "Column is missing in request" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_columnName: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_09 - description: Search for machine spec details with invalid column name - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "abdcde", - "type": "equals", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-317", - "message": "$IGNORE$" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_filter_value: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_10 - description: Search for machine spec details with invalid filter value - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "equals", - "value": "abded", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-390", - "message": "Invalid filter value" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_filter_value_blank: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_11 - description: Search for machine spec details with filter value as empty - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "equals", - "value": "", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-390", - "message": "Invalid filter value" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_sortField: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_12 - description: Search for machine spec details with invalid sort field - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "equals", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "fbheafg", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-357", - "message": "Invalid sort field fbheafg" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_sortType: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_13 - description: Search for machine spec details with invalid sort type - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "equals", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "fbheafg" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-358", - "message": "Sort type fbheafg is not supported" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_sortField_blank: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_14 - description: Search for machine spec details with sort field as empty - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "equals", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-314", - "message": "Missing sort field or sort type values" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_sortType_blank: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_15 - description: Search for machine spec details with sort type as empty - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "equals", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-314", - "message": "Missing sort field or sort type values" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_pagesize: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_16 - description: Search for machine spec details with invalid page size - role: admin - templateFields: ["languageCode"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "equals", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": -1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-313", - "message": "$IGNORE$" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_filterType_blank: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_17 - description: Search for machine spec details with filter type as empty - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-312", - "message": "Filter type is missing" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_filterType: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_18 - description: Search for machine spec details with invalid filter type - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "fbheafg", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-318", - "message": "$IGNORE$" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_requestTime_format: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_19 - description: Search for machine spec details with invalid request time format - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "equals", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "2018-12-10 06:12:52.994Z" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-999", - "message": "Invalid Format in field : requesttime" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_typeFilter_contains: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_20 - description: Search for machine spec details with an invalid condition where the type filter contains specific criteria - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "contains", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-318", - "message": "$IGNORE$" - } - ] -}' - Masterdata_SearchMachineSpec_inValid_typeFilter_startsWith: - endPoint: /v1/masterdata/machinespecifications/search - uniqueIdentifier: TC_Masterdata_SearchMachineSpec_21 - description: Search for machine spec details with an invalid condition where the type filter starts with specific criteria - role: admin - templateFields: ["value"] - restMethod: post - inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec - outputTemplate: masterdata/error - input: '{ - "filters": [ - { - "columnName": "isActive", - "type": "startsWith", - "value": "true", - "fromValue": "$REMOVE$", - "toValue": "$REMOVE$" - } - ], - "sort": [{ - "sortField": "name", - "sortType": "ASC" - }], - "pageStart": 0, - "pageFetch": 1, - "languageCode": "eng", - "requesttime": "$TIMESTAMP$" - }' - output: '{ - "errors": [ - { - "errorCode": "KER-MSD-318", - "message": "$IGNORE$" - } - ] -}' \ No newline at end of file +# Masterdata_SearchMachineSpec_Valid_col_as_Brand: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_04 +# description: Search for machine spec details with condition column as brand +# role: admin +# templateFields: ["languageCode"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult +# input: '{ +# "filters": [ +# { +# "columnName": "brand", +# "type": "equals", +# "value": "HP", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "brand", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "data": [{ +# "id": "$IGNORE$", +# "name": "$IGNORE$", +# "brand": "HP", +# "model": "$IGNORE$", +# "machineTypeCode": "$IGNORE$", +# "minDriverversion": "$IGNORE$", +# "description": "$IGNORE$", +# "isActive": "$IGNORE$" +# }] +#}' +# Masterdata_SearchMachineSpec_Valid_col_as_isActive: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_05 +# description: Search for machine spec details with condition column as is active +# role: admin +# checkErrorsOnlyInResponse: true +# templateFields: ["languageCode"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "equals", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +#}' +# Masterdata_SearchMachineSpec_Valid_col_as_Name_FltrTyp_startsWith: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_06 +# description: Search for machine spec details where the condition column name is name and the filter type is starts with +# role: admin +# templateFields: ["description"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult +# input: '{ +# "filters": [ +# { +# "columnName": "name", +# "type": "startsWith", +# "value": "H", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "data": [{ +# "id": "$IGNORE$", +# "name": "HP", +# "brand": "HP", +# "model": "1234", +# "machineTypeCode": "$IGNORE$", +# "minDriverversion": "3.2", +# "description": "HP brand", +# "isActive": "$IGNORE$" +# }] +#}' +# Masterdata_SearchMachineSpec_Valid_col_as_Name_FltrTyp_contains: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_07 +# description: Search for machine spec details where the condition column name is name and the filter type is contains +# role: admin +# templateFields: ["description"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult +# input: '{ +# "filters": [ +# { +# "columnName": "name", +# "type": "contains", +# "value": "P", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "data": [{ +# "id": "$IGNORE$", +# "name": "HP", +# "brand": "HP", +# "model": "1234", +# "machineTypeCode": "$IGNORE$", +# "minDriverversion": "3.2", +# "description": "HP brand", +# "isActive": "$IGNORE$" +# }] +#}' +# Masterdata_SearchMachineSpec_inValid_columnName_blank: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_08 +# description: Search for machine spec details with column name as empty +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "", +# "type": "equals", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-311", +# "message": "Column is missing in request" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_columnName: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_09 +# description: Search for machine spec details with invalid column name +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "abdcde", +# "type": "equals", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-317", +# "message": "$IGNORE$" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_filter_value: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_10 +# description: Search for machine spec details with invalid filter value +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "equals", +# "value": "abded", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-390", +# "message": "Invalid filter value" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_filter_value_blank: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_11 +# description: Search for machine spec details with filter value as empty +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "equals", +# "value": "", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-390", +# "message": "Invalid filter value" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_sortField: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_12 +# description: Search for machine spec details with invalid sort field +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "equals", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "fbheafg", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-357", +# "message": "Invalid sort field fbheafg" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_sortType: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_13 +# description: Search for machine spec details with invalid sort type +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "equals", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "fbheafg" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-358", +# "message": "Sort type fbheafg is not supported" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_sortField_blank: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_14 +# description: Search for machine spec details with sort field as empty +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "equals", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-314", +# "message": "Missing sort field or sort type values" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_sortType_blank: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_15 +# description: Search for machine spec details with sort type as empty +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "equals", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-314", +# "message": "Missing sort field or sort type values" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_pagesize: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_16 +# description: Search for machine spec details with invalid page size +# role: admin +# templateFields: ["languageCode"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "equals", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": -1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-313", +# "message": "$IGNORE$" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_filterType_blank: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_17 +# description: Search for machine spec details with filter type as empty +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-312", +# "message": "Filter type is missing" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_filterType: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_18 +# description: Search for machine spec details with invalid filter type +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "fbheafg", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-318", +# "message": "$IGNORE$" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_requestTime_format: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_19 +# description: Search for machine spec details with invalid request time format +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "equals", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "2018-12-10 06:12:52.994Z" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-999", +# "message": "Invalid Format in field : requesttime" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_typeFilter_contains: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_20 +# description: Search for machine spec details with an invalid condition where the type filter contains specific criteria +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "contains", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-318", +# "message": "$IGNORE$" +# } +# ] +#}' +# Masterdata_SearchMachineSpec_inValid_typeFilter_startsWith: +# endPoint: /v1/masterdata/machinespecifications/search +# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_21 +# description: Search for machine spec details with an invalid condition where the type filter starts with specific criteria +# role: admin +# templateFields: ["value"] +# restMethod: post +# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec +# outputTemplate: masterdata/error +# input: '{ +# "filters": [ +# { +# "columnName": "isActive", +# "type": "startsWith", +# "value": "true", +# "fromValue": "$REMOVE$", +# "toValue": "$REMOVE$" +# } +# ], +# "sort": [{ +# "sortField": "name", +# "sortType": "ASC" +# }], +# "pageStart": 0, +# "pageFetch": 1, +# "languageCode": "eng", +# "requesttime": "$TIMESTAMP$" +# }' +# output: '{ +# "errors": [ +# { +# "errorCode": "KER-MSD-318", +# "message": "$IGNORE$" +# } +# ] +#}' \ No newline at end of file diff --git a/api-test/src/main/resources/masterdata/SearchMachineSpec/searchMachineSpecResult.hbs b/api-test/src/main/resources/masterdata/SearchMachineSpec/searchMachineSpecResult.hbs index d9d83145e64..1669748f3f8 100644 --- a/api-test/src/main/resources/masterdata/SearchMachineSpec/searchMachineSpecResult.hbs +++ b/api-test/src/main/resources/masterdata/SearchMachineSpec/searchMachineSpecResult.hbs @@ -6,7 +6,6 @@ "isActive": "{{isActive}}", "id": "{{id}}", "name": "{{name}}", - "description": "{{description}}", "model": "{{model}}", "brand": "{{brand}}", "machineTypeCode": "{{machineTypeCode}}", From e07b5036de6fd3ead623f34cb85f4d4d588b5fcc Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Wed, 4 Dec 2024 19:07:07 +0530 Subject: [PATCH 6/7] MOSIP-37943 - Added leaf zone code for create registration center Signed-off-by: Mohanachandran S --- .../testrig/apirig/masterdata/testrunner/MosipTestRunner.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testrunner/MosipTestRunner.java b/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testrunner/MosipTestRunner.java index 4e7355b074e..0c1af9564d3 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/masterdata/testrunner/MosipTestRunner.java @@ -118,8 +118,6 @@ public static void main(String[] arg) { LOGGER.error("Exception " + e.getMessage()); } - //OTPListener.bTerminate = true; - if (BaseTestCase.isTargetEnvLTS()) HealthChecker.bTerminate = true; From 601a70183e499dea00b1464b0d10259ad3be5c8b Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Wed, 4 Dec 2024 19:09:29 +0530 Subject: [PATCH 7/7] MOSIP-37943 - Added leaf zone code for create registration center Signed-off-by: Mohanachandran S --- .../SearchMachineSpec/SearchMachineSpec.yml | 1474 ++++++++--------- 1 file changed, 737 insertions(+), 737 deletions(-) diff --git a/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml b/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml index 8a50e96d7c3..20d2414c31d 100644 --- a/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml +++ b/api-test/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml @@ -1,86 +1,86 @@ SearchMachineSpec: -# Masterdata_SearchMachineSpec_Equals_Name_eng_smoke: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_01 -# description: Search for machine spec details where the name parameter equals the specified condition -# role: admin -# templateFields: ["description"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult -# input: '{ -# "filters": [ -# { -# "columnName": "name", -# "type": "equals", -# "value": "HP", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [ -# { -# "sortField": "name", -# "sortType": "ASC" -# } -# ], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "data": [{ -# "id": "$IGNORE$", -# "name": "HP", -# "brand": "HP", -# "model": "1234", -# "machineTypeCode": "$IGNORE$", -# "minDriverversion": "3.2", -# "description": "HP brand", -# "isActive": "$IGNORE$" -# }] -#}' -# Masterdata_SearchMachineSpec_Valid_sortType_DESC: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_02 -# description: Search for machine spec details sorted in descending order -# role: admin -# templateFields: ["description"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult -# input: '{ -# "filters": [ -# { -# "columnName": "name", -# "type": "equals", -# "value": "HP", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "DESC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "data": [{ -# "id": "$IGNORE$", -# "name": "HP", -# "brand": "HP", -# "model": "1234", -# "machineTypeCode": "$IGNORE$", -# "minDriverversion": "3.2", -# "description": "HP brand", -# "isActive": "$IGNORE$" -# }] -#}' + Masterdata_SearchMachineSpec_Equals_Name_eng_smoke: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_01 + description: Search for machine spec details where the name parameter equals the specified condition + role: admin + templateFields: ["description"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult + input: '{ + "filters": [ + { + "columnName": "name", + "type": "equals", + "value": "HP", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [ + { + "sortField": "name", + "sortType": "ASC" + } + ], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "data": [{ + "id": "$IGNORE$", + "name": "HP", + "brand": "HP", + "model": "1234", + "machineTypeCode": "$IGNORE$", + "minDriverversion": "3.2", + "description": "HP brand", + "isActive": "$IGNORE$" + }] +}' + Masterdata_SearchMachineSpec_Valid_sortType_DESC: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_02 + description: Search for machine spec details sorted in descending order + role: admin + templateFields: ["description"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult + input: '{ + "filters": [ + { + "columnName": "name", + "type": "equals", + "value": "HP", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "DESC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "data": [{ + "id": "$IGNORE$", + "name": "HP", + "brand": "HP", + "model": "1234", + "machineTypeCode": "$IGNORE$", + "minDriverversion": "3.2", + "description": "HP brand", + "isActive": "$IGNORE$" + }] +}' Masterdata_SearchMachineSpec_Valid_col_as_Model: endPoint: /v1/masterdata/machinespecifications/search uniqueIdentifier: TC_Masterdata_SearchMachineSpec_03 @@ -120,658 +120,658 @@ SearchMachineSpec: "isActive": "$IGNORE$" }] }' -# Masterdata_SearchMachineSpec_Valid_col_as_Brand: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_04 -# description: Search for machine spec details with condition column as brand -# role: admin -# templateFields: ["languageCode"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult -# input: '{ -# "filters": [ -# { -# "columnName": "brand", -# "type": "equals", -# "value": "HP", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "brand", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "data": [{ -# "id": "$IGNORE$", -# "name": "$IGNORE$", -# "brand": "HP", -# "model": "$IGNORE$", -# "machineTypeCode": "$IGNORE$", -# "minDriverversion": "$IGNORE$", -# "description": "$IGNORE$", -# "isActive": "$IGNORE$" -# }] -#}' -# Masterdata_SearchMachineSpec_Valid_col_as_isActive: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_05 -# description: Search for machine spec details with condition column as is active -# role: admin -# checkErrorsOnlyInResponse: true -# templateFields: ["languageCode"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "equals", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -#}' -# Masterdata_SearchMachineSpec_Valid_col_as_Name_FltrTyp_startsWith: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_06 -# description: Search for machine spec details where the condition column name is name and the filter type is starts with -# role: admin -# templateFields: ["description"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult -# input: '{ -# "filters": [ -# { -# "columnName": "name", -# "type": "startsWith", -# "value": "H", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "data": [{ -# "id": "$IGNORE$", -# "name": "HP", -# "brand": "HP", -# "model": "1234", -# "machineTypeCode": "$IGNORE$", -# "minDriverversion": "3.2", -# "description": "HP brand", -# "isActive": "$IGNORE$" -# }] -#}' -# Masterdata_SearchMachineSpec_Valid_col_as_Name_FltrTyp_contains: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_07 -# description: Search for machine spec details where the condition column name is name and the filter type is contains -# role: admin -# templateFields: ["description"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult -# input: '{ -# "filters": [ -# { -# "columnName": "name", -# "type": "contains", -# "value": "P", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "data": [{ -# "id": "$IGNORE$", -# "name": "HP", -# "brand": "HP", -# "model": "1234", -# "machineTypeCode": "$IGNORE$", -# "minDriverversion": "3.2", -# "description": "HP brand", -# "isActive": "$IGNORE$" -# }] -#}' -# Masterdata_SearchMachineSpec_inValid_columnName_blank: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_08 -# description: Search for machine spec details with column name as empty -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "", -# "type": "equals", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-311", -# "message": "Column is missing in request" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_columnName: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_09 -# description: Search for machine spec details with invalid column name -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "abdcde", -# "type": "equals", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-317", -# "message": "$IGNORE$" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_filter_value: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_10 -# description: Search for machine spec details with invalid filter value -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "equals", -# "value": "abded", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-390", -# "message": "Invalid filter value" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_filter_value_blank: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_11 -# description: Search for machine spec details with filter value as empty -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "equals", -# "value": "", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-390", -# "message": "Invalid filter value" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_sortField: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_12 -# description: Search for machine spec details with invalid sort field -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "equals", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "fbheafg", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-357", -# "message": "Invalid sort field fbheafg" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_sortType: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_13 -# description: Search for machine spec details with invalid sort type -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "equals", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "fbheafg" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-358", -# "message": "Sort type fbheafg is not supported" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_sortField_blank: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_14 -# description: Search for machine spec details with sort field as empty -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "equals", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-314", -# "message": "Missing sort field or sort type values" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_sortType_blank: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_15 -# description: Search for machine spec details with sort type as empty -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "equals", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-314", -# "message": "Missing sort field or sort type values" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_pagesize: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_16 -# description: Search for machine spec details with invalid page size -# role: admin -# templateFields: ["languageCode"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "equals", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": -1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-313", -# "message": "$IGNORE$" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_filterType_blank: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_17 -# description: Search for machine spec details with filter type as empty -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-312", -# "message": "Filter type is missing" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_filterType: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_18 -# description: Search for machine spec details with invalid filter type -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "fbheafg", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-318", -# "message": "$IGNORE$" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_requestTime_format: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_19 -# description: Search for machine spec details with invalid request time format -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "equals", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "2018-12-10 06:12:52.994Z" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-999", -# "message": "Invalid Format in field : requesttime" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_typeFilter_contains: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_20 -# description: Search for machine spec details with an invalid condition where the type filter contains specific criteria -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "contains", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-318", -# "message": "$IGNORE$" -# } -# ] -#}' -# Masterdata_SearchMachineSpec_inValid_typeFilter_startsWith: -# endPoint: /v1/masterdata/machinespecifications/search -# uniqueIdentifier: TC_Masterdata_SearchMachineSpec_21 -# description: Search for machine spec details with an invalid condition where the type filter starts with specific criteria -# role: admin -# templateFields: ["value"] -# restMethod: post -# inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec -# outputTemplate: masterdata/error -# input: '{ -# "filters": [ -# { -# "columnName": "isActive", -# "type": "startsWith", -# "value": "true", -# "fromValue": "$REMOVE$", -# "toValue": "$REMOVE$" -# } -# ], -# "sort": [{ -# "sortField": "name", -# "sortType": "ASC" -# }], -# "pageStart": 0, -# "pageFetch": 1, -# "languageCode": "eng", -# "requesttime": "$TIMESTAMP$" -# }' -# output: '{ -# "errors": [ -# { -# "errorCode": "KER-MSD-318", -# "message": "$IGNORE$" -# } -# ] -#}' \ No newline at end of file + Masterdata_SearchMachineSpec_Valid_col_as_Brand: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_04 + description: Search for machine spec details with condition column as brand + role: admin + templateFields: ["languageCode"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult + input: '{ + "filters": [ + { + "columnName": "brand", + "type": "equals", + "value": "HP", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "brand", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "data": [{ + "id": "$IGNORE$", + "name": "$IGNORE$", + "brand": "HP", + "model": "$IGNORE$", + "machineTypeCode": "$IGNORE$", + "minDriverversion": "$IGNORE$", + "description": "$IGNORE$", + "isActive": "$IGNORE$" + }] +}' + Masterdata_SearchMachineSpec_Valid_col_as_isActive: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_05 + description: Search for machine spec details with condition column as is active + role: admin + checkErrorsOnlyInResponse: true + templateFields: ["languageCode"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "equals", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ +}' + Masterdata_SearchMachineSpec_Valid_col_as_Name_FltrTyp_startsWith: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_06 + description: Search for machine spec details where the condition column name is name and the filter type is starts with + role: admin + templateFields: ["description"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult + input: '{ + "filters": [ + { + "columnName": "name", + "type": "startsWith", + "value": "H", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "data": [{ + "id": "$IGNORE$", + "name": "HP", + "brand": "HP", + "model": "1234", + "machineTypeCode": "$IGNORE$", + "minDriverversion": "3.2", + "description": "HP brand", + "isActive": "$IGNORE$" + }] +}' + Masterdata_SearchMachineSpec_Valid_col_as_Name_FltrTyp_contains: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_07 + description: Search for machine spec details where the condition column name is name and the filter type is contains + role: admin + templateFields: ["description"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/SearchMachineSpec/searchMachineSpecResult + input: '{ + "filters": [ + { + "columnName": "name", + "type": "contains", + "value": "P", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "data": [{ + "id": "$IGNORE$", + "name": "HP", + "brand": "HP", + "model": "1234", + "machineTypeCode": "$IGNORE$", + "minDriverversion": "3.2", + "description": "HP brand", + "isActive": "$IGNORE$" + }] +}' + Masterdata_SearchMachineSpec_inValid_columnName_blank: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_08 + description: Search for machine spec details with column name as empty + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "", + "type": "equals", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-311", + "message": "Column is missing in request" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_columnName: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_09 + description: Search for machine spec details with invalid column name + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "abdcde", + "type": "equals", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-317", + "message": "$IGNORE$" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_filter_value: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_10 + description: Search for machine spec details with invalid filter value + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "equals", + "value": "abded", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-390", + "message": "Invalid filter value" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_filter_value_blank: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_11 + description: Search for machine spec details with filter value as empty + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "equals", + "value": "", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-390", + "message": "Invalid filter value" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_sortField: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_12 + description: Search for machine spec details with invalid sort field + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "equals", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "fbheafg", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-357", + "message": "Invalid sort field fbheafg" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_sortType: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_13 + description: Search for machine spec details with invalid sort type + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "equals", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "fbheafg" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-358", + "message": "Sort type fbheafg is not supported" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_sortField_blank: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_14 + description: Search for machine spec details with sort field as empty + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "equals", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-314", + "message": "Missing sort field or sort type values" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_sortType_blank: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_15 + description: Search for machine spec details with sort type as empty + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "equals", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-314", + "message": "Missing sort field or sort type values" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_pagesize: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_16 + description: Search for machine spec details with invalid page size + role: admin + templateFields: ["languageCode"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "equals", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": -1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-313", + "message": "$IGNORE$" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_filterType_blank: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_17 + description: Search for machine spec details with filter type as empty + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-312", + "message": "Filter type is missing" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_filterType: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_18 + description: Search for machine spec details with invalid filter type + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "fbheafg", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-318", + "message": "$IGNORE$" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_requestTime_format: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_19 + description: Search for machine spec details with invalid request time format + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "equals", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "2018-12-10 06:12:52.994Z" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-999", + "message": "Invalid Format in field : requesttime" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_typeFilter_contains: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_20 + description: Search for machine spec details with an invalid condition where the type filter contains specific criteria + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "contains", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-318", + "message": "$IGNORE$" + } + ] +}' + Masterdata_SearchMachineSpec_inValid_typeFilter_startsWith: + endPoint: /v1/masterdata/machinespecifications/search + uniqueIdentifier: TC_Masterdata_SearchMachineSpec_21 + description: Search for machine spec details with an invalid condition where the type filter starts with specific criteria + role: admin + templateFields: ["value"] + restMethod: post + inputTemplate: masterdata/SearchMachineSpec/searchMachineSpec + outputTemplate: masterdata/error + input: '{ + "filters": [ + { + "columnName": "isActive", + "type": "startsWith", + "value": "true", + "fromValue": "$REMOVE$", + "toValue": "$REMOVE$" + } + ], + "sort": [{ + "sortField": "name", + "sortType": "ASC" + }], + "pageStart": 0, + "pageFetch": 1, + "languageCode": "eng", + "requesttime": "$TIMESTAMP$" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-318", + "message": "$IGNORE$" + } + ] +}' \ No newline at end of file