authelia/test/helpers/context/DockerEnvironment.ts
Clement Michaud d09a307ff8 Fix redirection after 2FA method change.
Authelia was using links with href="#" that changed the URL when clicked
on. Therefore, this commit removes the href property and apply link style
to tags without href property.
2019-03-24 20:02:55 +01:00

23 lines
449 B
TypeScript

import DockerCompose from "./DockerCompose";
class DockerEnvironment {
private dockerCompose: DockerCompose;
constructor(composeFiles: string[]) {
this.dockerCompose = new DockerCompose(composeFiles);
}
async start() {
await this.dockerCompose.up();
}
async logs(service: string) {
await this.dockerCompose.logs(service);
}
async stop() {
await this.dockerCompose.down();
}
}
export default DockerEnvironment;