account-lookup-service 15.6.0-iso.18 → 15.6.0-iso.19

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "account-lookup-service",
3
3
  "description": "Account Lookup Service is used to validate Party and Participant lookups.",
4
- "version": "15.6.0-iso.18",
4
+ "version": "15.6.0-iso.19",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
7
7
  "contributors": [
@@ -93,7 +93,7 @@
93
93
  "@mojaloop/central-services-error-handling": "13.0.2",
94
94
  "@mojaloop/central-services-health": "15.0.0",
95
95
  "@mojaloop/central-services-logger": "11.5.1",
96
- "@mojaloop/central-services-metrics": "12.3.0",
96
+ "@mojaloop/central-services-metrics": "12.4.0",
97
97
  "@mojaloop/central-services-shared": "18.12.1",
98
98
  "@mojaloop/central-services-stream": "11.3.1",
99
99
  "@mojaloop/database-lib": "11.0.6",
package/src/lib/config.js CHANGED
@@ -167,7 +167,7 @@ const config = {
167
167
  INSTRUMENTATION_METRICS_LABELS: RC.INSTRUMENTATION.METRICS.labels,
168
168
  INSTRUMENTATION_METRICS_CONFIG: RC.INSTRUMENTATION.METRICS.config,
169
169
  JWS_SIGN: RC.ENDPOINT_SECURITY.JWS.JWS_SIGN,
170
- FSPIOP_SOURCE_TO_SIGN: RC.HUB_NAME,
170
+ FSPIOP_SOURCE_TO_SIGN: RC.HUB_PARTICIPANT.NAME,
171
171
  JWS_SIGNING_KEY_PATH: RC.ENDPOINT_SECURITY.JWS.JWS_SIGNING_KEY_PATH,
172
172
  API_DOC_ENDPOINTS_ENABLED: RC.API_DOC_ENDPOINTS_ENABLED || false,
173
173
  FEATURE_ENABLE_EXTENDED_PARTY_ID_TYPE: RC.FEATURE_ENABLE_EXTENDED_PARTY_ID_TYPE || false,
@@ -105,4 +105,11 @@ describe('Config tests', () => {
105
105
  expect(isSuccess).toBe(false)
106
106
  expect(error.message).toBe('File doesn\'t exist')
107
107
  })
108
+
109
+ it('should have FSPIOP_SOURCE_TO_SIGN config defined', () => {
110
+ process.env.ALS_ENDPOINT_SECURITY__JWS__JWS_SIGN = 'false' // to avoid error in config getFileContent()
111
+ const config = require(configImport)
112
+ expect(config.FSPIOP_SOURCE_TO_SIGN).toBeDefined()
113
+ expect(config.FSPIOP_SOURCE_TO_SIGN).toBe(config.HUB_NAME)
114
+ })
108
115
  })