@mimik/configuration 6.0.8 → 6.0.10
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/README.md +2 -2
- package/index.js +4 -3
- package/package.json +11 -10
- package/.claude/settings.local.json +0 -15
- package/.husky/pre-commit +0 -2
- package/.husky/pre-push +0 -2
- package/eslint.config.js +0 -87
- package/manual-test/test-config.js +0 -48
- package/manual-test/testEnv.js +0 -21
- package/test/configuration.spec.js +0 -1038
- package/test/testEnv.js +0 -46
package/test/testEnv.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* eslint no-process-env: "off" */
|
|
2
|
-
import process from 'node:process';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The following environment variables are set for the test:
|
|
6
|
-
*
|
|
7
|
-
* | Env variable name | Description | Default | Comments |
|
|
8
|
-
* | ----------------- | ----------- | ------- | -------- |
|
|
9
|
-
* | SUMO_LOGIC_ENDPOINT | endpoint to use to log on sumologic | null
|
|
10
|
-
* | SUMO_LOGIC_COLLECTOR_CODE | code to use to log on sumologic | null
|
|
11
|
-
* | NO_STACK | flag to have a stack associated with the log | yes
|
|
12
|
-
* | LOG_LEVEL | log level to log | error
|
|
13
|
-
* | CONSOLE_LEVEL | log level to display | debug
|
|
14
|
-
* | LOG_MODE | log mode | none
|
|
15
|
-
* | MST_SET | to setup configuration without mST | on
|
|
16
|
-
* | API_KEYS | list of API Keys | testKey1,testKey2
|
|
17
|
-
* | SERVER_PORT | port of the server | 3000
|
|
18
|
-
* | OAUTH_CLIENT_ID | security id | test-client-id
|
|
19
|
-
* | OAUTH_CLIENT_SECRET | secret | test-client-secret
|
|
20
|
-
* | OAUTH_CLIENT_ACCESS_KEY | access key | test-access-key
|
|
21
|
-
* | OAUTH_CLIENT_AUDIENCE | audience | test-audience
|
|
22
|
-
* | OAUTH_ISSUER | issuer | test-issuer
|
|
23
|
-
* | MIT_URL | mIT URL | http://localhost:8080
|
|
24
|
-
* | MIT_AUDIENCE | mIT audience | test-mit-audience
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
delete process.env.SUMO_LOGIC_ENDPOINT;
|
|
28
|
-
delete process.env.SUMO_LOGIC_COLLECTOR_CODE;
|
|
29
|
-
process.env.NO_STACK = 'yes';
|
|
30
|
-
process.env.LOG_LEVEL = 'error';
|
|
31
|
-
process.env.LOG_MODE = 'none';
|
|
32
|
-
process.env.CONSOLE_LEVEL = 'debug';
|
|
33
|
-
|
|
34
|
-
process.env.MST_SET = 'on';
|
|
35
|
-
process.env.API_KEYS = 'testKey1,testKey2';
|
|
36
|
-
process.env.SERVER_PORT = '3000';
|
|
37
|
-
process.env.OAUTH_CLIENT_ID = 'test-client-id';
|
|
38
|
-
process.env.OAUTH_CLIENT_SECRET = 'test-client-secret';
|
|
39
|
-
process.env.OAUTH_CLIENT_ACCESS_KEY = 'test-access-key';
|
|
40
|
-
process.env.OAUTH_CLIENT_AUDIENCE = 'test-audience';
|
|
41
|
-
process.env.OAUTH_ISSUER = 'test-issuer';
|
|
42
|
-
process.env.MIT_URL = 'http://localhost:8080';
|
|
43
|
-
process.env.MIT_AUDIENCE = 'test-mit-audience';
|
|
44
|
-
|
|
45
|
-
// Server type audience for basePack.mimik.type = 'mTest'
|
|
46
|
-
process.env.MTEST_AUDIENCE = 'test-mtest-audience';
|