1+ {
2+ // development configurations
3+ // overrides values specified in default.jsonc, read additional comments there
4+ // and in cve-core/src/adapters/config/AppConfig.ts
5+ // NOTE for consistency, all values need to be strings for proper type when using .env overrides
6+ "appConfig" : {
7+ // constants for search capability
8+ "search" : {
9+ // minimum versions for servers that are compatible with current code
10+ "minServer" : [
11+ " opensearch:2.10.0"
12+ ],
13+ // URL to reach search server
14+ "providerEndpoint" : " https://admin:admin@localhost:9200" ,
15+ // index on search server related to searching CVEs
16+ "index" : " e2e-cve-test-index-1109" ,
17+ // setting this to FALSE (recommended) requires an SSL cert to access the search server
18+ // The only time this should be allowed to be true is when developing or testing
19+ // using containers that do not have SSL certs
20+ // DO NOT USE THIS IN ANY PUBLIC OR PRODUCTION ENVIRONMENTS
21+ "allowUnknownSslCerts" : " TRUE"
22+ },
23+ // constants for unit, int, e2e testing
24+ "test" : {
25+ // constants for testing search capability
26+ "searchTest" : {
27+ // many tests for search uses snapshots, which requires CVEs to remain unchanged
28+ // since the live server is updated all the time, a fixture containing fixed CVEs
29+ // is required to keep the test consistent. "fixtures" provides the link
30+ // to the cve-fixtures repository
31+ "fixtures" : {
32+ // @todo these constants needs to be in sync in cve-fixtures
33+ // so that testing snapshots are consistent and valid
34+ "name" : " fixtures-search-baseline-1086" , // release tag
35+ "numCves" : " 1086" // possible identifier assuming we always add cves to a new release
36+ }
37+ },
38+ // constants for testing node-config
39+ "appConfigTest" : {
40+ // these values are only used to test node-config in AppConfig.test.int.ts
41+ // DO NOT USE THIS FOR ANYTHING ELSE
42+ "two" : " 2" ,
43+ "five" : " 5"
44+ }
45+ }
46+ }
47+ }
0 commit comments