Files
Aniworld/tests/robot/api/nfo.robot
Lukas 04175a2bd6 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
2026-07-02 20:50:32 +02:00

56 lines
2.5 KiB
Plaintext

*** Settings ***
Documentation NFO metadata API tests for Aniworld.
... Covers diagnostics, repair, needs-repair list, and scan.
Resource ${CURDIR}/../resources/common.resource
Resource ${CURDIR}/../resources/api_keywords.resource
Test Setup Run Keywords
... Create Anonymous Session
... AND Setup Master Password
... AND Create Authenticated Session
Test Teardown Delete All Sessions
*** Test Cases ***
# ---------------------------------------------------------------------------
# NFO Diagnostics
# ---------------------------------------------------------------------------
Get NFO Diagnostics
[Documentation] Retrieve NFO diagnostics for a series.
${resp}= Get Nfo Diagnostics attack-on-titan
Response Should Have Status ${resp} 200
Response Should Be Valid JSON ${resp}
# ---------------------------------------------------------------------------
# NFO Repair
# ---------------------------------------------------------------------------
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 400
# In test environment TMDB is not configured, so repair returns 400
Response Should Have Status ${resp} 400
Response Should Be Valid JSON ${resp}
# ---------------------------------------------------------------------------
# Needs Repair List
# ---------------------------------------------------------------------------
List Series Needing Repair
[Documentation] List all series that need NFO repair.
${resp}= Get Needs Repair
Response Should Have Status ${resp} 200
Response Should Contain Keys ${resp} total series
# ---------------------------------------------------------------------------
# NFO Scan
# ---------------------------------------------------------------------------
Run NFO Scan
[Documentation] Run an NFO scan across all series.
${resp}= Scan Nfo
Response Should Have Status ${resp} 200
Response Should Contain Keys ${resp} total created updated errors_count duration_seconds