aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/robotframework/tests/01_healthcheck.robot
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources/robotframework/tests/01_healthcheck.robot')
-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 00000000..f1926678
--- /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