aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/robotframework/tests
diff options
context:
space:
mode:
authorJulienBe <julien.bertozzi@intl.att.com>2020-05-14 17:40:52 +0200
committerJulienBe <julien.bertozzi@intl.att.com>2020-07-03 14:40:56 +0200
commit09da64aa760f0025900abff02687fea4e9f40ccf (patch)
treecd4572a3e46eaf99e98750cb6b50bf6a0e3e330a /src/test/resources/robotframework/tests
parenta717dcd2aa3ff3938c9adf0994936009c351948d (diff)
add robotframework to integration tests
Issue-ID: CLAMP-844 Signed-off-by: JulienBe <julien.bertozzi@intl.att.com> Change-Id: Ie5c40477f42fcf26f5fef6c1742e34a2eee7f73d
Diffstat (limited to 'src/test/resources/robotframework/tests')
-rw-r--r--src/test/resources/robotframework/tests/01_healthcheck.robot19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/resources/robotframework/tests/01_healthcheck.robot b/src/test/resources/robotframework/tests/01_healthcheck.robot
new file mode 100644
index 000000000..f19266781
--- /dev/null
+++ b/src/test/resources/robotframework/tests/01_healthcheck.robot
@@ -0,0 +1,19 @@
+*** Settings ***
+Library Collections
+Library RequestsLibrary
+Library OperatingSystem
+Library json
+Library OperatingSystem
+*** Variables ***
+${login} admin
+${passw} password
+*** Keywords ***
+Create the sessions
+*** Test Cases ***
+Get Requests health check ok
+ ${port} = Get Environment Variable CLAMP_PORT
+ ${auth}= Create List ${login} ${passw}
+ Create Session clamp http://localhost:${port} auth=${auth} disable_warnings=1
+ Set Global Variable ${clamp_session} clamp
+ ${resp}= Get Request ${clamp_session} /restservices/clds/v1/healthcheck
+ Should Be Equal As Strings ${resp.status_code} 200 \ No newline at end of file