diff --git a/collections/hub/other_tests/sdk_tests/subscenario.json b/collections/hub/other_tests/sdk_tests/subscenario.json index 0f6b9b3c..fe8bcba6 100644 --- a/collections/hub/other_tests/sdk_tests/subscenario.json +++ b/collections/hub/other_tests/sdk_tests/subscenario.json @@ -331,6 +331,69 @@ } } ] + }, + { + "id": 3, + "name": "Invalid value in subscenario should trigger a 400-Bad Request response.", + "fileInfo": { + "path": "testing-toolkit-test-cases/collections/hub/other_tests/sdk_tests/subscenario.json" + }, + "meta": { + "info": "Invalid value in subscenario should trigger a 400-Bad Request response." + }, + "requests": [ + { + "id": 1, + "description": "POST /transfers", + "apiVersion": { + "minorVersion": 0, + "majorVersion": 1, + "type": "scheme_adapter_outbound", + "asynchronous": true, + "prefix": "/sdk-out", + "hostnames": [], + "specFile": "spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/api_spec.yaml", + "callbackMapFile": "spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/callback_map.json", + "responseMapFile": "spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/response_map.json", + "jsfRefFile": "spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/mockRef.json", + "triggerTemplatesFolder": "spec_files/api_definitions/mojaloop_sdk_outbound_scheme_adapter_1.0/trigger_templates" + }, + "operationPath": "/transfers", + "path": "/transfers", + "method": "post", + "body": { + "from": { + "displayName": "{$inputs.TTKSIM2_MSISDN_1_FIRST_NAME}", + "idType": "MSISDN", + "idValue": "{$inputs.TTKSIM1_MSISDN_1}" + }, + "to": { + "idType": "MSISDN", + "idValue": "{$inputs.TTKSIM2_MSISDN_1}" + }, + "amountType": "SEND", + "currency": "{$inputs.TTKSIM1_CURRENCY}", + "amount": "10", + "transactionType": "TRANSFER", + "subScenario": "SUBSCENARIOSUBSCENARIOSUBSCENARIO", + "initiatorType": "CONSUMER", + "note": "test payment", + "homeTransactionId": "123ABC" + }, + "scriptingEngine": "javascript", + "tests": { + "assertions": [ + { + "id": 1, + "description": "statusCode is 400", + "exec": [ + "expect(response.status).to.equal(400)" + ] + } + ] + } + } + ] } ] }