Lidarr/Readarr, integration inspector, app versions, grouped alerts
Lidarr and Readarr join the shared *arr reader. Integrations get an Inspect button that runs the reader once and shows what each request returned as shapes (never values) and where the result is empty. Operations -> App versions compares each application's version with its newest GitHub release (lookup off until an admin switches it on; optional alert). The Alerts page can group by source, kind of problem or type of alert. The shared HTTP helper no longer reuses connections (stale-socket resets). Migration 0078; docs and tests included. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
551eb1597a
commit
93aaf5476d
45 files changed
+10033
-65
No files matched your search
@@ -128,6 +128,26 @@ describe("what the *arr API says", () => {
|
||||
assert.ok(!seen.some((s) => s.path.includes("/queue")));
|
||||
});
|
||||
|
||||
test("Lidarr and Readarr are under v1, ask for their own unknown items, and have a queue and the missing like Sonarr (and no indexers)", async () => {
|
||||
for (const [kind, include] of [["lidarr", "includeUnknownArtistItems=true"], ["readarr", "includeUnknownAuthorItems=true"]] as const) {
|
||||
seen.length = 0;
|
||||
const r = await adapter.createArrAdapter(kind, { url, apiKey: "k" }).read();
|
||||
assert.deepEqual([r.queue?.total, r.missing, r.indexers], [1, 7, null], kind);
|
||||
assert.ok(seen.every((s) => s.path.startsWith("/api/v1/") && s.method === "GET"), kind);
|
||||
assert.ok(seen.some((s) => s.path.includes(include)), kind);
|
||||
assert.ok(!seen.some((s) => s.path.includes("/indexer")), kind);
|
||||
}
|
||||
assert.deepEqual(adapter.ARR_KINDS, ["sonarr", "radarr", "prowlarr", "lidarr", "readarr"]);
|
||||
});
|
||||
|
||||
test("an address that is another one of the family is said, for the new kinds too", async () => {
|
||||
appName = "Sonarr";
|
||||
assert.match((await adapter.createArrAdapter("lidarr", { url, apiKey: "k" }).ping()).error ?? "", /That is Sonarr, not Lidarr/);
|
||||
appName = "Lidarr";
|
||||
assert.equal((await adapter.createArrAdapter("lidarr", { url, apiKey: "k" }).ping()).ok, true);
|
||||
appName = "Sonarr";
|
||||
});
|
||||
|
||||
test("a part that cannot be read is null, not empty; the status and the health are what must work", async () => {
|
||||
queueStatus = 500;
|
||||
const r = await adapter.createArrAdapter("sonarr", { url, apiKey: "k" }).read();
|
||||
|
||||
Reference in new issue
Block a user