This commit is contained in:
2026-06-21 12:32:44 +02:00
parent 107158eb04
commit be3e180137
27 changed files with 5037 additions and 20 deletions

View File

@@ -0,0 +1,29 @@
*** Settings ***
Documentation Health check API tests for Aniworld.
... Covers basic and detailed health endpoints.
Resource ${CURDIR}/../resources/common.resource
Resource ${CURDIR}/../resources/api_keywords.resource
Test Setup Create Anonymous Session
Test Teardown Delete All Sessions
*** Test Cases ***
# ---------------------------------------------------------------------------
# Basic Health
# ---------------------------------------------------------------------------
Basic Health Check
[Documentation] Verify the basic health endpoint returns 200.
${resp}= GET On Session anon /health expected_status=200
Response Should Have Status ${resp} 200
${status}= Get JSON Value ${resp} $.status
Should Be Equal As Strings ${status} healthy
# ---------------------------------------------------------------------------
# Detailed Health
# ---------------------------------------------------------------------------
Detailed Health Check
[Documentation] Verify the detailed health endpoint returns metrics.
${resp}= GET On Session anon /health/detailed expected_status=200
Response Should Have Status ${resp} 200
Response Should Contain Keys ${resp} status version uptime memory cpu