authelia/test/suites/DuoPush/test.ts

18 lines
679 B
TypeScript
Raw Normal View History

import AutheliaSuite from "../../helpers/context/AutheliaSuite";
import { exec } from '../../helpers/utils/exec';
import DuoPushNotification from "./scenarii/DuoPushNotification";
2019-03-25 05:29:46 +07:00
import Prefered2faMethod from "./scenarii/Prefered2faMethod";
// required to query duo-api over https
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0 as any;
AutheliaSuite(__dirname, function () {
this.timeout(10000);
beforeEach(async function () {
await exec(`cp ${__dirname}/../../../suites/DuoPush/users.yml /tmp/authelia/suites/DuoPush/users.yml`);
});
describe("Duo Push Notication", DuoPushNotification);
describe("Prefered 2FA methods", Prefered2faMethod);
});