Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: callback rule updates to suppose patch notification test-scenarios #200

Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
198 changes: 198 additions & 0 deletions spec_files/rules_callback/default.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,202 @@
[
{
"ruleId": 29,
"priority": 1,
"description": "ttkpayeefsp PATCH Notifications Failure Test-case due to invalid fulfilment",
"apiVersion": {
"minorVersion": 1,
"majorVersion": 1,
"type": "fspiop",
"asynchronous": true
},
"conditions": {
"all": [
{
"fact": "headers",
"operator": "equal",
"value": "testingtoolkitdfsp",
"path": "FSPIOP-Source"
},
{
"fact": "headers",
"operator": "equal",
"value": "ttkpayeefsp",
"path": "FSPIOP-Destination"
},
{
"fact": "headers",
"operator": "equal",
"value": "application/vnd.interoperability.transfers+json;version=1.1",
"path": "Content-Type"
},
{
"fact": "body",
"operator": "numericEqual",
"value": "103",
"path": "amount.amount"
},
{
"fact": "operationPath",
"operator": "equal",
"value": "/transfers"
},
{
"fact": "method",
"operator": "equal",
"value": "post"
}
]
},
"event": {
"method": "put",
"path": "/transfers/{ID}",
"params": {
"body": {
"fulfilment": "WLctttbu2HvTsa1XWvUoGRcQozHsqeu9Ahl2JW9Bsu8",
"completedTimestamp": "{$function.generic.curDateISO}",
"transferState": "RESERVED",
"extensionList": null
},
"scripts": {
"scriptingEngine": "postman"
}
},
"type": "MOCK_CALLBACK"
},
"type": "callback",
"version": 1
},
{
"ruleId": 28,
"priority": 1,
"description": "ttkpayeefsp PATCH Notifications Failure Test-case due to invalid FSPIOP-Destination",
"apiVersion": {
"minorVersion": 1,
"majorVersion": 1,
"type": "fspiop",
"asynchronous": true
},
"conditions": {
"all": [
{
"fact": "headers",
"operator": "equal",
"value": "testingtoolkitdfsp",
"path": "FSPIOP-Source"
},
{
"fact": "headers",
"operator": "equal",
"value": "ttkpayeefsp",
"path": "FSPIOP-Destination"
},
{
"fact": "headers",
"operator": "equal",
"value": "application/vnd.interoperability.transfers+json;version=1.1",
"path": "Content-Type"
},
{
"fact": "body",
"operator": "numericEqual",
"value": "102",
"path": "amount.amount"
},
{
"fact": "operationPath",
"operator": "equal",
"value": "/transfers"
},
{
"fact": "method",
"operator": "equal",
"value": "post"
}
]
},
"event": {
"method": "put",
"path": "/transfers/{ID}",
"params": {
"headers": {
"FSPIOP-Destination": "doesnotexistfsp"
},
"body": {
"transferState": "RESERVED"
},
"scripts": {
"scriptingEngine": "postman"
}
},
"type": "MOCK_CALLBACK"
},
"type": "callback",
"version": 1
},
{
"ruleId": 27,
"priority": 1,
"description": "ttkpayeefsp PATCH Notifications Success Test-case",
"apiVersion": {
"minorVersion": 1,
"majorVersion": 1,
"type": "fspiop",
"asynchronous": true
},
"conditions": {
"all": [
{
"fact": "headers",
"operator": "equal",
"value": "testingtoolkitdfsp",
"path": "FSPIOP-Source"
},
{
"fact": "headers",
"operator": "equal",
"value": "ttkpayeefsp",
"path": "FSPIOP-Destination"
},
{
"fact": "headers",
"operator": "equal",
"value": "application/vnd.interoperability.transfers+json;version=1.1",
"path": "Content-Type"
},
{
"fact": "body",
"operator": "numericEqual",
"value": "101",
"path": "amount.amount"
},
{
"fact": "operationPath",
"operator": "equal",
"value": "/transfers"
},
{
"fact": "method",
"operator": "equal",
"value": "post"
}
]
},
"event": {
"method": "put",
"path": "/transfers/{ID}",
"params": {
"body": {
"transferState": "RESERVED"
},
"scripts": {
"scriptingEngine": "postman"
}
},
"type": "MOCK_CALLBACK"
},
"type": "callback",
"version": 1
},
{
"ruleId": 20,
"priority": 1,
Expand Down