@mojaloop/sdk-scheme-adapter 24.10.9-snapshot.0 → 24.10.9-snapshot.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docker/k666/package.json +17 -0
- package/modules/api-svc/package.json +1 -1
- package/modules/api-svc/src/lib/model/InboundTransfersModel.js +5 -1
- package/modules/outbound-command-event-handler/package.json +1 -1
- package/modules/outbound-domain-event-handler/package.json +1 -1
- package/modules/private-shared-lib/package.json +1 -1
- package/package.json +1 -1
- package/docker/k6/src/test.js +0 -43
- /package/{docker → audit}/k6/package.json +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "k6-tests",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "```bash docker run --rm -i grafana/k6 run --vus 1 --duration 10s - <./src/test.js ```",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "Eugen Klymniuk",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"k6": "0.0.0"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@types/k6": "1.1.1"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -996,7 +996,11 @@ class InboundTransfersModel {
|
|
|
996
996
|
}
|
|
997
997
|
|
|
998
998
|
// tag the final notification body on to the state
|
|
999
|
-
|
|
999
|
+
// According to the backend api it expects extensionList to be an array (see CSI-1680)
|
|
1000
|
+
this.data.finalNotification = {
|
|
1001
|
+
...body,
|
|
1002
|
+
...(body.extensionList && { extensionList: body.extensionList.extension })
|
|
1003
|
+
};
|
|
1000
1004
|
|
|
1001
1005
|
if(body.transferState === FSPIOPTransferStateEnum.COMMITTED) {
|
|
1002
1006
|
// if the transfer was successful in the switch, set the overall transfer state to COMPLETED
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter-outbound-command-event-handler",
|
|
3
|
-
"version": "0.3.0-snapshot.
|
|
3
|
+
"version": "0.3.0-snapshot.49",
|
|
4
4
|
"description": "Mojaloop sdk scheme adapter command event handler",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/mojaloop/sdk-scheme-adapter/",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter-outbound-domain-event-handler",
|
|
3
|
-
"version": "0.3.0-snapshot.
|
|
3
|
+
"version": "0.3.0-snapshot.49",
|
|
4
4
|
"description": "mojaloop sdk scheme adapter outbound domain event handler",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/mojaloop/sdk-scheme-adapter/",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter-private-shared-lib",
|
|
3
|
-
"version": "0.4.0-snapshot.
|
|
3
|
+
"version": "0.4.0-snapshot.49",
|
|
4
4
|
"description": "SDK Scheme Adapter private shared library.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/mojaloop/accounts-and-balances-bc/tree/main/modules/private-types",
|
package/package.json
CHANGED
package/docker/k6/src/test.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import http from 'k6/http';
|
|
2
|
-
import { sleep } from 'k6';
|
|
3
|
-
// import { Options } from 'k6/options';
|
|
4
|
-
|
|
5
|
-
export const options = {
|
|
6
|
-
vus: 3,
|
|
7
|
-
iterations: 10,
|
|
8
|
-
duration: '3s'
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
// // The default exported function is gonna be picked up by k6 as the entry point for the test script. It will be executed repeatedly in "iterations" for the whole duration of the test.
|
|
12
|
-
// export default function () {
|
|
13
|
-
// // Make a GET request to the target URL
|
|
14
|
-
// http.get('https://quickpizza.grafana.com');
|
|
15
|
-
//
|
|
16
|
-
// // Sleep for 1 second to simulate real-world usage
|
|
17
|
-
// sleep(1);
|
|
18
|
-
// }
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
// const url = 'http://localhost:4000/parties/MSISDN/1233641534556178';
|
|
22
|
-
const url = 'https://quickpizza.grafana.com/api/put';
|
|
23
|
-
|
|
24
|
-
export default function () {
|
|
25
|
-
// const headers = {
|
|
26
|
-
// 'Content-Type': 'application/json',
|
|
27
|
-
// Accept: 'application/vnd.interoperability.iso20022.parties+json;version=2.0'
|
|
28
|
-
// };
|
|
29
|
-
// const data = {};
|
|
30
|
-
const headers = { 'Content-Type': 'application/json' };
|
|
31
|
-
const data = { name: 'Bert' };
|
|
32
|
-
|
|
33
|
-
const res = http.put(url, JSON.stringify(data), { headers });
|
|
34
|
-
|
|
35
|
-
let body = {};
|
|
36
|
-
try {
|
|
37
|
-
body = JSON.parse(res.body)
|
|
38
|
-
} catch {}
|
|
39
|
-
|
|
40
|
-
console.log(body);
|
|
41
|
-
|
|
42
|
-
sleep(0.5)
|
|
43
|
-
}
|
|
File without changes
|