|
|
@ -61,7 +61,7 @@ log.info("server", "Importing this project modules");
|
|
|
|
log.debug("server", "Importing Monitor");
|
|
|
|
log.debug("server", "Importing Monitor");
|
|
|
|
const Monitor = require("./model/monitor");
|
|
|
|
const Monitor = require("./model/monitor");
|
|
|
|
log.debug("server", "Importing Settings");
|
|
|
|
log.debug("server", "Importing Settings");
|
|
|
|
const { getSettings, setSettings, setting, initJWTSecret, checkLogin, startUnitTest, FBSD, doubleCheckPassword } = require("./util-server");
|
|
|
|
const { getSettings, setSettings, setting, initJWTSecret, checkLogin, startUnitTest, FBSD, doubleCheckPassword, startE2eTests } = require("./util-server");
|
|
|
|
|
|
|
|
|
|
|
|
log.debug("server", "Importing Notification");
|
|
|
|
log.debug("server", "Importing Notification");
|
|
|
|
const { Notification } = require("./notification");
|
|
|
|
const { Notification } = require("./notification");
|
|
|
@ -112,6 +112,7 @@ const twoFAVerifyOptions = {
|
|
|
|
* @type {boolean}
|
|
|
|
* @type {boolean}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
const testMode = !!args["test"] || false;
|
|
|
|
const testMode = !!args["test"] || false;
|
|
|
|
|
|
|
|
const e2eTestMode = !!args["e2e"] || false;
|
|
|
|
|
|
|
|
|
|
|
|
if (config.demoMode) {
|
|
|
|
if (config.demoMode) {
|
|
|
|
log.info("server", "==== Demo Mode ====");
|
|
|
|
log.info("server", "==== Demo Mode ====");
|
|
|
@ -1459,6 +1460,10 @@ let needSetup = false;
|
|
|
|
if (testMode) {
|
|
|
|
if (testMode) {
|
|
|
|
startUnitTest();
|
|
|
|
startUnitTest();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (e2eTestMode) {
|
|
|
|
|
|
|
|
startE2eTests();
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
initBackgroundJobs(args);
|
|
|
|
initBackgroundJobs(args);
|
|
|
|