@mojaloop/ml-testing-toolkit-client-lib 0.0.5 → 0.0.6
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 +7 -0
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/router.js +1 -1
- package/src/utils/report.js +2 -0
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
|
+
### [0.0.6](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v0.0.5...v0.0.6) (2022-06-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* changed the default report option to none ([e4b66e4](https://github.com/mojaloop/ml-testing-toolkit-client-lib/commit/e4b66e4fb1027d77c4cac6113068d678b1626861))
|
|
11
|
+
|
|
5
12
|
### [0.0.5](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v0.0.4...v0.0.5) (2022-06-06)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -34,7 +34,7 @@ program
|
|
|
34
34
|
.option('-l, --log-level <logLevel>', 'default: 0 --- supported levels: "0-Show only requests and assertion counts, 1-Show failed assertions only, 2-Show all assertions"')
|
|
35
35
|
.option('-b, --break-run-on-error <breakRunOnError>', 'default: false --- supported values: "false/true"')
|
|
36
36
|
.option('--labels <labels>', 'csv list of labels, examples: "p2p,settlements,quotes"')
|
|
37
|
-
.option('--report-format <reportFormat>', 'default: "
|
|
37
|
+
.option('--report-format <reportFormat>', 'default: "none" --- supported formats: "none", "json", "html", "printhtml"')
|
|
38
38
|
.option('--report-auto-filename-enable <reportAutoFilenameEnable>', 'default: false, if true the file name will be generated by the backend')
|
|
39
39
|
.option('--report-target <reportTarget>', 'default: "file://<file_name_genrated_by_backend>" --- supported targets: "file://path_to_file", "s3://<bucket_name>[/<file_path>]"')
|
|
40
40
|
.option('--slack-webhook-url <slackWebhookUrl>', 'default: "Disabled" --- supported formats: "https://....."')
|
package/src/router.js
CHANGED
|
@@ -31,7 +31,7 @@ const TESTS_EXECUTION_TIMEOUT = 1000 * 60 * 15 // 15min timout
|
|
|
31
31
|
const cli = (commanderOptions) => {
|
|
32
32
|
const configFile = {
|
|
33
33
|
mode: 'outbound',
|
|
34
|
-
reportFormat: '
|
|
34
|
+
reportFormat: 'none',
|
|
35
35
|
baseURL: 'http://localhost:5050',
|
|
36
36
|
logLevel: '0',
|
|
37
37
|
reportAutoFilenameEnable: false,
|
package/src/utils/report.js
CHANGED
|
@@ -44,6 +44,8 @@ const report = async (data, reportType) => {
|
|
|
44
44
|
let reportData
|
|
45
45
|
let reportFilename
|
|
46
46
|
switch (config.reportFormat) {
|
|
47
|
+
case 'none':
|
|
48
|
+
return returnInfo
|
|
47
49
|
case 'json':
|
|
48
50
|
reportData = JSON.stringify(data, null, 2)
|
|
49
51
|
reportFilename = `${data.name}-${data.runtimeInformation.completedTimeISO}.json`
|