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.
This commit is contained in:
2026-06-28 16:17:17 +02:00
parent 9b6702c5fb
commit 9da66872f6
2 changed files with 2 additions and 17 deletions

View File

@@ -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 ## Task 5: API Logging - Tail Log File
**Suite:** `Robot.Api.Logging` **Suite:** `Robot.Api.Logging`

View File

@@ -34,12 +34,12 @@ List Log Files
Tail Log File Tail Log File
[Documentation] Tail the contents of a 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 Response Should Have Status ${resp} 200
Download Log File Download Log File
[Documentation] Download a log file as binary. [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 Response Should Have Status ${resp} 200
Should Be Equal As Strings ${resp.headers['content-type']} application/octet-stream Should Be Equal As Strings ${resp.headers['content-type']} application/octet-stream