From f3d2f403b0c752ebda92f34ce04b6eeda8642066 Mon Sep 17 00:00:00 2001 From: Mohanachandran S <165888272+mohanachandran-s@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:42:51 +0530 Subject: [PATCH] MOSIP-36853 - updated the output validation for update device api (#1063) * MOSIP-36555 - Removed the OTPListener initializing and cleaned up Signed-off-by: Mohanachandran S * MOSIP-36275 - Fixed automation failures Signed-off-by: Mohanachandran S * MOSIP-36275 - Added output validation for get misp api Signed-off-by: Mohanachandran S * MOSIP-36853 Signed-off-by: Mohanachandran S * MOSIP-38648 - Update the validation for update device test case and POM Signed-off-by: Mohanachandran S --------- Signed-off-by: Mohanachandran S --- api-test/pom.xml | 4 ++-- .../GetMISPLicenseByMispID/GetMISPLicenseByMispID.yml | 2 +- .../device/makeAndModel/update/UpdateDeviceDetail.yml | 10 +++------- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/api-test/pom.xml b/api-test/pom.xml index a921d119b4..142842505b 100644 --- a/api-test/pom.xml +++ b/api-test/pom.xml @@ -54,9 +54,9 @@ - io.mosip.testrig.apirig.apitest.commons + io.mosip.testrig.apitest.commons apitest-commons - 1.2.2-SNAPSHOT + 1.3.0 diff --git a/api-test/src/main/resources/partner/MispLicense/GetMISPLicenseByMispID/GetMISPLicenseByMispID.yml b/api-test/src/main/resources/partner/MispLicense/GetMISPLicenseByMispID/GetMISPLicenseByMispID.yml index e9aca87ff7..e85e9ffa82 100644 --- a/api-test/src/main/resources/partner/MispLicense/GetMISPLicenseByMispID/GetMISPLicenseByMispID.yml +++ b/api-test/src/main/resources/partner/MispLicense/GetMISPLicenseByMispID/GetMISPLicenseByMispID.yml @@ -12,7 +12,7 @@ GetMISPLicenseByMispID: }' output: '{ "providerId": "MISP-AUTOMATION", - "licenseKeyStatus": "De-active" + "licenseKeyStatus": "Active" }' Partner_GetMISPLicenseByMispID__Active_allValid_smoke: diff --git a/api-test/src/main/resources/partner/device/makeAndModel/update/UpdateDeviceDetail.yml b/api-test/src/main/resources/partner/device/makeAndModel/update/UpdateDeviceDetail.yml index 3a750d6ee1..22f7175f2c 100644 --- a/api-test/src/main/resources/partner/device/makeAndModel/update/UpdateDeviceDetail.yml +++ b/api-test/src/main/resources/partner/device/makeAndModel/update/UpdateDeviceDetail.yml @@ -23,14 +23,15 @@ createServiceToUpdateDeviceDetail: output: '{ }' - Partner_ServiceToUpdateDeviceDetail_afterReject_InValid: + Partner_ServiceToUpdateDeviceDetail_afterReject_All_Valid_Smoke: endPoint: /v1/partnermanager/devicedetail uniqueIdentifier: TC_PMS_createServiceToUpdateDeviceDetail_02 description: Create Service To Update DeviceDetail afterReject role: partner + checkErrorsOnlyInResponse: true restMethod: put inputTemplate: partner/device/makeAndModel/update/updateDeviceDetail - outputTemplate: partner/error + outputTemplate: partner/device/makeAndModel/update/updateDeviceDetailResult input: '{ "deviceProviderId": "Tech-123", "deviceSubTypeCode": "Single", @@ -44,11 +45,6 @@ createServiceToUpdateDeviceDetail: "requesttime": "$TIMESTAMP$" }' output: '{ - "errors": [ - { - "errorCode": "PMS_COR_001" - } - ] }' Partner_ServiceToUpdateDeviceDetail_Missing_InputParameter_DeviceId: