account-lookup-service 17.0.3 → 17.2.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/.circleci/config.yml +2 -1
- package/CHANGELOG.md +24 -0
- package/docker-compose.yml +8 -2
- package/jest.config.js +1 -0
- package/migrations/01_currency.js +5 -5
- package/migrations/02_endpointType.js +5 -5
- package/migrations/03_endpointType-indexes.js +5 -5
- package/migrations/04_partyIdType.js +5 -5
- package/migrations/05_partyIdType-indexes.js +5 -5
- package/migrations/08_oracleEndpoint.js +5 -5
- package/migrations/09_oracleEndpoint-indexes.js +5 -5
- package/migrations/10_oracleEndpoint-remove-constraints.js +5 -5
- package/package.json +17 -16
- package/scripts/_wait4_all.js +3 -1
- package/seeds/currency.js +5 -5
- package/seeds/endpointType.js +4 -4
- package/seeds/partyIdType.js +4 -4
- package/src/api/endpointcache.js +4 -4
- package/src/api/health.js +4 -4
- package/src/api/index.js +4 -4
- package/src/api/oracles/{ID}.js +31 -6
- package/src/api/oracles.js +33 -7
- package/src/api/participants/{ID}/error.js +5 -5
- package/src/api/participants/{ID}.js +5 -5
- package/src/api/participants/{Type}/{ID}/error.js +22 -6
- package/src/api/participants/{Type}/{ID}/{SubId}/error.js +5 -5
- package/src/api/participants/{Type}/{ID}/{SubId}.js +99 -5
- package/src/api/participants/{Type}/{ID}.js +83 -10
- package/src/api/participants.js +19 -6
- package/src/api/parties/{Type}/{ID}/error.js +20 -6
- package/src/api/parties/{Type}/{ID}/{SubId}/error.js +32 -7
- package/src/api/parties/{Type}/{ID}/{SubId}.js +55 -7
- package/src/api/parties/{Type}/{ID}.js +37 -10
- package/src/api/routes.js +5 -5
- package/src/domain/oracle/index.js +5 -5
- package/src/domain/oracle/oracle.js +11 -45
- package/src/domain/participants/index.js +5 -5
- package/src/domain/participants/participants.js +20 -59
- package/src/domain/parties/getPartiesByTypeAndID.js +9 -14
- package/src/domain/parties/index.js +5 -5
- package/src/domain/parties/parties.js +12 -23
- package/src/domain/timeout/dto.js +14 -2
- package/src/domain/timeout/index.js +6 -12
- package/src/handlers/TimeoutHandler.js +3 -3
- package/src/handlers/index.js +3 -3
- package/src/handlers/register.js +3 -3
- package/src/index.js +4 -4
- package/src/interface/admin-swagger.yaml +4 -0
- package/src/interface/admin_swagger.json +902 -900
- package/src/interface/api_swagger.json +2824 -2824
- package/src/interface/thirdparty/admin-swagger.yaml +2 -2
- package/src/interface/thirdparty/admin_swagger.json +902 -902
- package/src/interface/thirdparty/api_swagger.json +2917 -2917
- package/src/lib/argv.js +5 -5
- package/src/lib/cache.js +5 -5
- package/src/lib/config.js +5 -5
- package/src/lib/db.js +5 -5
- package/src/lib/headers.js +5 -5
- package/src/lib/healthCheck/subServiceHealth.js +5 -5
- package/src/lib/util.js +20 -2
- package/src/models/currency/currency.js +7 -16
- package/src/models/currency/index.js +5 -5
- package/src/models/endpointType/endpointType.js +7 -16
- package/src/models/endpointType/index.js +5 -5
- package/src/models/misc/migrationLock.js +5 -5
- package/src/models/oracle/facade.js +5 -5
- package/src/models/oracle/index.js +5 -5
- package/src/models/oracle/oracleEndpoint.js +17 -71
- package/src/models/oracle/oracleEndpointCached.js +5 -5
- package/src/models/participantEndpoint/facade.js +5 -5
- package/src/models/partyIdType/index.js +5 -5
- package/src/models/partyIdType/partyIdType.js +7 -16
- package/src/plugins.js +4 -4
- package/src/server.js +8 -12
- package/test/integration/api/parties.test.js +5 -5
- package/test/integration/domain/oracle/index.test.js +23 -5
- package/test/integration/domain/timeout/index.test.js +1 -1
- package/test/integration/models/currency/currency.test.js +5 -5
- package/test/integration/plugins.test.js +5 -5
- package/test/unit/api/health.test.js +5 -5
- package/test/unit/api/oracles/{ID}.test.js +5 -5
- package/test/unit/api/oracles.test.js +5 -5
- package/test/unit/api/participants/participants.test.js +5 -5
- package/test/unit/api/participants/{Type}/{ID}/error.test.js +7 -5
- package/test/unit/api/participants/{Type}/{ID}/{SubId}/error.test.js +5 -5
- package/test/unit/api/participants/{Type}/{ID}/{SubId}.test.js +5 -5
- package/test/unit/api/participants/{Type}/{ID}.test.js +5 -5
- package/test/unit/api/participants.test.js +5 -5
- package/test/unit/api/parties/endpointcache.test.js +5 -5
- package/test/unit/api/parties/parties.test.js +5 -5
- package/test/unit/api/parties/{Type}/{ID}/error.test.js +8 -6
- package/test/unit/api/parties/{Type}/{ID}/{SubId}/error.test.js +15 -5
- package/test/unit/api/parties/{Type}/{ID}/{SubId}.test.js +5 -5
- package/test/unit/api/parties/{Type}/{ID}.test.js +5 -5
- package/test/unit/domain/oracle/oracle.test.js +5 -5
- package/test/unit/domain/participants/participants.test.js +6 -6
- package/test/unit/domain/parties/parties.test.js +8 -8
- package/test/unit/domain/parties/utils.test.js +5 -5
- package/test/unit/domain/timeout/index.test.js +3 -3
- package/test/unit/handlers/TimeoutHandler.test.js +3 -3
- package/test/unit/handlers/index.test.js +3 -3
- package/test/unit/handlers/register.test.js +3 -3
- package/test/unit/index.test.js +5 -5
- package/test/unit/iso20022/partiesValidation.test.js +5 -5
- package/test/unit/lib/argv.test.js +5 -5
- package/test/unit/lib/config.test.js +5 -5
- package/test/unit/lib/healthCheck/subServiceHealth.test.js +5 -5
- package/test/unit/lib/migrator.test.js +5 -5
- package/test/unit/lib/util.test.js +5 -5
- package/test/unit/mocks.js +3 -3
- package/test/unit/models/currency/currency.test.js +5 -5
- package/test/unit/models/endpointType/endpointType.test.js +5 -5
- package/test/unit/models/misc/migrationLock.test.js +5 -5
- package/test/unit/models/oracle/facade.test.js +5 -5
- package/test/unit/models/oracle/oracleEndpoint.test.js +5 -5
- package/test/unit/models/oracle/oracleEndpointCached.test.js +5 -5
- package/test/unit/models/participantEndpoint/facade.test.js +5 -5
- package/test/unit/models/partyIdType/partyIdType.test.js +5 -5
- package/test/unit/plugins.test.js +5 -5
- package/test/util/helper.js +5 -5
- package/test/util/mockgen.js +5 -5
- package/test/util/testConfig.js +5 -5
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
4
|
+
Copyright © 2020-2025 Mojaloop Foundation
|
5
|
+
The Mojaloop files are made available by the 2020-2025 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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
* Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
* Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* Kevin Leyow <kevin.leyow@infitx.com>
|
22
22
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
4
|
+
Copyright © 2020-2025 Mojaloop Foundation
|
5
|
+
The Mojaloop files are made available by the 2020-2025 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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
- Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
22
22
|
- Juan Correa <juan.correa@modusbox.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
4
|
+
Copyright © 2020-2025 Mojaloop Foundation
|
5
|
+
The Mojaloop files are made available by the 2020-2025 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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
- Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
22
22
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
4
|
+
Copyright © 2020-2025 Mojaloop Foundation
|
5
|
+
The Mojaloop files are made available by the 2020-2025 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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
22
22
|
|
@@ -26,22 +26,13 @@
|
|
26
26
|
'use strict'
|
27
27
|
|
28
28
|
const Db = require('../../lib/db')
|
29
|
-
const
|
29
|
+
const util = require('../../lib/util')
|
30
30
|
|
31
31
|
const getPartyIdTypeByName = async (name) => {
|
32
32
|
try {
|
33
33
|
return Db.from('partyIdType').findOne({ name, isActive: true })
|
34
34
|
} catch (err) {
|
35
|
-
|
36
|
-
key: 'system',
|
37
|
-
value: '["db"]'
|
38
|
-
}]
|
39
|
-
throw ErrorHandler.Factory.reformatFSPIOPError(
|
40
|
-
err,
|
41
|
-
undefined,
|
42
|
-
undefined,
|
43
|
-
extensions
|
44
|
-
)
|
35
|
+
util.rethrowDatabaseError(err)
|
45
36
|
}
|
46
37
|
}
|
47
38
|
|
package/src/plugins.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
4
|
+
Copyright © 2020-2025 Mojaloop Foundation
|
5
|
+
The Mojaloop files are made available by the 2020-2025 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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,10 +12,10 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
18
|
+
* Mojaloop Foundation
|
19
19
|
|
20
20
|
* Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
21
21
|
* Vijay Kumar Guthi <vijaya.guthi@infitx.com>
|
package/src/server.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
4
|
+
Copyright © 2020-2025 Mojaloop Foundation
|
5
|
+
The Mojaloop files are made available by the 2020-2025 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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,10 +12,10 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
18
|
+
* Mojaloop Foundation
|
19
19
|
|
20
20
|
* Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
21
21
|
|
@@ -106,13 +106,6 @@ const createServer = async (port, api, routes, isAdmin, proxyCacheConfig, proxyM
|
|
106
106
|
|
107
107
|
server.route(routes)
|
108
108
|
|
109
|
-
// Initialize the error count metric
|
110
|
-
Metrics.getCounter(
|
111
|
-
'errorCount',
|
112
|
-
'Error count',
|
113
|
-
['code', 'system', 'operation', 'step']
|
114
|
-
)
|
115
|
-
|
116
109
|
// TODO: follow instructions https://github.com/anttiviljami/openapi-backend/blob/master/DOCS.md#postresponsehandler-handler
|
117
110
|
await server.start()
|
118
111
|
|
@@ -174,7 +167,10 @@ const initializeAdmin = async (appConfig) => {
|
|
174
167
|
RUN_MIGRATIONS && await migrate()
|
175
168
|
const OpenAPISpecPath = Util.pathForInterface({ isAdmin: true, isMockInterface: false })
|
176
169
|
const api = await OpenapiBackend.initialise(OpenAPISpecPath, APIHandlers.AdminHandlers)
|
177
|
-
|
170
|
+
await Promise.all([
|
171
|
+
OracleEndpointCache.initialize(),
|
172
|
+
Cache.initCache()
|
173
|
+
])
|
178
174
|
return createServer(ADMIN_PORT, api, Routes.AdminRoutes(api), true, PROXY_CACHE_CONFIG)
|
179
175
|
}
|
180
176
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
|
@@ -13,11 +13,11 @@
|
|
13
13
|
should be listed with a '*' in the first column. People who have
|
14
14
|
contributed from an organization can be listed under the organization
|
15
15
|
that actually holds the copyright for their contributions (see the
|
16
|
-
|
16
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
17
17
|
their names indented and be marked with a '-'. Email address can be added
|
18
18
|
optionally within square brackets <email>.
|
19
|
-
*
|
20
|
-
- Name Surname <name.surname@
|
19
|
+
* Mojaloop Foundation
|
20
|
+
- Name Surname <name.surname@mojaloop.io>
|
21
21
|
|
22
22
|
* Eugen Klymniuk <eugen.klymniuk@infitx.com>
|
23
23
|
--------------
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* Crosslake
|
22
22
|
- Lewis Daly <lewisd@crosslaketech.com>
|
@@ -82,6 +82,15 @@ describe('Oracle', () => {
|
|
82
82
|
}
|
83
83
|
}
|
84
84
|
|
85
|
+
const oracleUsdMsisdnNoCurrencyUrlPayload = {
|
86
|
+
isDefault: true,
|
87
|
+
oracleIdType: 'MSISDN',
|
88
|
+
endpoint: {
|
89
|
+
value: 'http://localhost:8444',
|
90
|
+
endpointType: 'URL'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
85
94
|
describe('Create', () => {
|
86
95
|
it('creates an oracle', async () => {
|
87
96
|
const result = await Oracle.createOracle(oracleAuhMsisdnUrlPayload, createHeaders, testSpan)
|
@@ -126,6 +135,15 @@ describe('Oracle', () => {
|
|
126
135
|
const createdId = oracleEndpointResult[0].oracleEndpointId
|
127
136
|
await Db.from('oracleEndpoint').destroy({ oracleEndpointId: createdId })
|
128
137
|
})
|
138
|
+
|
139
|
+
it('creates an oracle without a currency', async () => {
|
140
|
+
const result = await Oracle.createOracle(oracleUsdMsisdnNoCurrencyUrlPayload, createHeaders, testSpan)
|
141
|
+
expect(result).toBe(true)
|
142
|
+
|
143
|
+
const oracleEndpointResult = await OracleModel.getOracleEndpointByType('MSISDN')
|
144
|
+
const createdId = oracleEndpointResult[0].oracleEndpointId
|
145
|
+
await Db.from('oracleEndpoint').destroy({ oracleEndpointId: createdId })
|
146
|
+
})
|
129
147
|
})
|
130
148
|
|
131
149
|
describe('Update', () => {
|
@@ -6,7 +6,7 @@ const config = require('../../../../src/lib/config')
|
|
6
6
|
|
7
7
|
const wait = (sec) => new Promise(resolve => setTimeout(resolve, sec * 1000))
|
8
8
|
|
9
|
-
const CRON_TIMEOUT_SEC =
|
9
|
+
const CRON_TIMEOUT_SEC = 15 // see TIMEXP
|
10
10
|
|
11
11
|
describe('Timeout Handler', () => {
|
12
12
|
const { type, proxyConfig } = config.PROXY_CACHE_CONFIG
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* Crosslake
|
22
22
|
- Lewis Daly <lewisd@crosslaketech.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* Crosslake
|
22
22
|
- Lewis Daly <lewisd@crosslaketech.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* ModusBox
|
22
22
|
- Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* ModusBox
|
22
22
|
- Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* ModusBox
|
22
22
|
- Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* ModusBox
|
22
22
|
- Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* Crosslake
|
22
22
|
- Lewis Daly <lewisd@crosslaketech.com>
|
@@ -83,6 +83,7 @@ describe('/participants/{Type}/{ID}/error', () => {
|
|
83
83
|
metadata: sandbox.stub(),
|
84
84
|
headers: sandbox.stub(),
|
85
85
|
payload: sandbox.stub(),
|
86
|
+
params: sandbox.stub(),
|
86
87
|
span: {
|
87
88
|
setTags: setTagsStub,
|
88
89
|
audit: sandbox.stub().returns(Promise.resolve({}))
|
@@ -128,6 +129,7 @@ describe('/participants/{Type}/{ID}/error', () => {
|
|
128
129
|
metadata: sandbox.stub(),
|
129
130
|
headers: sandbox.stub(),
|
130
131
|
payload: sandbox.stub(),
|
132
|
+
params: sandbox.stub(),
|
131
133
|
span: {
|
132
134
|
setTags: setTagsStub,
|
133
135
|
audit: sandbox.stub().returns(Promise.resolve({}))
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* ModusBox
|
22
22
|
- Steven Oderayi <steven.oderayi@modusbox.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* ModusBox
|
22
22
|
- Steven Oderayi <steven.oderayi@modusbox.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* ModusBox
|
22
22
|
- Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*****
|
2
2
|
License
|
3
3
|
--------------
|
4
|
-
Copyright ©
|
5
|
-
The Mojaloop files are made available by the
|
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
|
http://www.apache.org/licenses/LICENSE-2.0
|
7
7
|
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.
|
8
8
|
Contributors
|
@@ -12,11 +12,11 @@
|
|
12
12
|
should be listed with a '*' in the first column. People who have
|
13
13
|
contributed from an organization can be listed under the organization
|
14
14
|
that actually holds the copyright for their contributions (see the
|
15
|
-
|
15
|
+
Mojaloop Foundation organization for an example). Those individuals should have
|
16
16
|
their names indented and be marked with a '-'. Email address can be added
|
17
17
|
optionally within square brackets <email>.
|
18
|
-
*
|
19
|
-
- Name Surname <name.surname@
|
18
|
+
* Mojaloop Foundation
|
19
|
+
- Name Surname <name.surname@mojaloop.io>
|
20
20
|
|
21
21
|
* ModusBox
|
22
22
|
- Rajiv Mothilal <rajiv.mothilal@modusbox.com>
|