mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
76fa325f08
Authelia client uses hash router instead of browser router in order to work with Kubernetes nginx-ingress-controller. This is also better for users having old browsers. This commit is breaking because it requires to change the configuration of the proxy to include the # in the URL of the login portal.
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
import AutheliaSuite from '../../helpers/context/AutheliaSuite';
|
|
import DockerCompose from '../../helpers/context/DockerCompose';
|
|
import { composeFiles } from './environment';
|
|
import Assert from 'assert';
|
|
import SingleFactorAuthentication from '../../helpers/scenarii/SingleFactorAuthentication';
|
|
import TwoFactorAuthentication from '../../helpers/scenarii/TwoFactorAuthentication';
|
|
|
|
AutheliaSuite(__dirname, function() {
|
|
this.timeout(15000);
|
|
const dockerCompose = new DockerCompose(composeFiles);
|
|
|
|
describe('Check the container', function() {
|
|
it('should be running', async function() {
|
|
const stdout = await dockerCompose.ps();
|
|
const lines = stdout.split("\n");
|
|
const autheliaLine = lines.filter(l => l.indexOf('authelia_1') > -1);
|
|
if (autheliaLine.length != 1) {
|
|
throw new Error('Authelia container not found...');
|
|
}
|
|
// check if the container is up.
|
|
Assert(autheliaLine[0].indexOf(' Up ') > -1);
|
|
});
|
|
});
|
|
|
|
describe('Single-factor authentication', SingleFactorAuthentication())
|
|
describe('Two-factor authentication', TwoFactorAuthentication());
|
|
}); |