Skip to content

Commit 4e783f6

Browse files
authored
Merge pull request #82 from BitGo/WP-5339-more-config-tests
chore(mbe): clean up / consolidate configs for mbe/ebe
2 parents d2f3077 + 54e5298 commit 4e783f6

28 files changed

+405
-124
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ Both modes use the same TLS configuration variables:
7575

7676
### Logging and Debug
7777

78-
- `LOGFILE` - Path to log file (optional)
79-
- `DEBUG_NAMESPACE` - Debug namespaces to enable (e.g., 'enclaved:\*')
78+
- `HTTP_LOGFILE` - Path to HTTP request log file (optional, used by Morgan for HTTP access logs)
8079

8180
## Quick Start
8281

@@ -232,6 +231,7 @@ curl -k -X POST https://localhost:3081/ping/enclavedExpress
232231
```
233232

234233
Notes:
234+
235235
- `host.containers.internal` is a special DNS name that resolves to the host machine from inside containers
236236
- The `:Z` option in volume mounts is specific to SELinux-enabled systems and ensures proper volume labeling
237237
- The logs directory will be created with appropriate permissions if it doesn't exist

src/__tests__/api/enclaved/postIndependentKey.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ describe('postIndependentKey', () => {
3333
port: 0, // Let OS assign a free port
3434
bind: 'localhost',
3535
timeout: 60000,
36-
logFile: '',
36+
httpLoggerFile: '',
3737
kmsUrl: kmsUrl,
3838
tlsMode: TlsMode.DISABLED,
39-
mtlsRequestCert: false,
4039
allowSelfSigned: true,
4140
};
4241

src/__tests__/api/enclaved/postMpcV2Key.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ describe('postMpcV2Key', () => {
3535
port: 0, // Let OS assign a free port
3636
bind: 'localhost',
3737
timeout: 60000,
38-
logFile: '',
38+
httpLoggerFile: '',
3939
kmsUrl: kmsUrl,
4040
tlsMode: TlsMode.DISABLED,
41-
mtlsRequestCert: false,
4241
allowSelfSigned: true,
4342
};
4443

src/__tests__/api/enclaved/recoveryMultisigTransaction.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ describe('UTXO recovery', () => {
1818
port: 0,
1919
bind: 'localhost',
2020
timeout: 60000,
21-
logFile: '',
21+
httpLoggerFile: '',
2222
tlsMode: TlsMode.DISABLED,
23-
mtlsRequestCert: false,
2423
allowSelfSigned: true,
2524
kmsUrl: 'kms.example.com',
2625
};

src/__tests__/api/enclaved/recoveryMusigEth.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ describe('recoveryMultisigTransaction', () => {
3636
port: 0, // Let OS assign a free port
3737
bind: 'localhost',
3838
timeout: 60000,
39-
logFile: '',
39+
httpLoggerFile: '',
4040
kmsUrl: kmsUrl,
4141
tlsMode: TlsMode.DISABLED,
42-
mtlsRequestCert: false,
4342
allowSelfSigned: true,
4443
};
4544

src/__tests__/api/enclaved/signMpcRecoveryTransaction.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ import { AppMode, EnclavedConfig, TlsMode } from '../../../shared/types';
1010
describe('EdDSA Recovery Signing', () => {
1111
let agent: supertest.SuperTest<supertest.Test>;
1212
const config: EnclavedConfig = {
13+
kmsUrl: 'http://localhost:3000',
1314
appMode: AppMode.ENCLAVED,
1415
port: 0,
1516
bind: 'localhost',
1617
timeout: 60000,
17-
logFile: '',
18+
httpLoggerFile: '',
1819
tlsMode: TlsMode.DISABLED,
19-
mtlsRequestCert: false,
2020
allowSelfSigned: true,
21-
kmsUrl: 'kms.example.com',
2221
};
2322

2423
const commonKeychain =

src/__tests__/api/enclaved/signMpcTransaction.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ describe('signMpcTransaction', () => {
4040
port: 0, // Let OS assign a free port
4141
bind: 'localhost',
4242
timeout: 60000,
43-
logFile: '',
43+
httpLoggerFile: '',
4444
kmsUrl: kmsUrl,
4545
tlsMode: TlsMode.DISABLED,
46-
mtlsRequestCert: false,
4746
allowSelfSigned: true,
4847
};
4948

src/__tests__/api/enclaved/signMultisigTransaction.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ describe('signMultisigTransaction', () => {
3333
port: 0, // Let OS assign a free port
3434
bind: 'localhost',
3535
timeout: 60000,
36-
logFile: '',
36+
httpLoggerFile: '',
3737
kmsUrl: kmsUrl,
3838
tlsMode: TlsMode.DISABLED,
39-
mtlsRequestCert: false,
4039
allowSelfSigned: true,
4140
};
4241

src/__tests__/api/master/accelerate.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ describe('POST /api/:coin/wallet/:walletId/accelerate', () => {
2323
port: 0, // Let OS assign a free port
2424
bind: 'localhost',
2525
timeout: 30000,
26-
logFile: '',
26+
httpLoggerFile: '',
2727
env: 'test',
2828
disableEnvCheck: true,
2929
authVersion: 2,
3030
enclavedExpressUrl: enclavedExpressUrl,
3131
enclavedExpressCert: 'test-cert',
3232
tlsMode: TlsMode.DISABLED,
33-
mtlsRequestCert: false,
3433
allowSelfSigned: true,
3534
};
3635

src/__tests__/api/master/consolidate.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ describe('POST /api/:coin/wallet/:walletId/consolidateunspents', () => {
2626
port: 0,
2727
bind: 'localhost',
2828
timeout: 30000,
29-
logFile: '',
29+
httpLoggerFile: '',
3030
env: 'test',
3131
disableEnvCheck: true,
3232
authVersion: 2,
3333
enclavedExpressUrl: enclavedExpressUrl,
3434
enclavedExpressCert: 'test-cert',
3535
tlsMode: TlsMode.DISABLED,
36-
mtlsRequestCert: false,
3736
allowSelfSigned: true,
3837
};
3938

0 commit comments

Comments
 (0)