Updates
CI / test (push) Successful in 1m3s
Release rolling / release (push) Has been cancelled

This commit is contained in:
Raven Scott
2026-07-18 23:32:56 -04:00
parent 6ef3afe821
commit 4633210eea
13 changed files with 64 additions and 25 deletions
+4 -2
View File
@@ -160,9 +160,12 @@ test('queryLogs audit from temp file', async (t) => {
t.ok(res.entries[0].message.includes('runJob'))
})
test('queryLogs journal disabled / unsupported', async (t) => {
test('queryLogs journal default on / disable / unsupported', async (t) => {
const prev = process.env.PEARDATA_JOURNAL
delete process.env.PEARDATA_JOURNAL
t.ok(isJournalEnabled(), 'journal enabled by default')
process.env.PEARDATA_JOURNAL = '0'
t.absent(isJournalEnabled())
const off = await queryLogs({ source: 'journal', role: Roles.admin })
t.absent(off.ok)
@@ -175,7 +178,6 @@ test('queryLogs journal disabled / unsupported', async (t) => {
t.absent(uns.ok)
t.is(uns.error, 'unsupported')
} else {
// On Linux with journal enabled, inject a fake spawn that fails cleanly
const res = await queryLogs(
{ source: 'journal', role: Roles.admin, limit: 5 },
{