-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mojaloop/3285): request to pay scenario field format (#442)
* chore: added sample tests * fix: transaction type object format in request-to-pay-model * chore: updated deps * chore(snapshot): 22.0.2-snapshot.0 * fix: license issue with dependencies with these commands * yarn set resolution glob@npm:^9.2.0 8.1.0 * yarn set resolution glob@npm:^9.3.0 8.1.0 * yarn set resolution glob@npm:^9.3.1 8.1.0 Note: Glob v9.x introducing a dependency Package "[email protected]" which is licensed under "BlueOak-1.0.0" which is not permitted by the Mojaloop License Policy * fix: changed the ubuntu version to specific in executor * fix: added KAFKA_ENABLE_KRAFT on docker compose to disable KRAFT * chore: updated circleci default-machine ubuntu image * chore: updated circleci default-machine ubuntu image * fix: downgraded kafka docker version in func tests * chore: updated fun docker-compose - removed dependency on zookeeper - updated kafka to use "kraft" - updated ports to reflect this change * fix: revert some updates * fix: revert some updates fixed lock file * fix: reverted package.json files * fix: reverted package.json files yarn.lock * fix: reverted yarn.lock * fix: kafka port in api-svc * fix: reverted kafka config changes * chore: update dependencies * chore(snapshot): 22.0.2-snapshot.1 * chore(snapshot): 22.0.2-snapshot.2 * chore: dep update yarn.lock * chore(snapshot): 22.0.2-snapshot.3 * chore: update deps --------- Co-authored-by: Miguel de Barros <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,332 additions
and
847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,7 @@ reject: [ | |
## TODO: Investigate. | ||
'@mojaloop/platform-shared-lib-nodejs-kafka-client-lib', | ||
## TODO: The kafka connectivity is not working properly and the following update is causing service crash. | ||
'@mojaloop/logging-bc-client-lib' | ||
'@mojaloop/logging-bc-client-lib', | ||
## TODO: The new version of npm-check-updates uses new Glob v9.x and it is introducing a dependency Package "[email protected]" which is licensed under "BlueOak-1.0.0" which is not permitted by the Mojaloop License Policy | ||
npm-check-updates | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
docker/ml-testing-toolkit/sample-tests/inbound-transaction-requests.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"test_cases": [ | ||
{ | ||
"id": 1, | ||
"name": "FSPIOP Post Transaction Requests", | ||
"requests": [ | ||
{ | ||
"id": 1, | ||
"description": "POST /transactionRequests", | ||
"apiVersion": { | ||
"minorVersion": 0, | ||
"majorVersion": 1, | ||
"type": "fspiop", | ||
"asynchronous": true, | ||
"specFile": "spec_files/api_definitions/fspiop_1.0/api_spec.yaml", | ||
"callbackMapFile": "spec_files/api_definitions/fspiop_1.0/callback_map.json", | ||
"responseMapFile": "spec_files/api_definitions/fspiop_1.0/response_map.json", | ||
"jsfRefFile": "spec_files/api_definitions/fspiop_1.0/mockRef.json", | ||
"triggerTemplatesFolder": "spec_files/api_definitions/fspiop_1.0/trigger_templates" | ||
}, | ||
"operationPath": "/transactionRequests", | ||
"path": "/transactionRequests", | ||
"method": "post", | ||
"url": "http://host.docker.internal:4000", | ||
"body": { | ||
"transactionRequestId": "{$function.generic.generateUUID}", | ||
"payer": { | ||
"partyIdType": "MSISDN", | ||
"partyIdentifier": "25644444444", | ||
"fspId": "mojaloop-sdk" | ||
}, | ||
"payee": { | ||
"partyIdInfo": { | ||
"partyIdType": "MSISDN", | ||
"partyIdentifier": "1234567890", | ||
"fspId": "switch" | ||
}, | ||
"personalInfo": { | ||
"complexName": { | ||
"firstName": "Justin", | ||
"middleName": "Pierre", | ||
"lastName": "Trudeau" | ||
}, | ||
"dateOfBirth": "1980-01-01" | ||
} | ||
}, | ||
"amount": { | ||
"currency": "USD", | ||
"amount": "10" | ||
}, | ||
"transactionType": { | ||
"scenario": "TRANSFER", | ||
"initiator": "PAYEE", | ||
"initiatorType": "CONSUMER" | ||
} | ||
}, | ||
"headers": { | ||
"Accept": "application/vnd.interoperability.transactionRequests+json;version=1", | ||
"Content-Type": "application/vnd.interoperability.transactionRequests+json;version=1.0", | ||
"Date": "{$function.generic.curDate}", | ||
"FSPIOP-Source": "" | ||
} | ||
} | ||
], | ||
"fileInfo": { | ||
"path": "sample-tests/inbound-transaction-requests.json" | ||
} | ||
} | ||
] | ||
} |
48 changes: 48 additions & 0 deletions
48
docker/ml-testing-toolkit/sample-tests/outbound-request-to-pay.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"test_cases": [ | ||
{ | ||
"id": 1, | ||
"name": "Post Request To Pay", | ||
"requests": [ | ||
{ | ||
"id": 1, | ||
"description": "Post /requestToPay", | ||
"apiVersion": { | ||
"minorVersion": 0, | ||
"majorVersion": 1, | ||
"type": "scheme_adapter_outbound", | ||
"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": "/requestToPay", | ||
"path": "/requestToPay", | ||
"method": "post", | ||
"url": "http://host.docker.internal:4001", | ||
"body": { | ||
"homeTransactionId": "abc123", | ||
"from": { | ||
"idType": "MSISDN", | ||
"idValue": "25644444444" | ||
}, | ||
"to": { | ||
"idType": "MSISDN", | ||
"idValue": "1234567890" | ||
}, | ||
"amountType": "SEND", | ||
"currency": "USD", | ||
"amount": "10", | ||
"transactionType": "TRANSFER" | ||
} | ||
} | ||
], | ||
"fileInfo": { | ||
"path": "sample-tests/outbound-request-to-pay.json" | ||
} | ||
} | ||
] | ||
} |
49 changes: 49 additions & 0 deletions
49
docker/ml-testing-toolkit/sample-tests/outbound-transfer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"test_cases": [ | ||
{ | ||
"id": 1, | ||
"name": "Post Transfer", | ||
"requests": [ | ||
{ | ||
"id": 1, | ||
"description": "Post Transfer", | ||
"apiVersion": { | ||
"minorVersion": 0, | ||
"majorVersion": 1, | ||
"type": "scheme_adapter_outbound", | ||
"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", | ||
"url": "http://host.docker.internal:4001", | ||
"body": { | ||
"homeTransactionId": "abc123", | ||
"from": { | ||
"idType": "MSISDN", | ||
"idValue": "25644444444" | ||
}, | ||
"to": { | ||
"idType": "MSISDN", | ||
"idValue": "1234567890" | ||
}, | ||
"amountType": "SEND", | ||
"currency": "USD", | ||
"amount": "10", | ||
"transactionType": "TRANSFER", | ||
"note": "string" | ||
} | ||
} | ||
], | ||
"fileInfo": { | ||
"path": "sample-tests/outbound-transfer.json" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.