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

fix(#2308): ttk golden path payee invalid timestamp intermittently fails due timing issues #41

Merged
Changes from all 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
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