Execution: reclaim the directories of Ended Tickets after a retention
This commit is contained in:
@@ -355,3 +355,11 @@ it('reports whether the service is alive and polling apart from whether any Trig
|
||||
expect(overview(host, {}, 'v1', load, undefined, startedAt).liveness).toMatchObject({ polling: false, lastPollAt: null, pollAgeMs: null })
|
||||
expect(overview(host, {}, 'v1', load).liveness).toMatchObject({ startedAt: null, uptimeMs: null, polling: false })
|
||||
})
|
||||
|
||||
it('reports what the execution root holds for Ended Tickets apart from what any Trigger did', () => {
|
||||
const host = views()
|
||||
const workspace = { root: '/srv/work', afterDays: 14, directories: 5, candidates: 1, bytes: 1024, lastScanAt: at, unreadable: 0 }
|
||||
expect(overview(host, {}, 'v1', load, undefined, undefined, workspace).workspace).toEqual(workspace)
|
||||
// Before the first scan there is nothing to say, which the page renders as no readout rather than as zeroes.
|
||||
expect(overview(host, {}, 'v1', load).workspace).toBeNull()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user