From 75a95be4c5522fe4f883cdc855441f4497761e5c Mon Sep 17 00:00:00 2001 From: Prathmesh Jadhav Date: Fri, 18 Oct 2024 18:34:57 +0530 Subject: [PATCH 1/3] MOSIP-36423 Signed-off-by: Prathmesh Jadhav --- ...viceListMappedWithSbiNegativeScenarios.yml | 35 +++++++++++++++++++ api-test/testNgXmlFiles/pmsApi.xml | 7 ++++ 2 files changed, 42 insertions(+) create mode 100644 api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml diff --git a/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml b/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml new file mode 100644 index 0000000000..abfb3a86f6 --- /dev/null +++ b/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml @@ -0,0 +1,35 @@ +GetAllDeviceListMappedWithSbi: + Pms_GetAllDeviceListMappedWithSbi_without_authentication: + endPoint: /v1/partnermanager/securebiometricinterface/sbi-devices/{sbiId} + role: batch + checkErrorsOnlyInResponse: true + restMethod: get + inputTemplate: pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbi + outputTemplate: pms/error + input: '{ + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "KER-ATH-401" + } + ] +}' + Pms_GetAllDeviceListMappedWithSbi_Invalid_SBI_ID: + endPoint: /v1/partnermanager/securebiometricinterface/sbi-devices/{sbiId} + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: get + inputTemplate: pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbi + outputTemplate: pms/error + input: '{ + "sbiId": "AJDJD9281" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_005" + } + ] +}' \ No newline at end of file diff --git a/api-test/testNgXmlFiles/pmsApi.xml b/api-test/testNgXmlFiles/pmsApi.xml index 35eaeba46c..1dfc1be79e 100644 --- a/api-test/testNgXmlFiles/pmsApi.xml +++ b/api-test/testNgXmlFiles/pmsApi.xml @@ -446,6 +446,13 @@ + + + + + + From d62525b6628b89bd9dcaee2c3df3ccba61f61072 Mon Sep 17 00:00:00 2001 From: Prathmesh Jadhav Date: Wed, 23 Oct 2024 16:53:25 +0530 Subject: [PATCH 2/3] [MOSIP-36423] - Automated GetAllDeviceListMappedWithSbi Signed-off-by: Prathmesh Jadhav --- .../DeactivateDeviceNegativeScenarios.hbs | 9 + .../DeactivateDeviceNegativeScenarios.yml | 183 ++++++++ ...WithAssociatedDevicesNegativeScenarios.hbs | 9 + ...WithAssociatedDevicesNegativeScenarios.yml | 433 ++++++++++++++++++ ...ovedDeviceProviderIdsNegativeScenarios.yml | 35 ++ api-test/testNgXmlFiles/pmsApi.xml | 16 + 6 files changed, 685 insertions(+) create mode 100644 api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.hbs create mode 100644 api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml create mode 100644 api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.hbs create mode 100644 api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml create mode 100644 api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml diff --git a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.hbs b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.hbs new file mode 100644 index 0000000000..b7a4d5c2cd --- /dev/null +++ b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.hbs @@ -0,0 +1,9 @@ +{ + "id": "{{id}}", + "version": "{{version}}", + "requestTime": "{{requesttime}}", + "metadata": {}, + "request": { + "deviceId": "{{deviceId}}" + } +} \ 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 new file mode 100644 index 0000000000..4b2d80fcac --- /dev/null +++ b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml @@ -0,0 +1,183 @@ +DeactivateDevice: + Pms_DeactivateDevice_without_authentication: + endPoint: /v1/partnermanager/devicedetail/deactivate-device + uniqueIdentifier: TC_PMS_DeactivateDevice_01 + description: Deactivate Device without authentication + role: batch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateDevice/DeactivateDevice + outputTemplate: pms/error + input: '{ + "requesttime": "$TIMESTAMP$", + "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "KER-ATH-401" + } + ] +}' + Pms_DeactivateDevice_with_Invalid_Device_ID: + endPoint: /v1/partnermanager/devicedetail/deactivate-device + uniqueIdentifier: TC_PMS_DeactivateDevice_02 + description: Deactivate Device with Invalid Device ID + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateDevice/DeactivateDevice + outputTemplate: pms/error + input: '{ + "requesttime": "$TIMESTAMP$", + "deviceId": "APPLE1111222" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_006" + } + ] +}' + Pms_DeactivateDevice_with_Invalid_requestTime: + endPoint: /v1/partnermanager/devicedetail/deactivate-device + uniqueIdentifier: TC_PMS_DeactivateDevice_03 + description: Deactivate Device with Invalid Device ID + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateDevice/DeactivateDevice + outputTemplate: pms/error + input: '{ + "requesttime": "1111-07-22T08:21:17.665Z", + "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_006" + } + ] +}' + Pms_DeactivateDevice_Missing_requestTime: + endPoint: /v1/partnermanager/devicedetail/deactivate-device + uniqueIdentifier: TC_PMS_DeactivateDevice_04 + description: Deactivate Device while keeping requestTime as Missing + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateDevice/DeactivateDevice + outputTemplate: pms/error + input: '{ + "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_004" + } + ] +}' + Pms_DeactivateDevice_Empty_requestTime: + endPoint: /v1/partnermanager/devicedetail/deactivate-device + uniqueIdentifier: TC_PMS_DeactivateDevice_05 + description: Deactivate Device while keeping requestTime as Empty + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateDevice/DeactivateDevice + outputTemplate: pms/error + input: '{ + "requesttime": "$REMOVE$", + "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_004" + } + ] +}' + Pms_DeactivateDevice_with_Invalid_RandomDevice_ID: + endPoint: /v1/partnermanager/devicedetail/deactivate-device + uniqueIdentifier: TC_PMS_DeactivateDevice_06 + description: Deactivate Device with Invalid Random Device ID + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateDevice/DeactivateDevice + outputTemplate: pms/error + input: '{ + "requesttime": "$TIMESTAMP$", + "deviceId": "00001111222" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_006" + } + ] +}' + Pms_DeactivateDevice_Already_deactivated_device: + endPoint: /v1/partnermanager/devicedetail/deactivate-device + uniqueIdentifier: TC_PMS_DeactivateDevice_07 + description: Deactivate Device which already Deactivated + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateDevice/DeactivateDevice + outputTemplate: pms/error + input: '{ + "requesttime": "$TIMESTAMP$", + "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_014" + } + ] +}' + Pms_DeactivateDevice_with_Invalid_Version: + endPoint: /v1/partnermanager/devicedetail/deactivate-device + uniqueIdentifier: TC_PMS_DeactivateDevice_08 + description: Deactivate Device which invalid Version + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateDevice/DeactivateDeviceNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.device.post", + "version": "99", + "requesttime": "$TIMESTAMP$", + "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_003" + } + ] +}' + Pms_DeactivateDevice_with_Empty_Version: + endPoint: /v1/partnermanager/devicedetail/deactivate-device + uniqueIdentifier: TC_PMS_DeactivateDevice_09 + description: Deactivate Device while keeping Version parameter as Empty + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateDevice/DeactivateDeviceNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.device.post", + "version": "$REMOVE$", + "requesttime": "$TIMESTAMP$", + "deviceId": "$ID:SaveDeviceDetails_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_003" + } + ] +}' diff --git a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.hbs b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.hbs new file mode 100644 index 0000000000..e3c25d64f9 --- /dev/null +++ b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.hbs @@ -0,0 +1,9 @@ +{ + "id": "{{id}}", + "version": "{{version}}", + "requestTime": "{{requesttime}}", + "metadata": {}, + "request": { + "sbiId": "{{sbiId}}" + } +} \ 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 new file mode 100644 index 0000000000..d84fb4a00f --- /dev/null +++ b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml @@ -0,0 +1,433 @@ +DeactivateSBIWithAssociatedDevices: + Pms_DeactivateSBIWithAssociatedDevices_Without_Authentication: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_01 + description: Deactivate SBI with associated Devices without authentication + role: batch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices + outputTemplate: pms/error + input: '{ + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "KER-ATH-401" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Missing_requestTime: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_02 + description: Deactivate SBI while keeping Missing requestTime parameter + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices + outputTemplate: pms/error + input: '{ + "requesttime": "$REMOVE$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_004" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Empty_requestTime: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_03 + description: Deactivate SBI while keeping Empty requestTime parameter + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices + outputTemplate: pms/error + input: '{ + "requesttime": "", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_004" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Invalid_ID: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_04 + description: Deactivate SBI with Invalid ID parameter + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "JSKSKA56888", + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_002" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Missing_ID: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_05 + description: Deactivate SBI without ID parameter + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "$REMOVE$", + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_002" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Keeping_IDas_Null: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_06 + description: Deactivate SBI while keeping ID parameter as Null + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "Null", + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_002" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Empty_ID: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_07 + description: Deactivate SBI while keeping ID parameter as Empty + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "", + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_002" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Missing_Version: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_08 + description: Deactivate SBI without Version parameter + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "$REMOVE$", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_003" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Null_Version: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_09 + description: Deactivate SBI while keeping Version parameter as Null + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "Null", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_003" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Empty_Version: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_10 + description: Deactivate SBI while keeping Version parameter as Empty + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_003" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_11 + description: Deactivate SBI while keeping Version parameter as invalid value 1 + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "1", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_003" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_12 + description: Deactivate SBI while keeping Version parameter as invalid value 0 + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "0", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_003" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_13 + description: Deactivate SBI while keeping Version parameter as invalid values + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "9977", + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_003" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Invalid_requestTime: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_14 + description: Deactivate SBI while keeping Request Time parameter as invalid + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "1.0", + "requesttime": "1111-07-22T08:21:17.665Z", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_REQUEST_ERROR_006" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Missing_ObjectParameter: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_15 + description: Deactivate SBI while keeping Object parameter as Missing + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "sbiId": "$REMOVE$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_017" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Already_deactivated_SBI: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_16 + description: Deactivate SBI which already Deactivated + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevices + outputTemplate: pms/error + input: '{ + "requesttime": "$TIMESTAMP$", + "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_020" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Null_SBI_ID: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_17 + description: Deactivate SBI while keeping SBI ID parameter as Null + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "sbiId": "Null" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_005" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Empty_SBI_ID: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_18 + description: Deactivate SBI while keeping SBI ID parameter as Empty + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "sbiId": "" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_005" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_InvalidNumeric_SBI_ID: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_19 + description: Deactivate SBI while keeping SBI ID parameter as Invalid Numeric values + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "sbiId": "0101022" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_005" + } + ] +}' + Pms_DeactivateSBIWithAssociatedDevices_Invalid_SBI_ID: + endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi + uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_20 + description: Deactivate SBI while keeping SBI ID parameter as Invalid values + role: partnerrevampdevice + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios + outputTemplate: pms/error + input: '{ + "id": "mosip.pms.deactivate.sbi.post", + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "sbiId": "APPLEMANCAP" +}' + output: '{ + "errors": [ + { + "errorCode": "PMS_DEVICE_ERROR_005" + } + ] +}' \ No newline at end of file diff --git a/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml b/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml new file mode 100644 index 0000000000..d169c9c2f6 --- /dev/null +++ b/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml @@ -0,0 +1,35 @@ +GetAllApprovedDeviceProviderIds: + Pms_GetAllApprovedDeviceProviderIds_Without_Authentication: + endPoint: /v1/partnermanager/partners/getAllApprovedDeviceProviderIds + uniqueIdentifier: TC_PMS_GetAllApprovedDeviceProviderIds_01 + description: Retrieve All Approved Device ProviderIds Without Authentication + role: batch + restMethod: get + inputTemplate: pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIds + outputTemplate: pms/error + input: '{ +}' + output: '{ + "errors": [ + { + "errorCode": "KER-ATH-401" + } + ] +}' + Pms_GetAllApprovedDeviceProviderIds_Invalid_Token: + endPoint: /v1/partnermanager/partners/getAllApprovedDeviceProviderIds + uniqueIdentifier: TC_PMS_GetAllApprovedDeviceProviderIds_02 + description: Retrieve All Approved Device ProviderIds with invalid access token + role: regproc + restMethod: get + inputTemplate: pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIds + outputTemplate: pms/error + input: '{ +}' + output: '{ + "errors": [ + { + "errorCode": "KER-ATH-403" + } + ] +}' \ No newline at end of file diff --git a/api-test/testNgXmlFiles/pmsApi.xml b/api-test/testNgXmlFiles/pmsApi.xml index 1dfc1be79e..e09da98e64 100644 --- a/api-test/testNgXmlFiles/pmsApi.xml +++ b/api-test/testNgXmlFiles/pmsApi.xml @@ -461,6 +461,14 @@ name="io.mosip.testrig.apirig.testscripts.SimplePost" /> + + + + + + @@ -469,4 +477,12 @@ name="io.mosip.testrig.apirig.testscripts.SimplePost" /> + + + + + + \ No newline at end of file From 7c19649f7e60d7b7dc4c66c793f35dffc817bd38 Mon Sep 17 00:00:00 2001 From: Prathmesh Jadhav Date: Thu, 24 Oct 2024 14:45:19 +0530 Subject: [PATCH 3/3] MOSIP-36423 - Automated Negative Scenarios for PMS Signed-off-by: Prathmesh Jadhav --- .../DeactivateDeviceNegativeScenarios.yml | 36 +++--- ...WithAssociatedDevicesNegativeScenarios.yml | 106 +++++++++--------- ...ovedDeviceProviderIdsNegativeScenarios.yml | 6 +- ...viceListMappedWithSbiNegativeScenarios.yml | 10 +- 4 files changed, 81 insertions(+), 77 deletions(-) diff --git a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml index 4b2d80fcac..edbd7f416b 100644 --- a/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/DeactivateDevice/DeactivateDeviceNegativeScenarios.yml @@ -1,8 +1,8 @@ -DeactivateDevice: - Pms_DeactivateDevice_without_authentication: +DeactivateDeviceNegativeScenarios: + Pms_DeactivateDevice_without_authentication_Neg: endPoint: /v1/partnermanager/devicedetail/deactivate-device uniqueIdentifier: TC_PMS_DeactivateDevice_01 - description: Deactivate Device without authentication + description: Deactivate Device without Partner authentication role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -19,10 +19,10 @@ DeactivateDevice: } ] }' - Pms_DeactivateDevice_with_Invalid_Device_ID: + Pms_DeactivateDevice_with_Invalid_Device_ID_Neg: endPoint: /v1/partnermanager/devicedetail/deactivate-device uniqueIdentifier: TC_PMS_DeactivateDevice_02 - description: Deactivate Device with Invalid Device ID + description: Deactivate Device by passing invalid Device ID role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -39,10 +39,10 @@ DeactivateDevice: } ] }' - Pms_DeactivateDevice_with_Invalid_requestTime: + Pms_DeactivateDevice_with_Invalid_requestTime_Neg: endPoint: /v1/partnermanager/devicedetail/deactivate-device uniqueIdentifier: TC_PMS_DeactivateDevice_03 - description: Deactivate Device with Invalid Device ID + description: Deactivate Device by passing invalid requestTime role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -59,10 +59,10 @@ DeactivateDevice: } ] }' - Pms_DeactivateDevice_Missing_requestTime: + Pms_DeactivateDevice_Missing_requestTime_Neg: endPoint: /v1/partnermanager/devicedetail/deactivate-device uniqueIdentifier: TC_PMS_DeactivateDevice_04 - description: Deactivate Device while keeping requestTime as Missing + description: Deactivate Device while keeping requestTime paramter as Missing checkErrorsOnlyInResponse: true restMethod: post inputTemplate: pms/DeactivateDevice/DeactivateDevice @@ -77,10 +77,10 @@ DeactivateDevice: } ] }' - Pms_DeactivateDevice_Empty_requestTime: + Pms_DeactivateDevice_Empty_requestTime_Neg: endPoint: /v1/partnermanager/devicedetail/deactivate-device uniqueIdentifier: TC_PMS_DeactivateDevice_05 - description: Deactivate Device while keeping requestTime as Empty + description: Deactivate Device while keeping requestTime paramter as Empty role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -97,10 +97,10 @@ DeactivateDevice: } ] }' - Pms_DeactivateDevice_with_Invalid_RandomDevice_ID: + Pms_DeactivateDevice_with_Invalid_RandomDevice_ID_Neg: endPoint: /v1/partnermanager/devicedetail/deactivate-device uniqueIdentifier: TC_PMS_DeactivateDevice_06 - description: Deactivate Device with Invalid Random Device ID + description: Deactivate Device by passwing invalid Random Device ID role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -117,10 +117,10 @@ DeactivateDevice: } ] }' - Pms_DeactivateDevice_Already_deactivated_device: + Pms_DeactivateDevice_Already_deactivated_device_Neg: endPoint: /v1/partnermanager/devicedetail/deactivate-device uniqueIdentifier: TC_PMS_DeactivateDevice_07 - description: Deactivate Device which already Deactivated + description: Deactivate Device which has been already Deactivated role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -137,10 +137,10 @@ DeactivateDevice: } ] }' - Pms_DeactivateDevice_with_Invalid_Version: + Pms_DeactivateDevice_with_Invalid_Version_Neg: endPoint: /v1/partnermanager/devicedetail/deactivate-device uniqueIdentifier: TC_PMS_DeactivateDevice_08 - description: Deactivate Device which invalid Version + description: Deactivate Device by passing invalid Version role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -159,7 +159,7 @@ DeactivateDevice: } ] }' - Pms_DeactivateDevice_with_Empty_Version: + Pms_DeactivateDevice_with_Empty_Version_Neg: endPoint: /v1/partnermanager/devicedetail/deactivate-device uniqueIdentifier: TC_PMS_DeactivateDevice_09 description: Deactivate Device while keeping Version parameter as Empty diff --git a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml index d84fb4a00f..97ceb96220 100644 --- a/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/DeactivateSBIWithAssociatedDevices/DeactivateSBIWithAssociatedDevicesNegativeScenarios.yml @@ -1,8 +1,8 @@ -DeactivateSBIWithAssociatedDevices: - Pms_DeactivateSBIWithAssociatedDevices_Without_Authentication: +DeactivateSBIWithAssociatedDevicesNegativeScenarios: + Pms_DeactivateSBIWithAssociatedDevices_Without_Authentication_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_01 - description: Deactivate SBI with associated Devices without authentication + description: Deactivate SBI with associated Devices without Partner authentication role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -19,10 +19,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Missing_requestTime: + Pms_DeactivateSBIWithAssociatedDevices_Missing_requestTime_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_02 - description: Deactivate SBI while keeping Missing requestTime parameter + description: Deactivate SBI while keeping requestTime parameter as Missing in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -39,10 +39,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Empty_requestTime: + Pms_DeactivateSBIWithAssociatedDevices_Empty_requestTime_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_03 - description: Deactivate SBI while keeping Empty requestTime parameter + description: Deactivate SBI while keeping requestTime parameter as Empty in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -59,10 +59,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Invalid_ID: + Pms_DeactivateSBIWithAssociatedDevices_Invalid_ID_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_04 - description: Deactivate SBI with Invalid ID parameter + description: Deactivate SBI by passing Invalid ID parameter in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -81,10 +81,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Missing_ID: + Pms_DeactivateSBIWithAssociatedDevices_Missing_ID_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_05 - description: Deactivate SBI without ID parameter + description: Deactivate SBI while keeping ID parameter as Missing in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -103,10 +103,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Keeping_IDas_Null: + Pms_DeactivateSBIWithAssociatedDevices_Keeping_IDas_Null_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_06 - description: Deactivate SBI while keeping ID parameter as Null + description: Deactivate SBI while keeping ID parameter as Null in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -125,10 +125,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Empty_ID: + Pms_DeactivateSBIWithAssociatedDevices_Empty_ID_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_07 - description: Deactivate SBI while keeping ID parameter as Empty + description: Deactivate SBI while keeping ID parameter as Empty in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -147,10 +147,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Missing_Version: + Pms_DeactivateSBIWithAssociatedDevices_Missing_Version_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_08 - description: Deactivate SBI without Version parameter + description: Deactivate SBI without Version parameter in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -158,7 +158,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "$REMOVE$", + "version": "$REMOVE$", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" }' @@ -169,10 +169,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Null_Version: + Pms_DeactivateSBIWithAssociatedDevices_Null_Version_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_09 - description: Deactivate SBI while keeping Version parameter as Null + description: Deactivate SBI while keeping Version parameter as Null in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -180,7 +180,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "Null", + "version": "Null", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" }' @@ -191,10 +191,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Empty_Version: + Pms_DeactivateSBIWithAssociatedDevices_Empty_Version_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_10 - description: Deactivate SBI while keeping Version parameter as Empty + description: Deactivate SBI while keeping Version parameter as Empty in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -202,7 +202,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "", + "version": "", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" }' @@ -213,10 +213,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue: + Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_11 - description: Deactivate SBI while keeping Version parameter as invalid value 1 + description: Deactivate SBI while keeping Version parameter as invalid value 1 in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -224,7 +224,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "1", + "version": "1", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" }' @@ -235,10 +235,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue: + Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_12 - description: Deactivate SBI while keeping Version parameter as invalid value 0 + description: Deactivate SBI while keeping Version parameter as invalid value 0 in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -246,7 +246,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "0", + "version": "0", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" }' @@ -257,10 +257,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue: + Pms_DeactivateSBIWithAssociatedDevices_Invalid_VersionValue_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_13 - description: Deactivate SBI while keeping Version parameter as invalid values + description: Deactivate SBI while keeping Version parameter as invalid values in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -268,7 +268,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "9977", + "version": "9977", "requesttime": "$TIMESTAMP$", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" }' @@ -279,10 +279,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Invalid_requestTime: + Pms_DeactivateSBIWithAssociatedDevices_Invalid_requestTime_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_14 - description: Deactivate SBI while keeping Request Time parameter as invalid + description: Deactivate SBI while keeping Request Time parameter as invalid in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -290,7 +290,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "1.0", + "version": "1.0", "requesttime": "1111-07-22T08:21:17.665Z", "sbiId": "$ID:SaveSecureBiometricInterfaceCreateDto_DeviceProvider_AllValid_Smoke_sid_id$" }' @@ -301,10 +301,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Missing_ObjectParameter: + Pms_DeactivateSBIWithAssociatedDevices_Missing_ObjectParameter_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_15 - description: Deactivate SBI while keeping Object parameter as Missing + description: Deactivate SBI while keeping Object parameter as Missing in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -312,7 +312,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "1.0", + "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "$REMOVE$" }' @@ -323,10 +323,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Already_deactivated_SBI: + Pms_DeactivateSBIWithAssociatedDevices_Already_deactivated_SBI_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_16 - description: Deactivate SBI which already Deactivated + description: Deactivate SBI which already Deactivated in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -343,10 +343,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Null_SBI_ID: + Pms_DeactivateSBIWithAssociatedDevices_Null_SBI_ID_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_17 - description: Deactivate SBI while keeping SBI ID parameter as Null + description: Deactivate SBI while keeping SBI ID parameter as Null in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -354,7 +354,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "1.0", + "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "Null" }' @@ -365,10 +365,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Empty_SBI_ID: + Pms_DeactivateSBIWithAssociatedDevices_Empty_SBI_ID_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_18 - description: Deactivate SBI while keeping SBI ID parameter as Empty + description: Deactivate SBI while keeping SBI ID parameter as Empty in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -376,7 +376,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "1.0", + "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "" }' @@ -387,10 +387,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_InvalidNumeric_SBI_ID: + Pms_DeactivateSBIWithAssociatedDevices_InvalidNumeric_SBI_ID_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_19 - description: Deactivate SBI while keeping SBI ID parameter as Invalid Numeric values + description: Deactivate SBI while keeping SBI ID parameter as Invalid Numeric values in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -398,7 +398,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "1.0", + "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "0101022" }' @@ -409,10 +409,10 @@ DeactivateSBIWithAssociatedDevices: } ] }' - Pms_DeactivateSBIWithAssociatedDevices_Invalid_SBI_ID: + Pms_DeactivateSBIWithAssociatedDevices_Invalid_SBI_ID_Neg: endPoint: /v1/partnermanager/securebiometricinterface/deactivate-sbi uniqueIdentifier: TC_PMS_DeactivateSBIWithAssociatedDevices_20 - description: Deactivate SBI while keeping SBI ID parameter as Invalid values + description: Deactivate SBI while keeping SBI ID parameter as Invalid values in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: post @@ -420,7 +420,7 @@ DeactivateSBIWithAssociatedDevices: outputTemplate: pms/error input: '{ "id": "mosip.pms.deactivate.sbi.post", - "version": "1.0", + "version": "1.0", "requesttime": "$TIMESTAMP$", "sbiId": "APPLEMANCAP" }' diff --git a/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml b/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml index d169c9c2f6..af177aff6e 100644 --- a/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/GetAllApprovedDeviceProviderIds/GetAllApprovedDeviceProviderIdsNegativeScenarios.yml @@ -1,5 +1,5 @@ -GetAllApprovedDeviceProviderIds: - Pms_GetAllApprovedDeviceProviderIds_Without_Authentication: +GetAllApprovedDeviceProviderIdsNegativeScenarios: + Pms_GetAllApprovedDeviceProviderIds_Without_Authentication_Neg: endPoint: /v1/partnermanager/partners/getAllApprovedDeviceProviderIds uniqueIdentifier: TC_PMS_GetAllApprovedDeviceProviderIds_01 description: Retrieve All Approved Device ProviderIds Without Authentication @@ -16,7 +16,7 @@ GetAllApprovedDeviceProviderIds: } ] }' - Pms_GetAllApprovedDeviceProviderIds_Invalid_Token: + Pms_GetAllApprovedDeviceProviderIds_Invalid_Token_Neg: endPoint: /v1/partnermanager/partners/getAllApprovedDeviceProviderIds uniqueIdentifier: TC_PMS_GetAllApprovedDeviceProviderIds_02 description: Retrieve All Approved Device ProviderIds with invalid access token diff --git a/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml b/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml index abfb3a86f6..250ce157e1 100644 --- a/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml +++ b/api-test/src/main/resources/pms/GetAllDeviceListMappedWithSbi/GetAllDeviceListMappedWithSbiNegativeScenarios.yml @@ -1,6 +1,8 @@ -GetAllDeviceListMappedWithSbi: - Pms_GetAllDeviceListMappedWithSbi_without_authentication: +GetAllDeviceListMappedWithSbiNegativeScenarios: + Pms_GetAllDeviceListMappedWithSbi_without_authentication_Neg: endPoint: /v1/partnermanager/securebiometricinterface/sbi-devices/{sbiId} + uniqueIdentifier: TC_PMS_GetAllDeviceListMappedWithSbiNegativeScenarios_01 + description: Retrieve all Device list which are mapped with SBI without Authentication role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -16,8 +18,10 @@ GetAllDeviceListMappedWithSbi: } ] }' - Pms_GetAllDeviceListMappedWithSbi_Invalid_SBI_ID: + Pms_GetAllDeviceListMappedWithSbi_Invalid_SBI_ID_Neg: endPoint: /v1/partnermanager/securebiometricinterface/sbi-devices/{sbiId} + uniqueIdentifier: TC_PMS_GetAllDeviceListMappedWithSbiNegativeScenarios_02 + description: Retrieve all Device list which are mapped with SBI by provinding invalid SBI id in request role: partnerrevampdevice checkErrorsOnlyInResponse: true restMethod: get