From e1209709281f0aba0fb4bb2e3ef529bb9c8b0114 Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Sun, 24 Sep 2017 17:43:28 +0300 Subject: Add csit healthcheck test Change-Id: Ib8389176e5e8480ce17d3c7dfb2a9b1be12c462c Issue-Id: VID-67 Signed-off-by: Yuli Shlosberg --- test/csit/tests/vid/healthCheck/__init__.robot | 2 ++ test/csit/tests/vid/healthCheck/test1.robot | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 test/csit/tests/vid/healthCheck/__init__.robot create mode 100644 test/csit/tests/vid/healthCheck/test1.robot (limited to 'test/csit/tests/vid/healthCheck') diff --git a/test/csit/tests/vid/healthCheck/__init__.robot b/test/csit/tests/vid/healthCheck/__init__.robot new file mode 100644 index 000000000..b71d350bb --- /dev/null +++ b/test/csit/tests/vid/healthCheck/__init__.robot @@ -0,0 +1,2 @@ +*** Settings *** +Documentation VID - HealthCheck diff --git a/test/csit/tests/vid/healthCheck/test1.robot b/test/csit/tests/vid/healthCheck/test1.robot new file mode 100644 index 000000000..8f9448d8f --- /dev/null +++ b/test/csit/tests/vid/healthCheck/test1.robot @@ -0,0 +1,15 @@ +*** Settings *** +Library Collections +Library OperatingSystem +Library RequestsLibrary +Library json + +*** Test Cases *** +Get Requests health check ok + [Tags] get + CreateSession vid http://localhost:8080 + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Get Request vid /vid/healthCheck headers=&{headers} + Should Be Equal As Strings ${resp.status_code} 200 + Log to console statusCode: ${resp.json()['statusCode']} + Should Be Equal As Strings ${resp.json()['statusCode']} 200 -- cgit 1.2.3-korg