Merge "Add healthcheck test for Netconf Server"
[integration/csit.git] / tests / integration / nfsimulator / netconf-server / resources / netconf-server-keywords.robot
diff --git a/tests/integration/nfsimulator/netconf-server/resources/netconf-server-keywords.robot b/tests/integration/nfsimulator/netconf-server/resources/netconf-server-keywords.robot
new file mode 100644 (file)
index 0000000..94be035
--- /dev/null
@@ -0,0 +1,12 @@
+*** Settings ***
+Library              RequestsLibrary
+Resource          ./netconf-server-properties.robot
+
+*** Keywords ***
+
+Run Healthcheck
+    [Documentation]  Run Healthcheck
+    Create Session    netconf_server_session    ${NETCONF_SERVER_URL}
+    ${resp}=  GET On Session  netconf_server_session  /healthcheck
+    Should Be Equal As Strings         ${resp.status_code}  200
+    Should Be Equal As Strings  ${resp.text}  UP