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(mojaloop/3023): align ttk func tests from ttk testcases repo #425

Merged
merged 18 commits into from
Nov 24, 2022
Prev Previous commit
Next Next commit
updates to timeout rules
  • Loading branch information
Sridevi Miriyala committed Nov 22, 2022
commit 7cf21853f8a0bd6cbf69d7e6f3b594cd0aa2c8e4
48 changes: 41 additions & 7 deletions test/func/config/ttk-hub/spec_files/rules_forward/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,40 @@
{
"ruleId": 6,
"priority": 1,
"description": "put /parties/{Type}/{ID}/error",
"apiVersion": {
"minorVersion": 0,
"majorVersion": 1,
"type": "fspiop",
"asynchronous": true
},
"conditions": {
"all": [
{
"fact": "operationPath",
"operator": "equal",
"value": "/parties/{Type}/{ID}/error"
},
{
"fact": "method",
"operator": "equal",
"value": "put"
}
]
},
"event": {
"params": {
"to": "ttksim1",
"dfspId": "ttksim1"
},
"type": "FORWARD"
},
"type": "forward",
"version": 1
},
{
"ruleId": 7,
"priority": 1,
"description": "post /bulkQuotes to ttksim2",
"apiVersion": {
"minorVersion": 0,
Expand Down Expand Up @@ -246,7 +280,7 @@
"version": 1
},
{
"ruleId": 7,
"ruleId": 8,
"priority": 1,
"description": "post /bulkQuotes to ttksim3",
"apiVersion": {
Expand Down Expand Up @@ -286,7 +320,7 @@
"version": 1
},
{
"ruleId": 8,
"ruleId": 9,
"priority": 1,
"description": "put /bulkQuotes",
"apiVersion": {
Expand Down Expand Up @@ -320,7 +354,7 @@
"version": 1
},
{
"ruleId": 9,
"ruleId": 10,
"priority": 1,
"description": "put /bulkQuotes/{ID}/error",
"apiVersion": {
Expand Down Expand Up @@ -354,7 +388,7 @@
"version": 1
},
{
"ruleId": 10,
"ruleId": 11,
"priority": 1,
"description": "post /bulkTransfers to ttksim2",
"apiVersion": {
Expand Down Expand Up @@ -394,7 +428,7 @@
"version": 1
},
{
"ruleId": 11,
"ruleId": 12,
"priority": 1,
"description": "post /bulkTransfers to ttksim3",
"apiVersion": {
Expand Down Expand Up @@ -434,7 +468,7 @@
"version": 1
},
{
"ruleId": 12,
"ruleId": 13,
"priority": 1,
"description": "put /bulkTransfers",
"apiVersion": {
Expand Down Expand Up @@ -468,7 +502,7 @@
"version": 1
},
{
"ruleId": 13,
"ruleId": 14,
"priority": 1,
"description": "put /bulkTransfers/{ID}/error",
"apiVersion": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@
},
"statusCode": "200",
"scripts": {
"scriptingEngine": "postman"
},
"delay": 300000
"exec": [
"return null"
],
"scriptingEngine": "javascript"
}
},
"type": "FIXED_RESPONSE"
},
Expand Down Expand Up @@ -341,9 +343,11 @@
},
"statusCode": "200",
"scripts": {
"scriptingEngine": "postman"
},
"delay": 300000
"exec": [
"return null"
],
"scriptingEngine": "javascript"
}
},
"type": "FIXED_RESPONSE"
},
Expand Down Expand Up @@ -1002,9 +1006,11 @@
},
"statusCode": "200",
"scripts": {
"scriptingEngine": "postman"
},
"delay": 300000
"exec": [
"return null"
],
"scriptingEngine": "javascript"
}
},
"type": "FIXED_RESPONSE"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@
},
"statusCode": "200",
"scripts": {
"scriptingEngine": "postman"
},
"delay": 300000
"exec": [
"return null"
],
"scriptingEngine": "javascript"
}
},
"type": "FIXED_RESPONSE"
},
Expand Down Expand Up @@ -341,9 +343,11 @@
},
"statusCode": "200",
"scripts": {
"scriptingEngine": "postman"
},
"delay": 300000
"exec": [
"return null"
],
"scriptingEngine": "javascript"
}
},
"type": "FIXED_RESPONSE"
},
Expand Down Expand Up @@ -1002,9 +1006,11 @@
},
"statusCode": "200",
"scripts": {
"scriptingEngine": "postman"
},
"delay": 300000
"exec": [
"return null"
],
"scriptingEngine": "javascript"
}
},
"type": "FIXED_RESPONSE"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@
},
"statusCode": "200",
"scripts": {
"scriptingEngine": "postman"
},
"delay": 300000
"exec": [
"return null"
],
"scriptingEngine": "javascript"
}
},
"type": "FIXED_RESPONSE"
},
Expand Down Expand Up @@ -341,9 +343,11 @@
},
"statusCode": "200",
"scripts": {
"scriptingEngine": "postman"
},
"delay": 300000
"exec": [
"return null"
],
"scriptingEngine": "javascript"
}
},
"type": "FIXED_RESPONSE"
},
Expand Down Expand Up @@ -1002,9 +1006,11 @@
},
"statusCode": "200",
"scripts": {
"scriptingEngine": "postman"
},
"delay": 300000
"exec": [
"return null"
],
"scriptingEngine": "javascript"
}
},
"type": "FIXED_RESPONSE"
},
Expand Down