diff --git a/server/test/ServerConfiguration.test.ts b/server/test/ServerConfiguration.test.ts index 203f0a3a..bc6c1ba8 100644 --- a/server/test/ServerConfiguration.test.ts +++ b/server/test/ServerConfiguration.test.ts @@ -37,6 +37,7 @@ describe("test server configuration", function () { it("should set cookie scope to domain set in the config", function () { const config: UserConfiguration = { + port: 8081, session: { domain: "example.com", secret: "secret" diff --git a/test/features/step_definitions/hooks.ts b/test/features/step_definitions/hooks.ts index 19fb7f6c..ddfaceec 100644 --- a/test/features/step_definitions/hooks.ts +++ b/test/features/step_definitions/hooks.ts @@ -9,6 +9,7 @@ import { IMongoClient } from "../../../server/src/lib/connectors/mongo/IMongoCli import { TotpHandler } from "../../../server/src/lib/authentication/totp/TotpHandler"; import Speakeasy = require("speakeasy"); import Request = require("request-promise"); +import { TOTPSecret } from "../../../server/types/TOTPSecret"; setDefaultTimeout(20 * 1000); @@ -77,7 +78,7 @@ declareNeedsConfiguration("single_factor", createSingleFactorConfiguration); declareNeedsConfiguration("totp_issuer", createCustomTotpIssuerConfiguration); function registerUser(context: any, username: string) { - let secret: Speakeasy.Key; + let secret: TOTPSecret; const mongoConnector = new MongoConnector("mongodb://localhost:27017"); return mongoConnector.connect("authelia") .then(function (mongoClient: IMongoClient) {