From 9da66872f630a47ca99a72c8199af9b9c8519cc6 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sun, 28 Jun 2026 16:17:17 +0200 Subject: [PATCH] Fix log file name in API logging tests Update robot tests to use correct log file name 'fastapi_app.log' instead of 'aniworld.log'. Also remove completed Task 4 documentation from tasks.md. --- Docs/tasks.md | 15 --------------- tests/robot/api/logging.robot | 4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/Docs/tasks.md b/Docs/tasks.md index 5068aca..280cdc0 100644 --- a/Docs/tasks.md +++ b/Docs/tasks.md @@ -1,18 +1,3 @@ -## Task 4: API Logging - Get Logging Config - -**Suite:** `Robot.Api.Logging` -**Test:** `Get Logging Config` -**Result:** FAIL -**Error:** `Dictionary does not contain key 'level'.` - -**Instructions:** -- Investigate the `GET /api/logging/config` endpoint response. -- The test expects a `level` key in the logging config JSON, but it is missing. -- Check the logging config model/response in the backend and ensure `level` is included. -- If the field was renamed (e.g., to `log_level`), update the test in `tests/robot/api/logging.robot` accordingly. - ---- - ## Task 5: API Logging - Tail Log File **Suite:** `Robot.Api.Logging` diff --git a/tests/robot/api/logging.robot b/tests/robot/api/logging.robot index 6b44bfe..96a5de1 100644 --- a/tests/robot/api/logging.robot +++ b/tests/robot/api/logging.robot @@ -34,12 +34,12 @@ List Log Files Tail Log File [Documentation] Tail the contents of a log file. - ${resp}= Tail Log File aniworld.log + ${resp}= Tail Log File fastapi_app.log Response Should Have Status ${resp} 200 Download Log File [Documentation] Download a log file as binary. - ${resp}= Download Log File aniworld.log + ${resp}= Download Log File fastapi_app.log Response Should Have Status ${resp} 200 Should Be Equal As Strings ${resp.headers['content-type']} application/octet-stream