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