1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/__snapshots__/create-config.test.ts.snap
Ivar Conradi Østhus f3e8f723a2
Feat/exp flag loader (#1961)
* fix: remove unused exp flag

* fix: remove unused flag

* fix: add support for external flag resolver

* fix: rename flagsresolver to flagresolver

* fix: disable external flag resolver

* fix: refactor a bit

* fix: stop using unleash in server-dev

* fix: remove userGroups flag

* fix: revert bumping frontend
2022-08-26 08:22:42 +02:00

136 lines
3.2 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should create default config 1`] = `
Object {
"additionalCspAllowedDomains": Object {
"defaultSrc": Array [],
"fontSrc": Array [],
"imgSrc": Array [],
"scriptSrc": Array [],
"styleSrc": Array [],
},
"authentication": Object {
"createAdminUser": true,
"customAuthHandler": [Function],
"enableApiToken": true,
"initApiTokens": Array [],
"type": "open-source",
},
"clientFeatureCaching": Object {
"enabled": true,
"maxAge": 600,
},
"db": Object {
"acquireConnectionTimeout": 30000,
"applicationName": "unleash",
"database": "unleash_db",
"disableMigration": false,
"driver": "postgres",
"host": "localhost",
"password": "password",
"pool": Object {
"idleTimeoutMillis": 30000,
"max": 4,
"min": 0,
"propagateCreateError": false,
},
"port": 4242,
"schema": "public",
"ssl": Object {
"rejectUnauthorized": false,
},
"user": "unleash",
"version": undefined,
},
"disableLegacyFeaturesApi": false,
"email": Object {
"host": undefined,
"port": 587,
"secure": false,
"sender": "noreply@unleash-hosted.com",
"smtppass": undefined,
"smtpuser": undefined,
},
"enableOAS": false,
"enterpriseVersion": undefined,
"environmentEnableOverrides": Array [],
"eventBus": EventEmitter {
"_events": Object {},
"_eventsCount": 0,
"_maxListeners": undefined,
Symbol(kCapture): false,
},
"eventHook": undefined,
"experimental": Object {
"externalResolver": Object {
"isEnabled": [Function],
},
"flags": Object {
"ENABLE_DARK_MODE_SUPPORT": false,
"anonymiseEventLog": false,
"batchMetrics": false,
"embedProxy": false,
},
},
"flagResolver": FlagResolver {
"experiments": Object {
"ENABLE_DARK_MODE_SUPPORT": false,
"anonymiseEventLog": false,
"batchMetrics": false,
"embedProxy": false,
},
"externalResolver": Object {
"isEnabled": [Function],
},
},
"frontendApiOrigins": Array [],
"getLogger": [Function],
"import": Object {
"dropBeforeImport": false,
"file": undefined,
"keepExisting": false,
},
"inlineSegmentConstraints": true,
"listen": Object {
"host": undefined,
"port": 4242,
},
"preHook": undefined,
"preRouterHook": undefined,
"secureHeaders": false,
"segmentValuesLimit": 100,
"server": Object {
"baseUriPath": "",
"cdnPrefix": undefined,
"enableRequestLogger": false,
"gracefulShutdownEnable": true,
"gracefulShutdownTimeout": 1000,
"headersTimeout": 61000,
"host": undefined,
"keepAliveTimeout": 60000,
"pipe": undefined,
"port": 4242,
"secret": "super-secret",
"serverMetrics": true,
"unleashUrl": "http://localhost:4242",
},
"session": Object {
"clearSiteDataOnLogout": true,
"cookieName": "unleash-session",
"db": true,
"ttlHours": 48,
},
"strategySegmentsLimit": 5,
"ui": Object {
"flags": Object {
"E": true,
"ENABLE_DARK_MODE_SUPPORT": false,
},
},
"versionCheck": Object {
"enable": true,
"url": "https://version.unleash.run",
},
}
`;