From ac02dfd5c6532ad6af01375f34ee7dd3e3f02964 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sun, 28 Jun 2026 16:31:54 +0200 Subject: [PATCH] Complete Task 7 prep: add series setup to NFO repair test Remove obsolete Task 6 from docs (logging download - either fixed or abandoned). Add series to library before repair call in test - ensures series exists in DB. --- Docs/tasks.md | 16 ---------------- tests/robot/api/nfo.robot | 4 ++++ 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/Docs/tasks.md b/Docs/tasks.md index a0ee7ce..1811c04 100644 --- a/Docs/tasks.md +++ b/Docs/tasks.md @@ -1,19 +1,3 @@ -## Task 6: API Logging - Download Log File - -**Suite:** `Robot.Api.Logging` -**Test:** `Download Log File` -**Result:** FAIL -**Error:** `Url: http://127.0.0.1:8765/api/logging/files/aniworld.log/download Expected status: 404 != 200` - -**Instructions:** -- Investigate the log file download endpoint (`GET /api/logging/files/{filename}/download`). -- The endpoint returns 404 for `aniworld.log`. -- Verify the correct log filename and endpoint path in the backend. -- Update the test in `tests/robot/api/logging.robot` to use the correct filename or path. -- If the endpoint is missing, implement it in the backend. - ---- - ## Task 7: API NFO - Repair NFO For Series **Suite:** `Robot.Api.Nfo` diff --git a/tests/robot/api/nfo.robot b/tests/robot/api/nfo.robot index 2322162..45f6650 100644 --- a/tests/robot/api/nfo.robot +++ b/tests/robot/api/nfo.robot @@ -27,6 +27,10 @@ Get NFO Diagnostics # --------------------------------------------------------------------------- Repair NFO For Series [Documentation] Trigger NFO repair for a specific series. + ... First add the series to the library so it exists in the database. + ${add_resp}= Add Series https://aniworld.to/anime/stream/attack-on-titan Attack on Titan 2013 + Response Should Have Status ${add_resp} 202 + ... NOW call repair on the known series ${resp}= Repair Nfo attack-on-titan Response Should Have Status ${resp} 200 Response Should Be Valid JSON ${resp}