Added Robot test for Healthcheck
[integration/csit.git] / tests / so / vnfm_adapter / vnfm_adapter_test.robot
diff --git a/tests/so/vnfm_adapter/vnfm_adapter_test.robot b/tests/so/vnfm_adapter/vnfm_adapter_test.robot
new file mode 100644 (file)
index 0000000..d0c7034
--- /dev/null
@@ -0,0 +1,16 @@
+*** Settings ***
+Library     Collections
+Library     RequestsLibrary
+Library     OperatingSystem
+Library     json
+
+*** Variables ***
+
+
+*** Test Cases ***
+
+Healthcheck
+    Create Session   refrepo  http://${REPO_IP}:9092
+    &{headers}=  Create Dictionary    Authorization=Basic dm5mbTpwYXNzd29yZDEk==    Content-Type=application/json
+    ${resp}=    Get Request    refrepo    /manage/health    headers=${headers}
+    Run Keyword If  '${resp.status_code}' == 'UP'   log to console  \nexecuted with expected result