Files
Aniworld/tests/robot/api/nfo.robot
Lukas ac02dfd5c6 Complete Task 7 prep: add series setup to NFO repair test
Remove obsolete Task 6 from docs (logging download - either fixed or abandoned).
Add series to library before repair call in test - ensures series exists in DB.
2026-06-28 16:31:54 +02:00

55 lines
2.4 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
Response Should Have Status ${resp} 200
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