mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
b912768923
* feat: move secrets to settings * feat: Add better support for detailed db options. Added db field in options to allow better control of db-options. Especially important to allow special chars in database password which might lead to an invaid url when defined as a database-url. * fix: integrate logger with knex logger * fix: remove secret option from all examples * fix: more options.js unit tests * fix: added settings-store e2e tests
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
const ClientMetricsStore = require('./fake-metrics-store');
|
|
const clientInstanceStore = require('./fake-client-instance-store');
|
|
const clientApplicationsStore = require('./fake-client-applications-store');
|
|
const featureToggleStore = require('./fake-feature-toggle-store');
|
|
const eventStore = require('./fake-event-store');
|
|
const strategyStore = require('./fake-strategies-store');
|
|
const contextFieldStore = require('./fake-context-store');
|
|
const settingStore = require('./fake-setting-store');
|
|
|
|
module.exports = {
|
|
createStores: () => {
|
|
const db = {
|
|
select: () => ({
|
|
from: () => Promise.resolve(),
|
|
}),
|
|
};
|
|
|
|
return {
|
|
db,
|
|
clientApplicationsStore: clientApplicationsStore(),
|
|
clientMetricsStore: new ClientMetricsStore(),
|
|
clientInstanceStore: clientInstanceStore(),
|
|
featureToggleStore: featureToggleStore(),
|
|
eventStore: eventStore(),
|
|
strategyStore: strategyStore(),
|
|
contextFieldStore: contextFieldStore(),
|
|
settingStore: settingStore(),
|
|
};
|
|
},
|
|
};
|