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