mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Create /tmp/authelia/db directory when starting minimal suite.
This commit is contained in:
parent
d2ae2524b7
commit
a56e5adc42
|
@ -21,7 +21,7 @@ session:
|
||||||
# Configuration of the storage backend used to store data and secrets. i.e. totp data
|
# Configuration of the storage backend used to store data and secrets. i.e. totp data
|
||||||
storage:
|
storage:
|
||||||
local:
|
local:
|
||||||
path: /var/lib/authelia/db
|
path: /tmp/authelia/db
|
||||||
|
|
||||||
# TOTP Issuer Name
|
# TOTP Issuer Name
|
||||||
#
|
#
|
||||||
|
|
|
@ -15,10 +15,17 @@ import SimpleAuthentication from './scenarii/SimpleAuthentication';
|
||||||
|
|
||||||
const execAsync = Bluebird.promisify(ChildProcess.exec);
|
const execAsync = Bluebird.promisify(ChildProcess.exec);
|
||||||
|
|
||||||
|
before(async function() {
|
||||||
|
await execAsync('mkdir -p /tmp/authelia/db');
|
||||||
|
});
|
||||||
|
|
||||||
|
after(async function() {
|
||||||
|
await execAsync('rm -r /tmp/authelia/db');
|
||||||
|
});
|
||||||
|
|
||||||
AutheliaSuite('Minimal configuration', __dirname + '/config.yml', function() {
|
AutheliaSuite('Minimal configuration', __dirname + '/config.yml', function() {
|
||||||
this.timeout(10000);
|
this.timeout(10000);
|
||||||
beforeEach(async function() {
|
beforeEach(async function() {
|
||||||
await execAsync('mkdir -p /var/lib/authelia/db')
|
|
||||||
await execAsync('cp users_database.example.yml users_database.yml');
|
await execAsync('cp users_database.example.yml users_database.yml');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user