Skip to content

Commit

Permalink
test(mojaloop/#2845): change noresponse fsp to ttk and version spec (#…
Browse files Browse the repository at this point in the history
…119)

* test(mojaloop/#2845): change noresponse fsp to ttk and version spec files

* chore: fix descriptions

* chore: fix descriptions

* chore: update

* chore: update tests

* chore: update tests

* chore: update tests and remove unncessary fixed delays

* chore: remove payeefsp from quote

* chore: address comments

* chore: add listeners
  • Loading branch information
kleyow authored Apr 6, 2023
1 parent ad1a284 commit e48ae33
Show file tree
Hide file tree
Showing 11 changed files with 4,315 additions and 1,657 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"options": {},
"name": "multi",
"test_cases": [
{
Expand Down Expand Up @@ -148,7 +149,16 @@
"scripts": {
"preRequest": {
"exec": [
"requestVariables.transferExpiration = new Date(new Date().getTime() + 2000).toISOString()"
"requestVariables.transferExpiration = new Date(new Date().getTime() + 2000).toISOString()",
"await inboundEvent.addListener('payeePostTransfer', 'post', '/transfers', (headers, body) => {",
" return headers['fspiop-destination'] === '{$inputs.NORESPONSE_SIMPAYEE_NAME}'",
"})"
]
},
"postRequest": {
"exec": [
"requestVariables.payeePostTransfer = await inboundEvent.getMessage('payeePostTransfer')",
"console.log(requestVariables.payeePostTransfer)"
]
}
}
Expand Down Expand Up @@ -183,7 +193,6 @@
]
},
"scriptingEngine": "javascript",
"delay": "1000",
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
Expand Down Expand Up @@ -595,4 +604,4 @@
]
}
]
}
}
Loading

0 comments on commit e48ae33

Please sign in to comment.