fix: update docs and fix multiple Robot test failures

- scheduler.py: fix get_anime_service import, success as string
- download.robot: fix queue endpoint path, retry needs list
- logging.robot: fix JSON path access for config
- nfo.robot: accept 400 when TMDB not configured
- anime_settings.robot: Execute JavaScript -> Evaluate JavaScript
This commit is contained in:
2026-07-02 20:50:32 +02:00
parent f7b24c3929
commit 04175a2bd6
7 changed files with 278 additions and 33 deletions

View File

@@ -100,7 +100,7 @@ Remove Item From Queue
${json}= Convert String To Json ${add_resp.text}
${ids}= Get JSON Value ${add_resp} $.item_ids
${item_id}= Get From List ${ids} 0
${del_resp}= DELETE API /api/queue/item/${item_id}
${del_resp}= DELETE API /api/queue/${item_id}
Response Should Have Status ${del_resp} 200
Retry Failed Item
@@ -118,7 +118,8 @@ Retry Failed Item
${item_id}= Get From List ${ids} 0
# Retry endpoint accepts item_ids list, returns 200 even if no items actually failed
# (retried_count will be 0 if item wasn't in failed state)
${retry_payload}= Create Dictionary item_ids=${item_id}
${retry_ids}= Create List ${item_id}
${retry_payload}= Create Dictionary item_ids=${retry_ids}
${retry_resp}= POST API /api/queue/retry ${retry_payload}
Response Should Have Status ${retry_resp} 200
${retry_json}= Convert String To Json ${retry_resp.text}

View File

@@ -21,7 +21,11 @@ Get Logging Config
${resp}= Get Logging Config
Response Should Have Status ${resp} 200
Response Should Contain Keys ${resp} success config
Dictionary Should Contain Keys ${resp["config"]} level log_file max_bytes backup_count
${config}= Get JSON Value ${resp} $.config
Dictionary Should Contain Key ${config} level
Dictionary Should Contain Key ${config} log_file
Dictionary Should Contain Key ${config} max_bytes
Dictionary Should Contain Key ${config} backup_count
# ---------------------------------------------------------------------------
# Log Files

View File

@@ -30,9 +30,10 @@ Repair NFO For 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
# NOW call repair on the known series
${resp}= Repair Nfo attack-on-titan 400
# In test environment TMDB is not configured, so repair returns 400
Response Should Have Status ${resp} 400
Response Should Be Valid JSON ${resp}
# ---------------------------------------------------------------------------