Skip to content

Commit 037fcd6

Browse files
committed
Sync up tests with boilerplate changes
1 parent b283dfd commit 037fcd6

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

vcxagency-node/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,4 @@ LABEL org.label-schema.schema-version="1.1.0"
3535
LABEL org.label-schema.name="vcxagency-node"
3636
LABEL org.label-schema.description="Node VCX Agency"
3737

38-
ENV LOG_LEVEL ${LOG_LEVEL:-'true'}
39-
ENV LOG_ENABLE_INDYSDK ${LOG_ENABLE_INDYSDK:-'false'}
40-
ENV LOG_JSON_TO_CONSOLE ${LOG_JSON_TO_CONSOLE:-'true'}
41-
42-
EXPOSE ${SERVER_PORT}
43-
4438
CMD ["npm", "run", "serve"]

vcxagency-node/src/setup/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function buildApplication (appConfig) {
6262
password: appConfig.MYSQL_PASSWORD_SECRET,
6363
database: appConfig.MYSQL_DATABASE_APPLICATION
6464
}
65-
if (appConfig.LOG_ENABLE_INDYSDK) {
65+
if (appConfig.LOG_ENABLE_INDYSDK === true) {
6666
logger.info('Enabling indy logs.')
6767
indySetDefaultLogger('trace')
6868
}

vcxagency-node/test/tools/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function addChildLogger (mainLoggerName, fullPath) {
5555
}
5656

5757
const mainLoggerName = 'main'
58-
const formatter = global.LOG_JSON_TO_CONSOLE === 'true' ? jsonFormatter : prettyFormatter
58+
const formatter = process.env.LOG_JSON_TO_CONSOLE === 'true' ? jsonFormatter : prettyFormatter
5959
const logLevel = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info'
6060
console.log(`Building logger with log level ${logLevel}`)
6161
createConsoleLogger(mainLoggerName, formatter, logLevel)

vcxagency-node/test/unit/messaging/common.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function getBaseAppConfig (agencyWalletName, agencyDid, agencySeed, agencyWallet
6868
AGENCY_SEED_SECRET: agencySeed,
6969
AGENCY_WALLET_KEY_SECRET: agencyWalletKey,
7070

71-
LOG_ENABLE_INDYSDK: true,
71+
LOG_ENABLE_INDYSDK: false,
7272
LOG_LEVEL: 'trace',
7373

7474
REDIS_URL: redisUrl,
@@ -81,8 +81,7 @@ function getBaseAppConfig (agencyWalletName, agencyDid, agencySeed, agencyWallet
8181
MYSQL_DATABASE_APPLICATION: applicationDbName,
8282
MYSQL_DATABASE_WALLET: walletsDbName,
8383
MYSQL_DATABASE_WALLET_CONNECTION_LIMIT: 50,
84-
DEV_MODE: 'true'
85-
84+
DEV_MODE: true
8685
}
8786
}
8887

0 commit comments

Comments
 (0)