Skip to content

Commit

Permalink
Merge pull request #41 from mdebarros/feature/fix--#2308-ttk-golden-p…
Browse files Browse the repository at this point in the history
…ath-payee_invalid_timestamp-intermittently-fails-due-timing-issues

fix(#2308): ttk golden path payee invalid timestamp intermittently fails due timing issues
  • Loading branch information
mdebarros authored Jun 23, 2021
2 parents 8b97f8c + db11f58 commit 249d8cd
Showing 1 changed file with 40 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "multi",
"test_cases": [
{
"id": 1,
Expand Down Expand Up @@ -30,7 +31,7 @@
}
]
},
"scriptingEngine": "javascript",
"scriptingEngine": "javascript",
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
Expand All @@ -41,8 +42,7 @@
"environment[environment.SIMPAYER_NAME + 'PositionBeforeTransfer'] = response.body[0].value"
]
}
},
"scriptingEngine": "javascript"
}
},
{
"id": 2,
Expand Down Expand Up @@ -70,7 +70,7 @@
}
]
},
"scriptingEngine": "javascript",
"scriptingEngine": "javascript",
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
Expand All @@ -81,8 +81,7 @@
"environment[environment.SIMPAYEE_NAME + 'PositionBeforeTransfer'] = response.body[0].value"
]
}
},
"scriptingEngine": "javascript"
}
},
{
"id": 3,
Expand All @@ -100,7 +99,7 @@
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.SIMPAYEE_NAME}"
},
"body": {
Expand Down Expand Up @@ -316,6 +315,7 @@
},
"path": "/quotes",
"url": "{$inputs.HOST_QUOTING_SERVICE}",
"scriptingEngine": "javascript",
"scripts": {
"postRequest": {
"exec": [
Expand Down Expand Up @@ -343,8 +343,7 @@
"}"
]
}
},
"scriptingEngine": "javascript"
}
},
{
"id": 4,
Expand All @@ -362,7 +361,7 @@
"Content-Type": "application/vnd.interoperability.transfers+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.NORESPONSE_SIMPAYEE_NAME}"
},
"body": {
Expand Down Expand Up @@ -392,19 +391,40 @@
"exec": [
"expect(response.statusText).to.equal('Accepted')"
]
},
{
"id": 3,
"description": "Callback Body - errorCode is 3303",
"exec": [
"expect(callback.body.errorInformation.errorCode).to.equal('3303')",
""
]
},
{
"id": 4,
"description": "Callback Body - errorDescription is Transfer expired",
"exec": [
"expect(callback.body.errorInformation.errorDescription).to.equal('Transfer expired')",
""
]
}
]
},
"url": "{$inputs.HOST_ML_API_ADAPTER}",
"ignoreCallbacks": true,
"ignoreCallbacks": false,
"scriptingEngine": "javascript",
"scripts": {
"preRequest": {
"exec": [
"requestVariables.transferExpiration = new Date(new Date().getTime() + 2000).toISOString()"
]
},
"postRequest": {
"exec": [
""
]
}
},
"scriptingEngine": "javascript"
}
},
{
"id": 5,
Expand All @@ -427,7 +447,7 @@
"Content-Type": "application/vnd.interoperability.transfers+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.NORESPONSE_SIMPAYEE_NAME}",
"Authorization": "{$inputs.NORESPONSE_BEARER_TOKEN}",
"Authorization": "{$inputs.NORESPONSE_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.fromFspId}"
},
"body": {
Expand Down Expand Up @@ -478,7 +498,7 @@
"Content-Type": "application/vnd.interoperability.transfers+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.NORESPONSE_SIMPAYEE_NAME}"
},
"tests": {
Expand Down Expand Up @@ -570,8 +590,7 @@
]
}
]
},
"delay": "16000"
}
},
{
"id": 7,
Expand Down Expand Up @@ -606,7 +625,7 @@
}
]
},
"scriptingEngine": "javascript",
"scriptingEngine": "javascript",
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
Expand All @@ -623,8 +642,7 @@
""
]
}
},
"scriptingEngine": "javascript"
}
},
{
"id": 9,
Expand Down Expand Up @@ -659,7 +677,7 @@
}
]
},
"scriptingEngine": "javascript",
"scriptingEngine": "javascript",
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
Expand All @@ -676,8 +694,7 @@
""
]
}
},
"scriptingEngine": "javascript"
}
}
]
}
Expand Down

0 comments on commit 249d8cd

Please sign in to comment.