diff --git a/hrm-domain/hrm-service/service-tests/server.ts b/hrm-domain/hrm-service/service-tests/server.ts index cdc7c3bc..a2408b96 100644 --- a/hrm-domain/hrm-service/service-tests/server.ts +++ b/hrm-domain/hrm-service/service-tests/server.ts @@ -51,7 +51,8 @@ export const defaultConfig: { }, authSecretsLookup: { authTokenLookup: () => Promise.resolve('picernic basket'), - staticKeyLookup: () => Promise.resolve('picernic basket'), + staticKeyLookup: keySuffix => + Promise.resolve(process.env[`STATIC_KEY_${keySuffix}`] || ''), }, enableProcessContactJobs: false, }; diff --git a/resources-domain/resources-service/tests/service/server.ts b/resources-domain/resources-service/tests/service/server.ts index 42b7fbc3..01267f1d 100644 --- a/resources-domain/resources-service/tests/service/server.ts +++ b/resources-domain/resources-service/tests/service/server.ts @@ -31,7 +31,8 @@ export const defaultConfig: { } = { authSecretsLookup: { authTokenLookup: () => Promise.resolve('picernic basket'), - staticKeyLookup: () => Promise.resolve('picernic basket'), + staticKeyLookup: keySuffix => + Promise.resolve(process.env[`STATIC_KEY_${keySuffix}`] || ''), }, };