test(vault): verify always-on background stat collectors and write-only vault lock
This commit is contained in:
parent
d3ffa597d4
commit
7dac3d1261
3 changed files with 367 additions and 2 deletions
|
|
@ -431,11 +431,13 @@ describe('Configurable Re-Auth Strictness, Multi-Auth Factors & Emergency Secret
|
|||
},
|
||||
});
|
||||
expect(relogin.status).toBe(200);
|
||||
expect(relogin.data.vaultState).toBe('unlocked');
|
||||
expect(relogin.data.vaultState).toBe('locked');
|
||||
expect(relogin.data.vaultRuntimeReady).toBe(true);
|
||||
|
||||
const vStatus = await api.call('/api/vault/status');
|
||||
expect(vStatus.status).toBe(200);
|
||||
expect(vStatus.data.state).toBe('unlocked');
|
||||
expect(vStatus.data.state).toBe('locked');
|
||||
expect(vStatus.data.runtimeReady).toBe(true);
|
||||
|
||||
// Trigger Panic Lock -> locks vault while keeping backup file intact; restart must stay locked
|
||||
expect((await api.call('/api/security/panic-lock', { method: 'POST' })).status).toBe(200);
|
||||
|
|
@ -464,6 +466,7 @@ describe('Configurable Re-Auth Strictness, Multi-Auth Factors & Emergency Secret
|
|||
});
|
||||
expect(loginAfterPanic.status).toBe(200);
|
||||
expect(loginAfterPanic.data.vaultState).toBe('locked');
|
||||
expect(loginAfterPanic.data.vaultRuntimeReady).toBe(false);
|
||||
|
||||
// Unlock manually, then wipe and disable recovery backup
|
||||
expect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue