aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/vvp
diff options
context:
space:
mode:
authorAlmog Laktivi <al942u@att.com>2017-11-16 12:58:43 +0200
committerAlmog Laktivi <al942u@att.com>2017-11-16 12:58:57 +0200
commitf0f635fcdcee897be32ba4962683cb884b21ccba (patch)
treec7ada2edf7b53784369e031bb2eb299e2a876b17 /test/csit/tests/vvp
parent3cad6f37aff90f01f161563741be7897b50a1188 (diff)
Add VVP tests scripts
Add the tests robots to create docker and validate health check Change-Id: I005cc095f54f9924c4e23ea4c9818a3774ffae90 Issue-ID: VVP-31 Signed-off-by: Almog Laktivi <al942u@att.com>
Diffstat (limited to 'test/csit/tests/vvp')
-rw-r--r--test/csit/tests/vvp/sanity/__init__.robot2
-rw-r--r--test/csit/tests/vvp/sanity/test1.robot19
2 files changed, 21 insertions, 0 deletions
diff --git a/test/csit/tests/vvp/sanity/__init__.robot b/test/csit/tests/vvp/sanity/__init__.robot
new file mode 100644
index 000000000..6bc0362e8
--- /dev/null
+++ b/test/csit/tests/vvp/sanity/__init__.robot
@@ -0,0 +1,2 @@
+*** Settings ***
+Documentation VVP - HealthCheck
diff --git a/test/csit/tests/vvp/sanity/test1.robot b/test/csit/tests/vvp/sanity/test1.robot
new file mode 100644
index 000000000..21e1b5e7a
--- /dev/null
+++ b/test/csit/tests/vvp/sanity/test1.robot
@@ -0,0 +1,19 @@
+*** Settings ***
+Library Collections
+Library OperatingSystem
+Library RequestsLibrary
+Library json
+
+# http://localhost:8000/vvp/v1/engmgr/vendors
+# vvp-engagementmgr
+
+*** Test Cases ***
+Get Requests health check ok
+ [Tags] get
+ CreateSession vvp-engagementmgr http://localhost:8000
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
+ ${resp}= Get Request vvp-engagementmgr /vvp/v1/engmgr/vendors headers=&{headers}
+ Should Be Equal As Strings ${resp.status_code} 200
+ @{ITEMS}= Copy List ${resp.json()}
+ : FOR ${ELEMENT} IN @{ITEMS}
+ \ Log ${ELEMENT['uuid']} ${ELEMENT['name']}