diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-09-25 21:56:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-25 21:56:55 +0000 |
commit | 75c8ee55c18091319352bdf7fb7bbd8b798af79c (patch) | |
tree | 33eec9c7c6e9a18dc7b0edde12c361583d9c5073 /test/csit/tests/vid/healthCheck | |
parent | 11d2e6675210e02b6dcd246f2282420e1104ee88 (diff) | |
parent | e1209709281f0aba0fb4bb2e3ef529bb9c8b0114 (diff) |
Merge "Add csit healthcheck test"
Diffstat (limited to 'test/csit/tests/vid/healthCheck')
-rw-r--r-- | test/csit/tests/vid/healthCheck/__init__.robot | 2 | ||||
-rw-r--r-- | test/csit/tests/vid/healthCheck/test1.robot | 15 |
2 files changed, 17 insertions, 0 deletions
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 |