@mojaloop/ml-testing-toolkit-client-lib 1.2.3-snapshot.1 → 1.4.0-snapshot.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.3.0](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.2.2...v1.3.0) (2024-10-25)
6
+
7
+
8
+ ### Features
9
+
10
+ * transformer implementation ([#11](https://github.com/mojaloop/ml-testing-toolkit-client-lib/issues/11)) ([a61e4d5](https://github.com/mojaloop/ml-testing-toolkit-client-lib/commit/a61e4d56ebf1148eace1c3f938cee50b2fbf8eb4))
11
+
5
12
  ### [1.2.2](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.2.1...v1.2.2) (2024-02-07)
6
13
 
7
14
 
package/audit-ci.jsonc CHANGED
@@ -5,19 +5,6 @@
5
5
  "moderate": true,
6
6
  "allowlist": [
7
7
  // request-promise-native>request-promise-core>request - Library is now deprecated. see https://github.com/mojaloop/project/issues/3545
8
- "GHSA-p8p7-x288-28g6",
9
- "GHSA-72xf-g2v4-qvf3",
10
- "GHSA-282f-qqgm-c34q",
11
- "GHSA-6vfc-qv3f-vr6c",
12
- "GHSA-7fh5-64p2-3v2j",
13
- "GHSA-cgfm-xwp7-2cvr",
14
- "GHSA-ghr5-ch3p-vcr6",
15
- "GHSA-mjxr-4v3x-q3m4",
16
- "GHSA-p9pc-299p-vxgp",
17
- "GHSA-phwq-j96m-2c2q",
18
- "GHSA-pppg-cpfq-h7wr",
19
- "GHSA-rjqq-98f6-6j3r",
20
- "GHSA-rm97-x556-q36h",
21
- "GHSA-v88g-cgmw-v5xw"
8
+ "GHSA-p8p7-x288-28g6"
22
9
  ]
23
10
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mojaloop/ml-testing-toolkit-client-lib",
3
3
  "description": "Testing Toolkit Client Library",
4
- "version": "1.2.3-snapshot.1",
4
+ "version": "1.4.0-snapshot.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Vijaya Kumar Guthi, ModusBox Inc. ",
7
7
  "contributors": [
@@ -63,16 +63,16 @@
63
63
  "snapshot": "npx standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'"
64
64
  },
65
65
  "dependencies": {
66
- "@mojaloop/central-services-logger": "11.5.1",
67
- "@mojaloop/ml-testing-toolkit-shared-lib": "14.0.1",
68
- "@mojaloop/sdk-standard-components": "19.2.0",
69
- "@slack/webhook": "7.0.3",
66
+ "@mojaloop/central-services-logger": "11.5.2",
67
+ "@mojaloop/ml-testing-toolkit-shared-lib": "14.0.2",
68
+ "@mojaloop/sdk-standard-components": "19.6.3",
69
+ "@slack/webhook": "7.0.4",
70
70
  "atob": "2.1.2",
71
- "aws-sdk": "2.1691.0",
72
- "axios": "1.7.7",
71
+ "aws-sdk": "2.1692.0",
72
+ "axios": "1.7.9",
73
73
  "cli-table3": "0.6.5",
74
- "commander": "12.1.0",
75
- "dotenv": "16.4.5",
74
+ "commander": "13.0.0",
75
+ "dotenv": "16.4.7",
76
76
  "fs": "0.0.1-security",
77
77
  "lodash": "4.17.21",
78
78
  "mv": "2.1.1",
@@ -89,7 +89,7 @@
89
89
  "audit-ci": "^7.1.0",
90
90
  "jest": "^29.7.0",
91
91
  "jest-junit": "^16.0.0",
92
- "npm-check-updates": "17.1.6",
92
+ "npm-check-updates": "17.1.13",
93
93
  "nyc": "^17.1.0",
94
94
  "parse-strings-in-object": "1.6.0",
95
95
  "pre-commit": "1.2.2",
@@ -98,6 +98,24 @@
98
98
  "standard": "^17.1.2",
99
99
  "standard-version": "^9.5.0"
100
100
  },
101
+ "overrides": {
102
+ "shins": {
103
+ "ajv": "6.12.3",
104
+ "ejs": "3.1.10",
105
+ "sanitize-html": "2.12.1",
106
+ "markdown-it": "12.3.2",
107
+ "express": "4.21.2"
108
+ },
109
+ "widdershins": {
110
+ "ajv": "6.12.3",
111
+ "swagger2openapi": "7.0.8",
112
+ "markdown-it": "12.3.2"
113
+ },
114
+ "cross-spawn": "7.0.6",
115
+ "tough-cookie": "4.1.3",
116
+ "trim": "0.0.3",
117
+ "yargs-parser": "21.1.1"
118
+ },
101
119
  "generator-swaggerize": {
102
120
  "version": "4.1.0"
103
121
  },
package/src/client.js CHANGED
@@ -35,6 +35,7 @@ program
35
35
  .option('-b, --break-run-on-error <breakRunOnError>', 'default: false --- supported values: "false/true"')
36
36
  .option('-s, --save-report <saveReport>', 'To save the report on TTK backend server. default: false --- supported values: "false/true"')
37
37
  .option('-n, --report-name <reportName>', 'Specify the name of report on TTK backend server. default: "test_run"')
38
+ .option('--batch-size <N>', 'determines a size of batches to run test cases. By default, test cases are run one by one. Optional')
38
39
  .option('--save-report-base-url <saveReportBaseUrl>', 'Incase if the base-url is not accessible publicly, this option replaces the base URL in the report URLs published in console log and slack messages default: same as base-url. default: same as base-url')
39
40
  .option('--labels <labels>', 'csv list of labels, examples: "p2p,settlements,quotes"')
40
41
  .option('--report-format <reportFormat>', 'default: "none" --- supported formats: "none", "json", "html", "printhtml"')
@@ -167,9 +167,11 @@ const sendTemplate = async (sessionId) => {
167
167
  }
168
168
  })
169
169
  })
170
+ if (config.batchSize) template.batchSize = config.batchSize
171
+
170
172
  await axios.post(`${config.baseURL}/api/outbound/template/` + outboundRequestID, template, { headers: { 'Content-Type': 'application/json' } })
171
173
  } catch (err) {
172
- console.log(err)
174
+ console.log('error in sendTemplate:', err)
173
175
  process.exit(1)
174
176
  }
175
177
  }
package/src/router.js CHANGED
@@ -62,7 +62,8 @@ const cli = (commanderOptions) => {
62
62
  slackFailedImage: configFile.slackFailedImage,
63
63
  baseURL: commanderOptions.baseUrl || configFile.baseURL,
64
64
  extraSummaryInformation: commanderOptions.extraSummaryInformation || configFile.extraSummaryInformation,
65
- labels: commanderOptions.labels || configFile.labels
65
+ labels: commanderOptions.labels || configFile.labels,
66
+ batchSize: commanderOptions.batchSize
66
67
  }
67
68
 
68
69
  objectStore.set('config', config)