51 lines
2.1 KiB
Plaintext
51 lines
2.1 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.
|
|
${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
|