Files
Aniworld/tests/robot/api/health.robot
2026-06-21 12:32:44 +02:00

30 lines
1.3 KiB
Plaintext

*** 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