diff --git a/api-test/pom.xml b/api-test/pom.xml index d3fd8345b3..7f0266fb2b 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.1-SNAPSHOT diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithBodyAndPathParamsAndAutoGenId.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithBodyAndPathParamsAndAutoGenId.java new file mode 100644 index 0000000000..47efa385ad --- /dev/null +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithBodyAndPathParamsAndAutoGenId.java @@ -0,0 +1,151 @@ +package io.mosip.testrig.apirig.testscripts; + +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import org.apache.log4j.Level; +import org.apache.log4j.Logger; +import org.json.JSONObject; +import org.testng.ITest; +import org.testng.ITestContext; +import org.testng.ITestResult; +import org.testng.Reporter; +import org.testng.SkipException; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; +import org.testng.internal.BaseTestMethod; +import org.testng.internal.TestResult; + +import io.mosip.testrig.apirig.dto.OutputValidationDto; +import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.testrunner.BaseTestCase; +import io.mosip.testrig.apirig.testrunner.HealthChecker; +import io.mosip.testrig.apirig.utils.AdminTestException; +import io.mosip.testrig.apirig.utils.AdminTestUtil; +import io.mosip.testrig.apirig.utils.AuthenticationTestException; +import io.mosip.testrig.apirig.utils.ConfigManager; +import io.mosip.testrig.apirig.utils.GlobalConstants; +import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PMSRevampConfigManger; +import io.mosip.testrig.apirig.utils.ReportUtil; +import io.restassured.response.Response; + +public class PostWithBodyAndPathParamsAndAutoGenId extends AdminTestUtil implements ITest { + private static final Logger logger = Logger.getLogger(PostWithBodyAndPathParamsAndAutoGenId.class); + protected String testCaseName = ""; + String pathParams = null; + public String idKeyName = null; + String headers = null; + public Response response = null; + + @BeforeClass + public static void setLogLevel() { + if (PMSRevampConfigManger.IsDebugEnabled()) + logger.setLevel(Level.ALL); + else + logger.setLevel(Level.ERROR); + } + + /** + * get current testcaseName + */ + @Override + public String getTestName() { + return testCaseName; + } + /** + * Data provider class provides test case list + * + * @return object of data provider + */ + @DataProvider(name = "testcaselist") + public Object[] getTestCaseList(ITestContext context) { + String ymlFile = context.getCurrentXmlTest().getLocalParameters().get("ymlFile"); + pathParams = context.getCurrentXmlTest().getLocalParameters().get("pathParams"); + idKeyName = context.getCurrentXmlTest().getLocalParameters().get("idKeyName"); + headers = context.getCurrentXmlTest().getLocalParameters().get("headers"); + logger.info("Started executing yml: " + ymlFile); + return getYmlTestData(ymlFile); + } + + /** + * Test method for OTP Generation execution + * + * @param objTestParameters + * @param testScenario + * @param testcaseName + * @throws AuthenticationTestException + * @throws AdminTestException + */ + @Test(dataProvider = "testcaselist") + public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { + testCaseName = testCaseDTO.getTestCaseName(); + String[] templateFields = testCaseDTO.getTemplateFields(); + + if (HealthChecker.signalTerminateExecution) { + throw new SkipException( + GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); + } + + testCaseDTO = AdminTestUtil.filterHbs(testCaseDTO); + String inputJson = getJsonFromTemplate(testCaseDTO.getInput(), testCaseDTO.getInputTemplate()); + String outputJson = getJsonFromTemplate(testCaseDTO.getOutput(), testCaseDTO.getOutputTemplate()); + + if (testCaseDTO.getTemplateFields() != null && templateFields.length > 0) { + ArrayList inputtestCases = AdminTestUtil.getInputTestCase(testCaseDTO); + ArrayList outputtestcase = AdminTestUtil.getOutputTestCase(testCaseDTO); + for (int i = 0; i < languageList.size(); i++) { + response = postWithPathParamsBodyAndCookie(ApplnURI + testCaseDTO.getEndPoint(), + getJsonFromTemplate(inputtestCases.get(i).toString(), testCaseDTO.getInputTemplate()), + COOKIENAME, testCaseDTO.getRole(), testCaseDTO.getTestCaseName(), pathParams); + + Map> ouputValid = OutputValidationUtil.doJsonOutputValidation( + response.asString(), + getJsonFromTemplate(outputtestcase.get(i).toString(), testCaseDTO.getOutputTemplate()), + testCaseDTO, response.getStatusCode()); + Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); + + if (!OutputValidationUtil.publishOutputResult(ouputValid)) + throw new AdminTestException("Failed at output validation"); + } + } + + else { + response = postWithPathParamsBodyAndCookieForAutoGeneratedId(ApplnURI + testCaseDTO.getEndPoint(), inputJson, COOKIENAME, + testCaseDTO.getRole(), testCaseDTO.getTestCaseName(), pathParams,idKeyName); + } + Map> ouputValid = OutputValidationUtil + .doJsonOutputValidation(response.asString(), outputJson, testCaseDTO, response.getStatusCode()); + Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); + + if (!OutputValidationUtil.publishOutputResult(ouputValid)) + throw new AdminTestException("Failed at output validation"); + } + + + + + /** + * The method ser current test name to result + * + * @param result + */ + @AfterMethod(alwaysRun = true) + public void setResultTestName(ITestResult result) { + try { + Field method = TestResult.class.getDeclaredField("m_method"); + method.setAccessible(true); + method.set(result, result.getMethod().clone()); + BaseTestMethod baseTestMethod = (BaseTestMethod) result.getMethod(); + Field f = baseTestMethod.getClass().getSuperclass().getDeclaredField("m_methodName"); + f.setAccessible(true); + f.set(baseTestMethod, testCaseName); + } catch (Exception e) { + Reporter.log("Exception : " + e.getMessage()); + } + } +} diff --git a/api-test/src/main/resources/pms/ApproveMappingDeviceToSbi/ApproveMappingDeviceToSbi.hbs b/api-test/src/main/resources/pms/ApproveMappingDeviceToSbi/ApproveMappingDeviceToSbi.hbs index 2c1f4f29c6..8843dabe8c 100644 --- a/api-test/src/main/resources/pms/ApproveMappingDeviceToSbi/ApproveMappingDeviceToSbi.hbs +++ b/api-test/src/main/resources/pms/ApproveMappingDeviceToSbi/ApproveMappingDeviceToSbi.hbs @@ -1,10 +1,12 @@ { -"id": "mosip.pms.approve.mapping.device.to.sbi.post", +"id": "mosip.pms.approval.mapping.device.to.sbi.post", "version": "1.0", + "metadata": {}, + "deviceDetailId": "{{deviceDetailId}}", "requestTime": "{{requestTime}}", "request": { "partnerId": "{{partnerId}}", "sbiId": "{{sbiId}}", - "deviceDetailId": "{{deviceDetailId}}" + "status": "approved" } } \ No newline at end of file diff --git a/api-test/src/main/resources/pms/ApproveMappingDeviceToSbi/ApproveMappingDeviceToSbi.yml b/api-test/src/main/resources/pms/ApproveMappingDeviceToSbi/ApproveMappingDeviceToSbi.yml index da1ea9d2ed..eab19ccb72 100644 --- a/api-test/src/main/resources/pms/ApproveMappingDeviceToSbi/ApproveMappingDeviceToSbi.yml +++ b/api-test/src/main/resources/pms/ApproveMappingDeviceToSbi/ApproveMappingDeviceToSbi.yml @@ -1,6 +1,6 @@ ApproveMappingDeviceToSbi: Pms_ApproveMappingDeviceToSbi_All_Valid_Smoke: - endPoint: /v1/partnermanager/admin/approve-mapping-device-to-sbi + endPoint: /v1/partnermanager/devicedetail/{deviceDetailId}/approval role: partnerrevampdevice restMethod: post checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDevice.hbs b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDevice.hbs index 19614eee76..7ef96de981 100644 --- a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDevice.hbs +++ b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDevice.hbs @@ -1,9 +1,10 @@ { - "id": "mosip.pms.deactivate.device.post", + "id": "mosip.pms.deactivate.device.patch", "version": "1.0", "requestTime": "{{requesttime}}", "metadata": {}, + "deviceId": "{{deviceId}}", "request": { - "deviceId": "{{deviceId}}" + "status": "De-Activate" } } \ No newline at end of file diff --git a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDevice.yml b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDevice.yml index 2c8d02d634..25eb4c0050 100644 --- a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDevice.yml +++ b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDevice.yml @@ -1,14 +1,15 @@ DeactivateDevice: Pms_DeactivateDevice_all_Valid_Smoke_sid: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDevice outputTemplate: pms/DeactivateDevice/DeactivateDeviceResult input: '{ "requesttime": "$TIMESTAMP$", - "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" + "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$", + "status": "De-Activate" }' output: '{ diff --git a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.hbs b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.hbs index b7a4d5c2cd..f4533c95f8 100644 --- a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.hbs +++ b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.hbs @@ -2,8 +2,9 @@ "id": "{{id}}", "version": "{{version}}", "requestTime": "{{requesttime}}", + "deviceId": "{{deviceId}}", "metadata": {}, "request": { - "deviceId": "{{deviceId}}" + "status": "De-Activate" } } \ No newline at end of file diff --git a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml index 539c8fc088..86acc4467f 100644 --- a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml @@ -1,11 +1,11 @@ DeactivateDeviceNegativeScenarios: Pms_DeactivateDevice_without_authentication_Neg: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} uniqueIdentifier: TC_PMS_DeactivateDevice_01 description: Deactivate Device without Partner authentication role: invalidtoken checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDevice outputTemplate: pms/error input: '{ @@ -20,12 +20,12 @@ DeactivateDeviceNegativeScenarios: ] }' Pms_DeactivateDevice_with_Invalid_Device_ID_Neg: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} uniqueIdentifier: TC_PMS_DeactivateDevice_02 description: Deactivate Device by passing invalid Device ID role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDevice outputTemplate: pms/error input: '{ @@ -40,12 +40,12 @@ DeactivateDeviceNegativeScenarios: ] }' Pms_DeactivateDevice_with_Invalid_requestTime_Neg: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} uniqueIdentifier: TC_PMS_DeactivateDevice_03 description: Deactivate Device by passing invalid requestTime role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDevice outputTemplate: pms/error input: '{ @@ -60,11 +60,11 @@ DeactivateDeviceNegativeScenarios: ] }' Pms_DeactivateDevice_Missing_requestTime_Neg: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} uniqueIdentifier: TC_PMS_DeactivateDevice_04 description: Deactivate Device while keeping requestTime paramter as Missing checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDevice outputTemplate: pms/error input: '{ @@ -78,12 +78,12 @@ DeactivateDeviceNegativeScenarios: ] }' Pms_DeactivateDevice_Empty_requestTime_Neg: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} uniqueIdentifier: TC_PMS_DeactivateDevice_05 description: Deactivate Device while keeping requestTime paramter as Empty role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDevice outputTemplate: pms/error input: '{ @@ -98,12 +98,12 @@ DeactivateDeviceNegativeScenarios: ] }' Pms_DeactivateDevice_with_Invalid_RandomDevice_ID_Neg: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} uniqueIdentifier: TC_PMS_DeactivateDevice_06 description: Deactivate Device by passwing invalid Random Device ID role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDevice outputTemplate: pms/error input: '{ @@ -118,12 +118,12 @@ DeactivateDeviceNegativeScenarios: ] }' Pms_DeactivateDevice_Already_deactivated_device_Neg: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} uniqueIdentifier: TC_PMS_DeactivateDevice_07 description: Deactivate Device which has been already Deactivated role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDevice outputTemplate: pms/error input: '{ @@ -138,16 +138,16 @@ DeactivateDeviceNegativeScenarios: ] }' Pms_DeactivateDevice_with_Invalid_Version_Neg: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} uniqueIdentifier: TC_PMS_DeactivateDevice_08 description: Deactivate Device by passing invalid Version role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDeviceNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.device.post", + "id": "mosip.pms.deactivate.device.patch", "version": "99", "requesttime": "$TIMESTAMP$", "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" @@ -160,16 +160,16 @@ DeactivateDeviceNegativeScenarios: ] }' Pms_DeactivateDevice_with_Empty_Version_Neg: - endPoint: /v1/partnermanager/devicedetail/deactivate-device + endPoint: /v1/partnermanager/devicedetail/{deviceId} uniqueIdentifier: TC_PMS_DeactivateDevice_09 description: Deactivate Device while keeping Version parameter as Empty role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateDevice/DeactivateDeviceNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.device.post", + "id": "mosip.pms.deactivate.device.patch", "version": "$REMOVE$", "requesttime": "$TIMESTAMP$", "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" diff --git a/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtm.hbs b/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtm.hbs index 49d570886c..d0c3ca31e6 100644 --- a/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtm.hbs +++ b/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtm.hbs @@ -1,9 +1,10 @@ { - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "1.0", "requestTime": "{{requestTime}}", "metadata": {}, + "ftmId": "{{ftmId}}", "request": { - "ftmId": "{{ftmId}}" + "status": "De-Activate" } } diff --git a/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtm.yml b/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtm.yml index 035547f60f..0a990039f9 100644 --- a/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtm.yml +++ b/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtm.yml @@ -1,17 +1,16 @@ DeactivateFtm: Pms_DeactivateFtm_all_Valid_Smoke_sid: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtm_01 description: Deactivate Device with valid Partner authentication role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtm outputTemplate: pms/DeactivateFtm/DeactivateFtmResult input: '{ "requestTime": "$TIMESTAMP$", - "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" - + "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" }' output: '{ "status": "approved", diff --git a/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtmNegativeScenarios.hbs b/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtmNegativeScenarios.hbs index b093ce4ed1..d17c502567 100644 --- a/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtmNegativeScenarios.hbs +++ b/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtmNegativeScenarios.hbs @@ -3,7 +3,9 @@ "version": "{{version}}", "requestTime": "{{requestTime}}", "metadata": {}, + "ftmId": "{{ftmId}}", "request": { - "ftmId": "{{ftmId}}" + "status": "De-Activate" + } } diff --git a/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtmNegativeScenarios.yml b/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtmNegativeScenarios.yml index aa8c423e1b..242c634ca9 100644 --- a/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtmNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/DeactivateFtm/DeactivateFtmNegativeScenarios.yml @@ -1,11 +1,11 @@ DeactivateFtmNegativeScenarios: Pms_DeactivateFtm_without_Authentication_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_01 description: Deactivate FTM without Partner authentication and expecting an error in the response role: invalidtoken checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtm outputTemplate: pms/error input: '{ @@ -21,12 +21,12 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Missing_Req_ID_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_02 description: Deactivate FTM with the requestID parameter missing in the request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ @@ -44,12 +44,12 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Keeping_Req_IDas_Null_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_03 description: Deactivate FTM while keeping requestID parameter as Null in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ @@ -67,12 +67,12 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Empty_Req_ID_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_04 description: Deactivate FTM keeping ID parameter as Empty in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ @@ -90,16 +90,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Missing_Version_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_05 description: Deactivate FTM while keeping Version parameter as Missing in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "$REMOVE$", "requestTime": "$TIMESTAMP$", "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" @@ -113,16 +113,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Null_Version_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_06 description: Deactivate FTM while keeping Version parameter as Null in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "Null", "requestTime": "$TIMESTAMP$", "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" @@ -136,16 +136,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Empty_Version_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_07 description: Deactivate FTM while keeping Version parameter as Empty in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "", "requestTime": "$TIMESTAMP$", "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" @@ -159,16 +159,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Invalid_VersionValue1_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_08 description: Deactivate FTM while keeping Version parameter as invalid value 1 in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "1", "requestTime": "$TIMESTAMP$", "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" @@ -182,16 +182,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Invalid_VersionValue0_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_09 description: Deactivate FTM while keeping Version parameter as invalid value 0 in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "0", "requestTime": "$TIMESTAMP$", "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" @@ -205,16 +205,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Invalid_Version_Num_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_10 description: Deactivate FTM while keeping Version parameter as invalid values in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "9977", "requestTime": "$TIMESTAMP$", "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" @@ -228,16 +228,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Missing_requestTime_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_11 description: Deactivate FTM while keeping requestTime parameter as Missing in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "1.0", "requestTime": "$REMOVE$", "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" @@ -251,16 +251,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Empty_requestTime_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_12 description: Deactivate FTM while keeping requestTime parameter as Empty in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "1.0", "requestTime": "", "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" @@ -274,16 +274,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Invalid_requestTime_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_13 description: Deactivate FTM while keeping Request Time parameter as invalid in request and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "1.0", "requestTime": "1111-07-22T08:21:17.665Z", "ftmId": "$ID:CreateFtmChipDetails_FtmProvider_AllValid_Smoke_sid_id$" @@ -297,12 +297,12 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Already_Deactivate_FTM_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_14 description: Deactivating the FTM which is already Deactivated and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtm outputTemplate: pms/error input: '{ @@ -318,16 +318,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Missing_FTM_ID_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_15 description: Deactivate the FTM while keeping FTM ID parameter as Missing and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "1.0", "requestTime": "$TIMESTAMP$", "ftmId": "$REMOVE$" @@ -341,16 +341,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Empty_FTM_ID_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_16 description: Deactivate the FTM while keeping FTM ID parameter as Empty and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "1.0", "requestTime": "$TIMESTAMP$", "ftmId": "" @@ -364,16 +364,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Invalid_Values_FTM_ID_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_17 description: Deactivate the FTM while keeping FTM ID parameter as Invalid values and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "1.0", "requestTime": "$TIMESTAMP$", "ftmId": "Apple0192938838" @@ -387,16 +387,16 @@ DeactivateFtmNegativeScenarios: ] }' Pms_DeactivateFtm_Null_FTM_ID_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/deactivate-ftm + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId} uniqueIdentifier: TC_PMS_DeactivateFtmNegativeScenarios_18 description: Deactivate the FTM while keeping FTM ID parameter as Null and expecting an error in the response role: partnerrevampftm checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateFtm/DeactivateFtmNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.ftm.post", + "id": "mosip.pms.deactivate.ftm.patch", "version": "1.0", "requestTime": "$TIMESTAMP$", "ftmId": "Null" diff --git a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices.hbs b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices.hbs index 77998d389a..ac85433789 100644 --- a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices.hbs +++ b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices.hbs @@ -1,9 +1,10 @@ { - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "1.0", "requestTime": "{{requesttime}}", "metadata": {}, + "sbiId": "{{sbiId}}", "request": { - "sbiId": "{{sbiId}}" + "status": "De-Activate" } } \ No newline at end of file diff --git a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices.yml b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices.yml index eb6d3a0e78..a57f774bc8 100644 --- a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices.yml +++ b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices.yml @@ -1,9 +1,9 @@ DeactivateSBIWithAssociatedDevices: Pms_DeactivateSBIWithAssociatedDevices_all_Valid_Smoke_sid: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices outputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesResult input: '{ diff --git a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.hbs b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.hbs index e3c25d64f9..335dac0b85 100644 --- a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.hbs +++ b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.hbs @@ -3,7 +3,8 @@ "version": "{{version}}", "requestTime": "{{requesttime}}", "metadata": {}, + "sbiId": "{{sbiId}}", "request": { - "sbiId": "{{sbiId}}" + "status": "De-Activate" } } \ No newline at end of file diff --git a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml index 66539c18b9..8dc4b31f87 100644 --- a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml @@ -1,11 +1,11 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: Pms_DeactivateSBIWithAssociatedDevices_Without_Authentication_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_01 description: Deactivate SBI with associated Devices without Partner authentication role: invalidtoken checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices outputTemplate: pms/error input: '{ @@ -20,12 +20,12 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Missing_requestTime_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_02 description: Deactivate SBI while keeping requestTime parameter as Missing in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices outputTemplate: pms/error input: '{ @@ -40,12 +40,12 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Empty_requestTime_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_03 description: Deactivate SBI while keeping requestTime parameter as Empty in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices outputTemplate: pms/error input: '{ @@ -60,12 +60,12 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Invalid_ID_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_04 description: Deactivate SBI by passing Invalid ID parameter in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ @@ -82,12 +82,12 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Missing_ID_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_05 description: Deactivate SBI while keeping ID parameter as Missing in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ @@ -104,12 +104,12 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Keeping_IDas_Null_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_06 description: Deactivate SBI while keeping ID parameter as Null in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ @@ -126,12 +126,12 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Empty_ID_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_07 description: Deactivate SBI while keeping ID parameter as Empty in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ @@ -148,16 +148,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Missing_Version_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_08 description: Deactivate SBI without Version parameter in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "$REMOVE$", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" @@ -170,16 +170,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Null_Version_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_09 description: Deactivate SBI while keeping Version parameter as Null in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "Null", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" @@ -192,16 +192,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Empty_Version_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_10 description: Deactivate SBI while keeping Version parameter as Empty in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" @@ -214,16 +214,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_11 description: Deactivate SBI while keeping Version parameter as invalid value 1 in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "1", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" @@ -236,16 +236,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_12 description: Deactivate SBI while keeping Version parameter as invalid value 0 in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "0", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" @@ -258,16 +258,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_13 description: Deactivate SBI while keeping Version parameter as invalid values in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "9977", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" @@ -280,16 +280,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Invalid_requestTime_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_14 description: Deactivate SBI while keeping Request Time parameter as invalid in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "1.0", "requesttime": "1111-07-22T08:21:17.665Z", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" @@ -302,16 +302,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Missing_ObjectParameter_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_15 description: Deactivate SBI while keeping Object parameter as Missing in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "$REMOVE$" @@ -324,12 +324,12 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Already_deactivated_SBI_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_16 description: Deactivate SBI which already Deactivated in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices outputTemplate: pms/error input: '{ @@ -344,16 +344,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Null_SBI_ID_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_17 description: Deactivate SBI while keeping SBI ID parameter as Null in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "Null" @@ -366,16 +366,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Empty_SBI_ID_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_18 description: Deactivate SBI while keeping SBI ID parameter as Empty in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "" @@ -388,16 +388,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_InvalidNumeric_SBI_ID_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_19 description: Deactivate SBI while keeping SBI ID parameter as Invalid Numeric values in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "0101022" @@ -410,16 +410,16 @@ DeactivateSBIWithAssociatedDevicesNegativeScenarios: ] }' Pms_DeactivateSBIWithAssociatedDevices_Invalid_SBI_ID_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId} uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_20 description: Deactivate SBI while keeping SBI ID parameter as Invalid values in request role: partnerrevampdevice checkErrorsOnlyInResponse: true - restMethod: post + restMethod: patch inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios outputTemplate: pms/error input: '{ - "id": "mosip.pms.deactivate.sbi.post", + "id": "mosip.pms.deactivate.sbi.patch", "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "APPLEMANCAP" diff --git a/api-test/src/main/resources/pms/GetAllApiKeyForAuthPartner/GetAllApiKeyForAuthPartner.yml b/api-test/src/main/resources/pms/GetAllApiKeyForAuthPartner/GetAllApiKeyForAuthPartner.yml index dd9e5f9a38..d052692904 100644 --- a/api-test/src/main/resources/pms/GetAllApiKeyForAuthPartner/GetAllApiKeyForAuthPartner.yml +++ b/api-test/src/main/resources/pms/GetAllApiKeyForAuthPartner/GetAllApiKeyForAuthPartner.yml @@ -1,6 +1,6 @@ GetAllApiKeyForAuthPartner: Pms_GetAllApiKeyForAuthPartner_All_Valid_Smoke: - endPoint: /v1/partnermanager/partners/api-keys-for-auth-partners + endPoint: /v1/partnermanager/partners/auth-partner-api-keys description: Fetching all the API Key available for Auth Partner role: partnerrevamp checkErrorsOnlyInResponse: true @@ -12,7 +12,7 @@ GetAllApiKeyForAuthPartner: output: '{ }' Pms_GetAllApiKeyForAuthPartner_without_auth: - endPoint: /v1/partnermanager/partners/api-keys-for-auth-partners + endPoint: /v1/partnermanager/partners/auth-partner-api-keys description: Fetching all the API Key available for Auth Partner without token role: invalidtoken checkErrorsOnlyInResponse: true @@ -29,7 +29,7 @@ GetAllApiKeyForAuthPartner: ] }' Pms_GetAllApiKeyForAuthPartner_invalid_auth: - endPoint: /v1/partnermanager/partners/api-keys-for-auth-partners + endPoint: /v1/partnermanager/partners/auth-partner-api-keys description: Fetching all the API Key available for Auth Partner with invalid token role: invalidtoken checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/pms/GetAllApiKeyForAuthPartner2/GetAllApiKeyForAuthPartnernegativescenario.yml b/api-test/src/main/resources/pms/GetAllApiKeyForAuthPartner2/GetAllApiKeyForAuthPartnernegativescenario.yml index 5a86a70a46..f5a0fddf26 100644 --- a/api-test/src/main/resources/pms/GetAllApiKeyForAuthPartner2/GetAllApiKeyForAuthPartnernegativescenario.yml +++ b/api-test/src/main/resources/pms/GetAllApiKeyForAuthPartner2/GetAllApiKeyForAuthPartnernegativescenario.yml @@ -1,6 +1,6 @@ GetAllApiKeyForAuthPartner: Pms_GetAllApiKeyForAuthPartner: - endPoint: /v1/partnermanager/partners/api-keys-for-auth-partners + endPoint: /v1/partnermanager/partners/auth-partner-api-keys description: Fetching all the API Key available for Auth Partner role: partnerrevamp checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIds.yml b/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIds.yml index 1e8fa4ff65..4675e3e890 100644 --- a/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIds.yml +++ b/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIds.yml @@ -1,6 +1,6 @@ GetAllApprovedDeviceProviderIds: Pms_GetAllApprovedDeviceProviderIds_allValid_smoke: - endPoint: /v1/partnermanager/partners/approved-device-provider-ids + endPoint: /v1/partnermanager/partners/v4?status=approved&partnerType=Device_Provider role: partnerrevampdevice restMethod: get inputTemplate: pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIds diff --git a/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml b/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml index c03a98ef9c..95e4de7373 100644 --- a/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml @@ -1,6 +1,6 @@ GetAllApprovedDeviceProviderIdsNegativeScenarios: Pms_GetAllApprovedDeviceProviderIds_Without_Authentication_Neg: - endPoint: /v1/partnermanager/partners/getAllApprovedDeviceProviderIds + endPoint: /v1/partnermanager/partners/v4?status=approved&partnerType=Device_Provider uniqueIdentifier: TC_PMS_GetAllApprovedDeviceProviderIds_01 description: Retrieve All Approved Device ProviderIds Without Authentication role: invalidtoken @@ -17,7 +17,7 @@ GetAllApprovedDeviceProviderIdsNegativeScenarios: ] }' Pms_GetAllApprovedDeviceProviderIds_Invalid_Token_Neg: - endPoint: /v1/partnermanager/partners/getAllApprovedDeviceProviderIds + endPoint: /v1/partnermanager/partners/v4?status=approved&partnerType=Device_Provider uniqueIdentifier: TC_PMS_GetAllApprovedDeviceProviderIds_02 description: Retrieve All Approved Device ProviderIds with invalid access token role: invalidtoken diff --git a/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProvider.hbs b/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProvider.hbs index 5ff5904550..0e0dcd235c 100644 --- a/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProvider.hbs +++ b/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProvider.hbs @@ -1,3 +1,3 @@ { - "partnerId":"{{partnerId}}" + } \ No newline at end of file diff --git a/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProvider.yml b/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProvider.yml index 729310e8a5..7cbfbcc8ab 100644 --- a/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProvider.yml +++ b/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProvider.yml @@ -1,14 +1,13 @@ GetAllApprovedFtmProvider: Pms_All_Approved_Ftm_Provider_AllValid_Smoke: - endPoint: /v1/partnermanager/partners/approved-ftm-provider-ids + endPoint: /v1/partnermanager/partners/v4?status=approved&partnerType=FTM_Provider description: Fetching all the certificate for the Partner Id - role: partnerrevamp + role: partnerrevampftm checkErrorsOnlyInResponse: true restMethod: get inputTemplate: pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProvider outputTemplate: pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProviderResult input: '{ - "partnerId": "pms-111888" }' output: ' { }' diff --git a/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProviderNegativeScenarios.yml b/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProviderNegativeScenarios.yml index 2959592a68..db6929e0df 100644 --- a/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProviderNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/GetAllApprovedFtmProvider/GetAllApprovedFtmProviderNegativeScenarios.yml @@ -1,6 +1,6 @@ GetAllApprovedFtmProviderNegativeScenarios: Pms_Get_All_Approved_Ftm_Provider_Without_Authentication_Neg: - endPoint: /v1/partnermanager/partners/approved-ftm-provider-ids + endPoint: /v1/partnermanager/partners/v4?status=approved&partnerType=FTM_Provider uniqueIdentifier: TC_PMS_GetAllApprovedFtmProviderNegativeScenarios_01 description: Retrieve all approved FTM Providers without Partner authentication role: invalidtoken @@ -19,7 +19,7 @@ GetAllApprovedFtmProviderNegativeScenarios: ] }' Pms_Get_All_Approved_Ftm_Provider_Invalid_Token_Neg: - endPoint: /v1/partnermanager/partners/approved-ftm-provider-ids + endPoint: /v1/partnermanager/partners/v4?status=approved&partnerType=FTM_Provider uniqueIdentifier: TC_PMS_GetAllApprovedFtmProviderNegativeScenarios_02 description: Retrieve all approved FTM Providers with Invalid access token role: invalidtoken @@ -38,7 +38,7 @@ GetAllApprovedFtmProviderNegativeScenarios: ] }' Pms_Get_All_Approved_Ftm_Provider_Before_Uploading_CA_Cert_Neg: - endPoint: /v1/partnermanager/partners/approved-ftm-provider-ids + endPoint: /v1/partnermanager/partners/v4?status=approved&partnerType=FTM_Provider uniqueIdentifier: TC_PMS_GetAllApprovedFtmProviderNegativeScenarios_03 description: Retrieve all approved FTM Providers before uploading CA certificates role: invalidtoken @@ -57,7 +57,7 @@ GetAllApprovedFtmProviderNegativeScenarios: ] }' Pms_Get_All_Approved_Ftm_Provider_Before_Uploading_Partner_Cert_Neg: - endPoint: /v1/partnermanager/partners/approved-ftm-provider-ids + endPoint: /v1/partnermanager/partners/v4?status=approved&partnerType=FTM_Provider uniqueIdentifier: TC_PMS_GetAllApprovedFtmProviderNegativeScenarios_04 description: Retrieve all approved FTM Providers before uploading Partner certificate role: invalidtoken diff --git a/api-test/src/main/resources/pms/GetAllApprovedPartnerId/GetAllApprovedPartnerId.yml b/api-test/src/main/resources/pms/GetAllApprovedPartnerId/GetAllApprovedPartnerId.yml index fa2967b11f..9195624f8c 100644 --- a/api-test/src/main/resources/pms/GetAllApprovedPartnerId/GetAllApprovedPartnerId.yml +++ b/api-test/src/main/resources/pms/GetAllApprovedPartnerId/GetAllApprovedPartnerId.yml @@ -1,6 +1,6 @@ -GetAllApprovedPartnerId: - Pms_GetAllApprovedPartnerId_allValid_smoke: - endPoint: /v1/partnermanager/partners/approved-partner-ids-with-policy-groups +GetAllApprovedAuthPartnerId: + Pms_GetAllApprovedAuthPartnerId_allValid_smoke: + endPoint: /v1/partnermanager/partners/v4?status=approved&policyGroupAvailable=true&partnerType=Auth_Partner description: Fetching all approved Partner Id role: partnerrevamp restMethod: get @@ -9,9 +9,5 @@ GetAllApprovedPartnerId: input: '{ }' output: '{ - "errors": [ - { - "errorCode": "PMS_CERTIFICATE_ERROR_002" - } - ] + }' \ No newline at end of file diff --git a/api-test/src/main/resources/pms/GetAllApprovedPartnerId/GetAllApprovedPartnerIdNegativeScenarios.yml b/api-test/src/main/resources/pms/GetAllApprovedPartnerId/GetAllApprovedPartnerIdNegativeScenarios.yml index def7d39f1e..8a2e2a91f4 100644 --- a/api-test/src/main/resources/pms/GetAllApprovedPartnerId/GetAllApprovedPartnerIdNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/GetAllApprovedPartnerId/GetAllApprovedPartnerIdNegativeScenarios.yml @@ -1,6 +1,6 @@ GetAllApprovedPartnerId: - Pms_GetAllApprovedPartnerId_without_auth: - endPoint: /v1/partnermanager/partners/approved-partner-ids-with-policy-groups + Pms_GetAllApprovedAuthPartnerId_without_auth: + endPoint: /v1/partnermanager/partners/v4?status=approved&policyGroupAvailable=true&partnerType=Auth_Partner description: Fetching all approved Partner Id without token role: invalidtoken restMethod: get @@ -15,8 +15,8 @@ GetAllApprovedPartnerId: } ] }' - Pms_GetAllApprovedPartnerId_invalid_auth: - endPoint: /v1/partnermanager/partners/approved-partner-ids-with-policy-groups + Pms_GetAllApprovedAuthPartnerId_invalid_auth: + endPoint: /v1/partnermanager/partners/v4?status=approved&policyGroupAvailable=true&partnerType=Auth_Partner description: Fetching all approved Partner Id with invalid token role: invalidtoken restMethod: get diff --git a/api-test/src/main/resources/pms/GetAllCertificate/GetAllCertificate.yml b/api-test/src/main/resources/pms/GetAllCertificate/GetAllCertificate.yml index 609cad05d0..7c5c58487f 100644 --- a/api-test/src/main/resources/pms/GetAllCertificate/GetAllCertificate.yml +++ b/api-test/src/main/resources/pms/GetAllCertificate/GetAllCertificate.yml @@ -1,6 +1,6 @@ GetAllCertificate: Pms_GetAllCertificate_allValid_smoke: - endPoint: /v1/partnermanager/partners/partner-certificates + endPoint: /v1/partnermanager/partners/partner-certificates-details description: Fetching all the API certificates of the Logged in Partner role: partnerrevamp restMethod: get @@ -15,7 +15,7 @@ GetAllCertificate: }' Pms_GetAllCertificate_Device_allValid_smoke: - endPoint: /v1/partnermanager/partners/partner-certificates + endPoint: /v1/partnermanager/partners/partner-certificates-details description: Fetching all the API certificates of the Loggedin Partner role: partnerrevampdevice restMethod: get @@ -29,7 +29,7 @@ GetAllCertificate: "isCertificateAvailable": true }' Pms_GetAllCertificate_without_auth: - endPoint: /v1/partnermanager/partners/partner-certificates + endPoint: /v1/partnermanager/partners/partner-certificates-details description: Fetching all the API certificates of the partner without login role: invalidtoken restMethod: get @@ -45,7 +45,7 @@ GetAllCertificate: ] }' Pms_GetAllCertificate_invalid_auth: - endPoint: /v1/partnermanager/partners/partner-certificates + endPoint: /v1/partnermanager/partners/partner-certificates-details description: Fetching all the API certificates of the partner invalid partner role: invalidtoken restMethod: get diff --git a/api-test/src/main/resources/pms/GetAllCertificate/GetAllCertificateNegativeScenarios.yml b/api-test/src/main/resources/pms/GetAllCertificate/GetAllCertificateNegativeScenarios.yml index 66bf9c5d88..b5933a9e40 100644 --- a/api-test/src/main/resources/pms/GetAllCertificate/GetAllCertificateNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/GetAllCertificate/GetAllCertificateNegativeScenarios.yml @@ -1,6 +1,6 @@ GetAllCertificate: Pms_GetAllCertificate_beforecertifiactes_upload: - endPoint: /v1/partnermanager/partners/partner-certificates + endPoint: /v1/partnermanager/partners/partner-certificates-details description: Fetching all the API certificates of the Logged in Partner role: partnerrevamp restMethod: get diff --git a/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbi.yml b/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbi.yml index de97f02ee3..0aad1d1c1c 100644 --- a/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbi.yml +++ b/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbi.yml @@ -1,6 +1,6 @@ GetAllDeviceListMappedWithSbi: Pms_GetAllDeviceListMappedWithSbi_All_Valid_Smoke: - endPoint: /v1/partnermanager/securebiometricinterface/sbi-devices/{sbiId} + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId}/devices role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: get diff --git a/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml b/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml index 772fff91fe..4070fc6505 100644 --- a/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml @@ -1,6 +1,6 @@ GetAllDeviceListMappedWithSbiNegativeScenarios: Pms_GetAllDeviceListMappedWithSbi_without_authentication_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/sbi-devices/{sbiId} + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId}/devices uniqueIdentifier: TC_PMS_GetAllDeviceListMappedWithSbiNegativeScenarios_01 description: Retrieve all Device list which are mapped with SBI without Authentication role: invalidtoken @@ -19,7 +19,7 @@ GetAllDeviceListMappedWithSbiNegativeScenarios: ] }' Pms_GetAllDeviceListMappedWithSbi_Invalid_SBI_ID_Neg: - endPoint: /v1/partnermanager/securebiometricinterface/sbi-devices/{sbiId} + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId}/devices uniqueIdentifier: TC_PMS_GetAllDeviceListMappedWithSbiNegativeScenarios_02 description: Retrieve all Device list which are mapped with SBI by provinding invalid SBI id in request role: partnerrevampdevice diff --git a/api-test/src/main/resources/pms/GetAllDevicesForSbi/GetAllDevicesForSbi.yml b/api-test/src/main/resources/pms/GetAllDevicesForSbi/GetAllDevicesForSbi.yml index 914e1bd97d..3b56c894dd 100644 --- a/api-test/src/main/resources/pms/GetAllDevicesForSbi/GetAllDevicesForSbi.yml +++ b/api-test/src/main/resources/pms/GetAllDevicesForSbi/GetAllDevicesForSbi.yml @@ -1,6 +1,6 @@ GetAllDevicesForSbi: Pms_GetAllDevicesForSbi_All_Valid_Smoke: - endPoint: /v1/partnermanager/securebiometricinterface/sbi-devices/{sbiId} + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId}/devices role: partnerrevamp checkErrorsOnlyInResponse: true restMethod: get diff --git a/api-test/src/main/resources/pms/GetConfiguration/GetConfiguration.yml b/api-test/src/main/resources/pms/GetConfiguration/GetConfiguration.yml index d9329719b9..679a69c2a4 100644 --- a/api-test/src/main/resources/pms/GetConfiguration/GetConfiguration.yml +++ b/api-test/src/main/resources/pms/GetConfiguration/GetConfiguration.yml @@ -1,6 +1,6 @@ GetConfiguration: Partner_GetConfiguration_allValid_smoke: - endPoint: /v1/partnermanager/users/configs + endPoint: /v1/partnermanager/system-config role: partner checkErrorsOnlyInResponse: true restMethod: get diff --git a/api-test/src/main/resources/pms/GetDetailsOfPartner/GetDetailsOfPartner.yml b/api-test/src/main/resources/pms/GetDetailsOfPartner/GetDetailsOfPartner.yml index 6816f677c9..199db85517 100644 --- a/api-test/src/main/resources/pms/GetDetailsOfPartner/GetDetailsOfPartner.yml +++ b/api-test/src/main/resources/pms/GetDetailsOfPartner/GetDetailsOfPartner.yml @@ -8,7 +8,7 @@ GetDetailsOfPartner: inputTemplate: pms/GetDetailsOfPartner/getDetailsOfPartner outputTemplate: pms/GetDetailsOfPartner/getDetailsOfPartnerResult input: '{ - "partnerId": "111999" + "partnerId": "pms-111999" }' output: ' { }' diff --git a/api-test/src/main/resources/pms/GetListAllFTMChip/GetListAllFTMChip.yml b/api-test/src/main/resources/pms/GetListAllFTMChip/GetListAllFTMChip.yml index 1a26a7581c..633836609f 100644 --- a/api-test/src/main/resources/pms/GetListAllFTMChip/GetListAllFTMChip.yml +++ b/api-test/src/main/resources/pms/GetListAllFTMChip/GetListAllFTMChip.yml @@ -1,6 +1,6 @@ GetListAllFTMChip: Pms_GetListAllFTMChip_All_Valid_Smoke: - endPoint: /v1/partnermanager/partners/ftm-chip-details + endPoint: /v1/partnermanager/ftpchipdetail uniqueIdentifier: TC_PMS_GetListAllFTMChip_01 description: Retrieve all FTM chip details with valid details role: partnerrevampftm diff --git a/api-test/src/main/resources/pms/GetListAllFTMChip/GetListAllFTMChipNegativeScenarios.yml b/api-test/src/main/resources/pms/GetListAllFTMChip/GetListAllFTMChipNegativeScenarios.yml index 3cb85fd9f3..dd847023a0 100644 --- a/api-test/src/main/resources/pms/GetListAllFTMChip/GetListAllFTMChipNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/GetListAllFTMChip/GetListAllFTMChipNegativeScenarios.yml @@ -1,6 +1,6 @@ GetListAllFTMChipNegativeScenarios: Pms_GetListAllFTMChip_Without_Authentication_Neg: - endPoint: /v1/partnermanager/partners/ftm-chip-details + endPoint: /v1/partnermanager/ftpchipdetail uniqueIdentifier: TC_PMS_GetListAllFTMChipNegativeScenarios_01 description: Retrieve all FTM chip details without Partner authentication role: invalidtoken @@ -18,7 +18,7 @@ GetListAllFTMChipNegativeScenarios: ] }' Pms_GetListAllFTMChip_Invalid_Token_Neg: - endPoint: /v1/partnermanager/partners/ftm-chip-details + endPoint: /v1/partnermanager/ftpchipdetail uniqueIdentifier: TC_PMS_GetListAllFTMChipNegativeScenarios_02 description: Retrieve all FTM chip details with Invalid access token role: invalidtoken @@ -36,7 +36,7 @@ GetListAllFTMChipNegativeScenarios: ] }' Pms_GetListAllFTMChip_WhenNo_FTM_Chips_AddedNeg: - endPoint: /v1/partnermanager/partners/ftm-chip-details + endPoint: /v1/partnermanager/ftpchipdetail uniqueIdentifier: TC_PMS_GetListAllFTMChipNegativeScenarios_03 description: Retrieve all FTM chip details when FTM Chips are not added for Partner role: partnerrevampftm diff --git a/api-test/src/main/resources/pms/GetOriginalFtmCertifacte/GetOriginalFtmCertifacte.yml b/api-test/src/main/resources/pms/GetOriginalFtmCertifacte/GetOriginalFtmCertifacte.yml index a97eab27cc..e248204ea6 100644 --- a/api-test/src/main/resources/pms/GetOriginalFtmCertifacte/GetOriginalFtmCertifacte.yml +++ b/api-test/src/main/resources/pms/GetOriginalFtmCertifacte/GetOriginalFtmCertifacte.yml @@ -1,6 +1,6 @@ GetOriginalFtmCertifacte: Pms_GetOriginalPartnerCertificates_allValid_smoke: - endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/original-ftm-certificate + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/certificate-data uniqueIdentifier: TC_PMS_GetOriginalFtmCertifacte_01 description: Retrieve Original FTM Certifacte with valid Partner ID role: partnerrevampftm diff --git a/api-test/src/main/resources/pms/GetOriginalFtmCertifacte/GetOriginalFtmCertifacteNegativeScenarios.yml b/api-test/src/main/resources/pms/GetOriginalFtmCertifacte/GetOriginalFtmCertifacteNegativeScenarios.yml index cc6dcbb0a1..da559b4b12 100644 --- a/api-test/src/main/resources/pms/GetOriginalFtmCertifacte/GetOriginalFtmCertifacteNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/GetOriginalFtmCertifacte/GetOriginalFtmCertifacteNegativeScenarios.yml @@ -1,6 +1,6 @@ GetOriginalFtmCertifacteNegativeScenarios: Pms_GetOriginalPartnerCertificates_without_Authentication_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/original-ftm-certificate + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/certificate-data uniqueIdentifier: TC_PMS_GetOriginalFtmCertifacteNegativeScenarios_01 description: Retrieve Original FTM Certifacte without partner Authentication and expecting an error in the response role: invalidtoken @@ -19,7 +19,7 @@ GetOriginalFtmCertifacteNegativeScenarios: ] }' Pms_GetOriginalPartnerCertificates_with_Invalid_AccessToken_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/original-ftm-certificate + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/certificate-data uniqueIdentifier: TC_PMS_GetOriginalFtmCertifacteNegativeScenarios_02 description: Retrieve Original FTM Certifacte with invalid partner access token and expecting an error in the response role: invalidtoken @@ -38,7 +38,7 @@ GetOriginalFtmCertifacteNegativeScenarios: ] }' Pms_GetOriginalPartnerCertificates_Before_Uploading_Partner_Cert_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/original-ftm-certificate + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/certificate-data uniqueIdentifier: TC_PMS_GetOriginalFtmCertifacteNegativeScenarios_03 description: Retrieve Original FTM Certifacte before uploading Partner certificates and expecting an error in the response role: partnerrevampftm @@ -57,7 +57,7 @@ GetOriginalFtmCertifacteNegativeScenarios: ] }' Pms_GetOriginalPartnerCertificates_Missing_FTM_ID_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/original-ftm-certificate + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/certificate-data uniqueIdentifier: TC_PMS_GetOriginalFtmCertifacteNegativeScenarios_04 description: Retrieve Original FTM Certifacte while keeping FTM ID parameter as Missing and expecting an error in the response role: partnerrevampftm @@ -76,7 +76,7 @@ GetOriginalFtmCertifacteNegativeScenarios: ] }' Pms_GetOriginalPartnerCertificates_Invalid_FTM_ID_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/original-ftm-certificate + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/certificate-data uniqueIdentifier: TC_PMS_GetOriginalFtmCertifacteNegativeScenarios_05 description: Retrieve Original FTM Certifacte while keeping FTM ID parameter as Invalid and expecting an error in the response role: partnerrevampftm @@ -95,7 +95,7 @@ GetOriginalFtmCertifacteNegativeScenarios: ] }' Pms_GetOriginalPartnerCertificates_Invalid_Value_FTM_ID_Neg: - endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/original-ftm-certificate + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/certificate-data uniqueIdentifier: TC_PMS_GetOriginalFtmCertifacteNegativeScenarios_06 description: Retrieve Original FTM Certifacte while keeping FTM ID parameter as Invalid and expecting an error in the response role: partnerrevampftm diff --git a/api-test/src/main/resources/pms/GetOriginalFtmCertifacteAfterDeactiveFtm/GetOriginalFtmCertifacteAfterDeactiveFtm.yml b/api-test/src/main/resources/pms/GetOriginalFtmCertifacteAfterDeactiveFtm/GetOriginalFtmCertifacteAfterDeactiveFtm.yml index 03e5d8d755..e9b487defa 100644 --- a/api-test/src/main/resources/pms/GetOriginalFtmCertifacteAfterDeactiveFtm/GetOriginalFtmCertifacteAfterDeactiveFtm.yml +++ b/api-test/src/main/resources/pms/GetOriginalFtmCertifacteAfterDeactiveFtm/GetOriginalFtmCertifacteAfterDeactiveFtm.yml @@ -1,6 +1,6 @@ GetOriginalFtmCertifacteAfterDeactiveFtm: Pms_GetOriginalFtmCertifacteAfterDeactiveFtm_allValid_smoke: - endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/original-ftm-certificate + endPoint: /v1/partnermanager/ftpchipdetail/{ftmId}/certificate-data role: partnerrevampftm checkErrorsOnlyInResponse: true restMethod: get diff --git a/api-test/src/main/resources/pms/GetOriginalPartnerCertificates/GetOriginalPartnerCertificates.yml b/api-test/src/main/resources/pms/GetOriginalPartnerCertificates/GetOriginalPartnerCertificates.yml index 4274471ad6..3b95416bf4 100644 --- a/api-test/src/main/resources/pms/GetOriginalPartnerCertificates/GetOriginalPartnerCertificates.yml +++ b/api-test/src/main/resources/pms/GetOriginalPartnerCertificates/GetOriginalPartnerCertificates.yml @@ -1,6 +1,6 @@ GetOriginalPartnerCertificates: Pms_GetOriginalPartnerCertificates_allValid_smoke: - endPoint: /v1/partnermanager/partners/{partnerId}/original-partner-certificate + endPoint: /v1/partnermanager/partners/{partnerId}/certificate-data role: partnerrevamp checkErrorsOnlyInResponse: true restMethod: get @@ -14,7 +14,7 @@ GetOriginalPartnerCertificates: }' Pms_GetOriginalPartnerCertificates_DeviceProvider_allValid_smoke: - endPoint: /v1/partnermanager/partners/{partnerId}/original-partner-certificate + endPoint: /v1/partnermanager/partners/{partnerId}/certificate-data role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: get @@ -28,7 +28,7 @@ GetOriginalPartnerCertificates: }' Pms_GetOriginalPartnerCertificates_DeviceProvider_allValid_smoke: - endPoint: /v1/partnermanager/partners/{partnerId}/original-partner-certificate + endPoint: /v1/partnermanager/partners/{partnerId}/certificate-data role: partnerrevampftm checkErrorsOnlyInResponse: true restMethod: get diff --git a/api-test/src/main/resources/pms/GetSbiDetailsList/GetSbiDetailsList.yml b/api-test/src/main/resources/pms/GetSbiDetailsList/GetSbiDetailsList.yml index 4c578e8785..4840e0ea9f 100644 --- a/api-test/src/main/resources/pms/GetSbiDetailsList/GetSbiDetailsList.yml +++ b/api-test/src/main/resources/pms/GetSbiDetailsList/GetSbiDetailsList.yml @@ -1,6 +1,6 @@ GetSbiDetailsList: Pms_GetSbiDetailsList_All_Valid_Smoke: - endPoint: /v1/partnermanager/partners/sbi-details + endPoint: /v1/partnermanager/securebiometricinterface uniqueIdentifier: TC_pms_GetSbiDetailsList_01 description: Retrieve the PMS GetSbiDetails List for All Valid Inputs role: partnerrevampdevice @@ -13,7 +13,7 @@ GetSbiDetailsList: output: ' { }' Pms_GetSbiDetailsList_get_response_without_authorization_token_Neg: - endPoint: /v1/partnermanager/partners/sbi-details + endPoint: /v1/partnermanager/securebiometricinterface uniqueIdentifier: TC_pms_GetSbiDetailsList_02 description: Retrieve responce without authorization taken and Expecting an Error in The Response role: batch @@ -29,7 +29,7 @@ GetSbiDetailsList: } }' Pms_GetSbiDetailsList_get_partners_sbi-detail_API_with_Admin_roles_Neg: - endPoint: /v1/partnermanager/partners/sbi-details + endPoint: /v1/partnermanager/securebiometricinterface uniqueIdentifier: TC_pms_GetSbiDetailsList_03 description: Retrieve Partner SBI Details with Admin Role and Expecting an Error in The Response role: regproc @@ -45,7 +45,7 @@ GetSbiDetailsList: } }' Pms_GetSbiDetailsList_get_response_without_Partner_roles_Neg: - endPoint: /v1/partnermanager/partners/sbi-details + endPoint: /v1/partnermanager/securebiometricinterface uniqueIdentifier: TC_pms_GetSbiDetailsList_04 description: Retrieve Response Without Partner Role and Expecting an Error in The Response role: ftm diff --git a/api-test/src/main/resources/pms/RejectMappingDeviceToSbi/RejectMappingDeviceToSbi.hbs b/api-test/src/main/resources/pms/RejectMappingDeviceToSbi/RejectMappingDeviceToSbi.hbs index ffdbba6382..5c596fdec6 100644 --- a/api-test/src/main/resources/pms/RejectMappingDeviceToSbi/RejectMappingDeviceToSbi.hbs +++ b/api-test/src/main/resources/pms/RejectMappingDeviceToSbi/RejectMappingDeviceToSbi.hbs @@ -1,10 +1,12 @@ { - "id": "mosip.pms.reject.mapping.device.to.sbi.post", + "id": "mosip.pms.approval.mapping.device.to.sbi.post", "version": "1.0", + "metadata": {}, + "deviceDetailId": "{{deviceDetailId}}", "requestTime": "{{requestTime}}", "request": { "partnerId": "{{partnerId}}", "sbiId": "{{sbiId}}", - "deviceDetailId": "{{deviceDetailId}}" + "status": "rejected" } } \ No newline at end of file diff --git a/api-test/src/main/resources/pms/RejectMappingDeviceToSbi/RejectMappingDeviceToSbi.yml b/api-test/src/main/resources/pms/RejectMappingDeviceToSbi/RejectMappingDeviceToSbi.yml index 347450c37c..1d175c832f 100644 --- a/api-test/src/main/resources/pms/RejectMappingDeviceToSbi/RejectMappingDeviceToSbi.yml +++ b/api-test/src/main/resources/pms/RejectMappingDeviceToSbi/RejectMappingDeviceToSbi.yml @@ -1,6 +1,6 @@ RejectMappingDeviceToSbi: Pms_RejectMappingDeviceToSbi_All_Valid_Smoke: - endPoint: /v1/partnermanager/admin/reject-mapping-device-to-sbi + endPoint: /v1/partnermanager/devicedetail/{deviceDetailId}/approval role: partnerrevamp restMethod: post checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/pms/SaveDeviceDetails/SaveDeviceDetails.hbs b/api-test/src/main/resources/pms/SaveDeviceDetails/SaveDeviceDetails.hbs index 7d1c8fc153..273d745560 100644 --- a/api-test/src/main/resources/pms/SaveDeviceDetails/SaveDeviceDetails.hbs +++ b/api-test/src/main/resources/pms/SaveDeviceDetails/SaveDeviceDetails.hbs @@ -1,13 +1,13 @@ { +"id": "mosip.pms.add.device.to.sbi.id.post", + "version": "1.0", + "requestTime": "{{requestTime}}", + "sbiId": "{{sbiId}}", "request": { "deviceTypeCode": "{{deviceTypeCode}}", "deviceSubTypeCode": "{{deviceSubTypeCode}}", "deviceProviderId": "{{deviceProviderId}}", "make": "{{make}}", - "model": "{{model}}", - "approvalStatus": "{{approvalStatus}}", - "crBy": "{{crBy}}", - "crDtimes": "{{crDtimes}}", - "isActive": {{isActive}} + "model": "{{model}}" } } \ No newline at end of file diff --git a/api-test/src/main/resources/pms/SaveDeviceDetails/SaveDeviceDetails.yml b/api-test/src/main/resources/pms/SaveDeviceDetails/SaveDeviceDetails.yml index 57b40b51c2..fdb4c4e5ff 100644 --- a/api-test/src/main/resources/pms/SaveDeviceDetails/SaveDeviceDetails.yml +++ b/api-test/src/main/resources/pms/SaveDeviceDetails/SaveDeviceDetails.yml @@ -1,6 +1,6 @@ SaveDeviceDetails: Pms_SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid: - endPoint: /v1/partnermanager/devicedetail + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId}/devices role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -12,17 +12,15 @@ SaveDeviceDetails: "deviceProviderId": "pms-111998", "make": "AcmeCorp", "model": "X1000", - "approvalStatus": "approved", - "crBy": "user456", - "crDtimes": "$TIMESTAMPL$", - "isActive": true + "requestTime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" }' output: '{ }' Pms_SaveDeviceDetails_DeviceProviderForReject_AllValid_Smoke_sid: - endPoint: /v1/partnermanager/devicedetail + endPoint: /v1/partnermanager/securebiometricinterface/{sbiId}/devices role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -34,10 +32,8 @@ SaveDeviceDetails: "deviceProviderId": "pms-111998", "make": "AcmeCorpReject", "model": "X1000Reject", - "approvalStatus": "approved", - "crBy": "user456", - "crDtimes": "$TIMESTAMPL$", - "isActive": true + "requestTime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" }' output: '{ diff --git a/api-test/testNgXmlFiles/pmsApi.xml b/api-test/testNgXmlFiles/pmsApi.xml index 01e1f6809f..92b806a70c 100644 --- a/api-test/testNgXmlFiles/pmsApi.xml +++ b/api-test/testNgXmlFiles/pmsApi.xml @@ -181,14 +181,6 @@ - - - - - - - @@ -225,7 +217,7 @@ - + + - - - - - - - + name="io.mosip.testrig.apirig.testscripts.PostWithBodyAndPathParamsAndAutoGenId" /> + + name="io.mosip.testrig.apirig.testscripts.PostWithBodyAndPathParams" /> + + name="io.mosip.testrig.apirig.testscripts.PostWithBodyAndPathParams" /> @@ -532,33 +518,37 @@ + + name="io.mosip.testrig.apirig.testscripts.PatchWithPathParamsAndBody" /> + + name="io.mosip.testrig.apirig.testscripts.PatchWithPathParamsAndBody" /> + + name="io.mosip.testrig.apirig.testscripts.PatchWithPathParamsAndBody" /> + + name="io.mosip.testrig.apirig.testscripts.PatchWithPathParamsAndBody" /> @@ -632,17 +622,19 @@ + + name="io.mosip.testrig.apirig.testscripts.PatchWithPathParamsAndBody" /> + + name="io.mosip.testrig.apirig.testscripts.PatchWithPathParamsAndBody" />