2019-03-22 22:54:27 +07:00
|
|
|
import AutheliaSuite from "../../helpers/context/AutheliaSuite";
|
|
|
|
import { exec } from '../../helpers/utils/exec';
|
|
|
|
import BypassPolicy from "./scenarii/BypassPolicy";
|
2019-03-28 03:57:16 +07:00
|
|
|
import NoDefaultRedirectionUrl from "./scenarii/NoDefaultRedirectionUrl";
|
2019-04-11 02:56:55 +07:00
|
|
|
import CustomHeadersForwarded from "./scenarii/CustomHeadersForwarded";
|
|
|
|
|
|
|
|
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0 as any;
|
2019-03-22 22:54:27 +07:00
|
|
|
|
2019-04-11 02:27:18 +07:00
|
|
|
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0 as any;
|
|
|
|
|
2019-11-02 21:32:58 +07:00
|
|
|
AutheliaSuite(__dirname, function () {
|
|
|
|
this.timeout(10000);
|
2019-03-22 22:54:27 +07:00
|
|
|
|
2019-11-02 21:32:58 +07:00
|
|
|
beforeEach(async function () {
|
|
|
|
await exec(`cp ${__dirname}/../../../suites/BypassAll/users.yml /tmp/authelia/suites/BypassAll/users.yml`);
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('Bypass policy', BypassPolicy);
|
|
|
|
describe("No default redirection", NoDefaultRedirectionUrl);
|
|
|
|
describe("Custom headers forwarded on bypass", CustomHeadersForwarded);
|
2019-03-22 22:54:27 +07:00
|
|
|
});
|