@mojaloop/ml-testing-toolkit-client-lib 1.6.0 → 1.7.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,20 @@
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.7.0](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.6.1...v1.7.0) (2025-03-13)
6
+
7
+
8
+ ### Features
9
+
10
+ * enhance release report structure, implement brief summary option for Slack ([#19](https://github.com/mojaloop/ml-testing-toolkit-client-lib/issues/19)) ([8a6dd8b](https://github.com/mojaloop/ml-testing-toolkit-client-lib/commit/8a6dd8b99182f2931fe3b1cbd14aec7a63b2e316))
11
+
12
+ ### [1.6.1](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.6.0...v1.6.1) (2025-02-25)
13
+
14
+
15
+ ### Chore
16
+
17
+ * maintenance updates ([#17](https://github.com/mojaloop/ml-testing-toolkit-client-lib/issues/17)) ([2116396](https://github.com/mojaloop/ml-testing-toolkit-client-lib/commit/211639676b21f059423d25cf6fcd32a10b33428b))
18
+
5
19
  ## [1.6.0](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.5.1...v1.6.0) (2025-02-19)
6
20
 
7
21
 
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.6.0",
4
+ "version": "1.7.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Vijaya Kumar Guthi, ModusBox Inc. ",
7
7
  "contributors": [
@@ -63,13 +63,13 @@
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.5",
67
- "@mojaloop/ml-testing-toolkit-shared-lib": "14.0.3",
68
- "@mojaloop/sdk-standard-components": "19.6.4",
69
- "@slack/webhook": "7.0.4",
66
+ "@mojaloop/central-services-logger": "11.6.2",
67
+ "@mojaloop/ml-testing-toolkit-shared-lib": "14.0.4",
68
+ "@mojaloop/sdk-standard-components": "19.10.3",
69
+ "@slack/webhook": "7.0.5",
70
70
  "atob": "2.1.2",
71
71
  "aws-sdk": "2.1692.0",
72
- "axios": "1.7.9",
72
+ "axios": "1.8.3",
73
73
  "cli-table3": "0.6.5",
74
74
  "commander": "13.1.0",
75
75
  "dotenv": "16.4.7",
@@ -80,21 +80,21 @@
80
80
  "node-strings": "1.0.2",
81
81
  "parse-strings-in-object": "1.6.0",
82
82
  "path": "0.12.7",
83
- "rc": "^1.2.8",
83
+ "rc": "1.2.8",
84
84
  "socket.io-client": "4.8.1"
85
85
  },
86
86
  "devDependencies": {
87
- "audit-ci": "^7.1.0",
88
- "jest": "^29.7.0",
89
- "jest-junit": "^16.0.0",
90
- "npm-check-updates": "17.1.14",
91
- "nyc": "^17.1.0",
87
+ "audit-ci": "7.1.0",
88
+ "jest": "29.7.0",
89
+ "jest-junit": "16.0.0",
90
+ "npm-check-updates": "17.1.15",
91
+ "nyc": "17.1.0",
92
92
  "parse-strings-in-object": "1.6.0",
93
93
  "pre-commit": "1.2.2",
94
- "replace": "^1.2.2",
94
+ "replace": "1.2.2",
95
95
  "sinon": "19.0.2",
96
- "standard": "^17.1.2",
97
- "standard-version": "^9.5.0"
96
+ "standard": "17.1.2",
97
+ "standard-version": "9.5.0"
98
98
  },
99
99
  "overrides": {
100
100
  "shins": {
package/src/client.js CHANGED
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -43,6 +48,7 @@ program
43
48
  .option('--report-target <reportTarget>', 'default: "file://<file_name_genrated_by_backend>" --- supported targets: "file://path_to_file", "s3://<bucket_name>[/<file_path>]"')
44
49
  .option('--slack-webhook-url <slackWebhookUrl>', 'default: "Disabled" --- supported formats: "https://....."')
45
50
  .option('--extra-summary-information <Comma separated values in the format key:value>', 'default: none --- example: "Testcase Name:something,Environment:Dev1"')
51
+ .option('--brief-summary-prefix <Prefix to use for a brief summary in Slack>', 'default: none --- example: "environment name, test name"')
46
52
  .on('--help', () => { // Extra information on help message
47
53
  console.log('')
48
54
  console.log(' *** If the option report-target is set to use AWS S3 service, the variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION) should be passed in environment')
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * Infitx
21
26
  - Kalin Krustev <kalin.krustev@infitx.com> (Original Author)
@@ -24,10 +29,21 @@
24
29
  const axios = require('axios').default
25
30
  const config = require('rc')('release_cd', {})
26
31
 
27
- module.exports = async function (name, result) {
32
+ module.exports = async function (name, { runtimeInformation, test_cases: testCases = [] }) {
28
33
  if (!config.reportUrl) return
29
34
  const data = {
30
- [`tests.${name}`]: result
35
+ [`tests.${name}`]: {
36
+ ...runtimeInformation,
37
+ assertions: Object.fromEntries(testCases.map(
38
+ testCase => testCase?.requests?.map(
39
+ request => request?.request?.tests?.assertions
40
+ .filter(assertion => assertion?.assertionId ?? assertion.id)
41
+ .map(
42
+ assertion => [`${testCase.testCaseId ?? testCase.name}.${request.request.requestId ?? request.request.id}.${assertion?.assertionId ?? assertion.id}`, assertion?.resultStatus?.status]
43
+ )
44
+ )
45
+ ).flat(2))
46
+ }
31
47
  }
32
48
  console.log(`Sending report to ${config.reportUrl}`, data)
33
49
  await axios({
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Vijay Kumar Guthi <vijaya.guthi@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Vijay Kumar Guthi <vijaya.guthi@modusbox.com> (Original Author)
@@ -26,24 +31,38 @@ const objectStore = require('../objectStore')
26
31
 
27
32
  const config = objectStore.get('config')
28
33
 
29
- const generateSlackBlocks = (progress) => {
34
+ const millisecondsToTime = (milliseconds) => {
35
+ const seconds = Math.floor(milliseconds / 1000)
36
+ const minutes = Math.floor(seconds / 60)
37
+ const hours = Math.floor(minutes / 60)
38
+ return `${String(hours).padStart(2, '0')}:${String(minutes % 60).padStart(2, '0')}:${String(seconds % 60).padStart(2, '0')}`
39
+ }
40
+
41
+ const generateSlackBlocks = (progress, reportURL) => {
30
42
  const slackBlocks = []
31
43
  let totalAssertionsCount = 0
32
44
  let totalPassedAssertionsCount = 0
33
45
  let totalRequestsCount = 0
46
+ const failedTestCases = []
34
47
  progress.test_cases.forEach(testCase => {
35
48
  // console.log(fStr.yellow(testCase.name))
36
49
  totalRequestsCount += testCase.requests.length
37
- // let testCaseAssertionsCount = 0
38
- // let testCasePassedAssertionsCount = 0
50
+ let testCaseAssertionsCount = 0
51
+ let testCasePassedAssertionsCount = 0
39
52
  testCase.requests.forEach(req => {
40
53
  const passedAssertionsCount = req.request.tests && req.request.tests.passedAssertionsCount ? req.request.tests.passedAssertionsCount : 0
41
54
  const assertionsCount = req.request.tests && req.request.tests.assertions && req.request.tests.assertions.length ? req.request.tests.assertions.length : 0
42
55
  totalAssertionsCount += assertionsCount
43
56
  totalPassedAssertionsCount += passedAssertionsCount
44
- // testCaseAssertionsCount += assertionsCount
45
- // testCasePassedAssertionsCount += passedAssertionsCount
57
+ testCaseAssertionsCount += assertionsCount
58
+ testCasePassedAssertionsCount += passedAssertionsCount
46
59
  })
60
+ if (testCaseAssertionsCount !== testCasePassedAssertionsCount) {
61
+ failedTestCases.push({
62
+ name: testCase.name,
63
+ failedAssertions: testCaseAssertionsCount - testCasePassedAssertionsCount
64
+ })
65
+ }
47
66
  // const passed = testCasePassedAssertionsCount === testCaseAssertionsCount
48
67
  // // TODO: make sure this list should not be more than 40 because we can add only max 50 blocks in a slack message
49
68
  // if(!passed) {
@@ -56,6 +75,40 @@ const generateSlackBlocks = (progress) => {
56
75
  // })
57
76
  // }
58
77
  })
78
+
79
+ // totalAssertionsCount = totalPassedAssertionsCount
80
+ // failedTestCases.length = 0
81
+
82
+ if (config.briefSummaryPrefix) {
83
+ const top5FailedTestCases = failedTestCases.sort((a, b) => b.failedAssertions - a.failedAssertions).slice(0, 5)
84
+ return [{
85
+ type: 'context',
86
+ elements: [{
87
+ type: 'mrkdwn',
88
+ text: [
89
+ `${totalAssertionsCount === totalPassedAssertionsCount ? '🟢' : '🔴'}`,
90
+ reportURL ? `<${reportURL}|${config.briefSummaryPrefix}>` : `${config.briefSummaryPrefix}`,
91
+ `failed: \`${totalAssertionsCount - totalPassedAssertionsCount}/${totalAssertionsCount}`,
92
+ `(${(100 * ((totalAssertionsCount - totalPassedAssertionsCount) / totalAssertionsCount)).toFixed(2)}%)\`,`,
93
+ `requests: \`${totalRequestsCount}\`,`,
94
+ `tests: \`${progress.test_cases.length}\`,`,
95
+ `duration: \`${millisecondsToTime(progress.runtimeInformation.runDurationMs)}\``,
96
+ top5FailedTestCases.length > 0 && '\nTop 5 failed test cases:\n',
97
+ top5FailedTestCases.length > 0 && top5FailedTestCases.map(tc => `• ${tc.name}: \`${tc.failedAssertions}\``).join('\n')
98
+ ].filter(Boolean).join(' ')
99
+ }]
100
+ }]
101
+ }
102
+
103
+ slackBlocks.push({
104
+ type: 'header',
105
+ text: {
106
+ type: 'plain_text',
107
+ text: 'Testing Toolkit Report',
108
+ emoji: true
109
+ }
110
+ })
111
+
59
112
  let summaryText = ''
60
113
 
61
114
  summaryText += '>Total assertions: *' + totalAssertionsCount + '*\n'
@@ -102,40 +155,32 @@ const generateSlackBlocks = (progress) => {
102
155
  },
103
156
  ...additionalParams
104
157
  })
158
+ if (reportURL) {
159
+ slackBlocks.push({
160
+ type: 'section',
161
+ text: {
162
+ type: 'mrkdwn',
163
+ text: '<' + reportURL + '|View Report>'
164
+ }
165
+ })
166
+ }
167
+ slackBlocks.push({
168
+ type: 'divider'
169
+ })
105
170
  return slackBlocks
106
171
  }
107
172
 
108
- const sendSlackNotification = async (progress, reportURL = null) => {
173
+ const sendSlackNotification = async (progress, reportURL = 'http://localhost/') => {
109
174
  if (config.slackWebhookUrl) {
110
175
  const url = config.slackWebhookUrl
111
176
  const webhook = new IncomingWebhook(url)
112
- let slackBlocks = []
113
- slackBlocks.push({
114
- type: 'header',
115
- text: {
116
- type: 'plain_text',
117
- text: 'Testing Toolkit Report',
118
- emoji: true
119
- }
120
- })
121
- slackBlocks = slackBlocks.concat(generateSlackBlocks(progress))
122
- if (reportURL) {
123
- slackBlocks.push({
124
- type: 'section',
125
- text: {
126
- type: 'mrkdwn',
127
- text: '<' + reportURL + '|View Report>'
128
- }
129
- })
130
- }
131
- slackBlocks.push({
132
- type: 'divider'
133
- })
177
+ const blocks = generateSlackBlocks(progress, reportURL)
178
+
134
179
  try {
135
180
  // console.log(JSON.stringify(slackBlocks, null, 2))
136
181
  await webhook.send({
137
182
  text: 'Test Report',
138
- blocks: slackBlocks
183
+ blocks
139
184
  })
140
185
  console.log('Slack notification sent.')
141
186
  } catch (err) {
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -195,7 +200,7 @@ const handleIncomingProgress = async (progress) => {
195
200
  }
196
201
  }
197
202
  try {
198
- await releaseCd(config.reportName, progress.totalResult.runtimeInformation)
203
+ await releaseCd(config.reportName, progress.totalResult)
199
204
  } catch (err) {
200
205
  console.error(err)
201
206
  }
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
package/src/router.js CHANGED
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -62,6 +67,7 @@ const cli = (commanderOptions) => {
62
67
  slackFailedImage: configFile.slackFailedImage,
63
68
  baseURL: commanderOptions.baseUrl || configFile.baseURL,
64
69
  extraSummaryInformation: commanderOptions.extraSummaryInformation || configFile.extraSummaryInformation,
70
+ briefSummaryPrefix: commanderOptions.briefSummaryPrefix || configFile.briefSummaryPrefix,
65
71
  labels: commanderOptions.labels || configFile.labels,
66
72
  batchSize: commanderOptions.batchSize || configFile.batchSize || parseInt(process.env.TESTCASES_BATCH_SIZE, 10)
67
73
  }
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Vijay Kumar Guthi <vijaya.guthi@modusbox.com>
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Vijaya Kumar Guthi <vijaya.guthi@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Vijaya Kumar Guthi <vijaya.guthi@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * Infitx
21
26
  - Kalin Krustev <kalin.krustev@infitx.com> (Original Author)
@@ -37,14 +42,41 @@ describe('Release CD', () => {
37
42
  describe('Post test results', () => {
38
43
  it('Posts test result to configured URL', async () => {
39
44
  const name = 'test'
40
- const result = {}
45
+ const result = {
46
+ test_cases: [
47
+ {
48
+ name: 'test-case',
49
+ requests: [
50
+ {
51
+ request: {
52
+ id: 'request-id',
53
+ tests: {
54
+ assertions: [
55
+ {
56
+ id: 'assertion-id',
57
+ resultStatus: {
58
+ status: 'SUCCESS'
59
+ }
60
+ }
61
+ ]
62
+ }
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ ]
68
+ }
41
69
  config.reportUrl = 'http://example.com'
42
70
  await releaseCd(name, result)
43
71
  expect(axios.default).toHaveBeenCalledWith({
44
72
  method: 'post',
45
73
  url: 'http://example.com',
46
74
  data: {
47
- [`tests.${name}`]: result
75
+ [`tests.${name}`]: {
76
+ assertions: {
77
+ 'test-case.request-id.assertion-id': 'SUCCESS'
78
+ }
79
+ }
48
80
  }
49
81
  })
50
82
  })
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Vijay Kumar Guthi <vijaya.guthi@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Vijay Kumar Guthi <vijaya.guthi@modusbox.com> (Original Author)
@@ -97,6 +102,13 @@ describe('Cli client', () => {
97
102
  text: expect.any(String),
98
103
  blocks: expect.any(Array)
99
104
  }))
105
+ SpySlackSend.mockResolvedValueOnce(null)
106
+ config.briefSummaryPrefix = 'brief'
107
+ await expect(slackBroadCast.sendSlackNotification(sampleProgress)).resolves.toBe(undefined)
108
+ expect(SpySlackSend).toHaveBeenCalledWith(expect.objectContaining({
109
+ text: expect.any(String),
110
+ blocks: expect.any(Array)
111
+ }))
100
112
  })
101
113
  it('When failed case, it should call slack send function', async () => {
102
114
  config.slackWebhookUrl = 'http://some_url'
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Georgi Logodazhki <georgi.logodazhki@modusbox.com> (Original Author)
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,10 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
19
24
 
20
25
  * ModusBox
21
26
  * Vijaya Kumar Guthi <vijaya.guthi@modusbox.com> (Original Author)