backup
This commit is contained in:
29
tests/robot/api/health.robot
Normal file
29
tests/robot/api/health.robot
Normal 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
|
||||
Reference in New Issue
Block a user