FIX: Nanobot cleanup, bugfixes, and features
[it/test.git] / ric_robot_suite / helm / nanobot / configmap-src / public / testsuites / update_ric_page.robot
diff --git a/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/update_ric_page.robot b/ric_robot_suite/helm/nanobot/configmap-src/public/testsuites/update_ric_page.robot
new file mode 100644 (file)
index 0000000..a2efd1c
--- /dev/null
@@ -0,0 +1,28 @@
+*** Settings ***
+Documentation    Initializes RIC Test Web Page and Password
+
+Library    Collections
+Library    OperatingSystem
+Library    StringTemplater
+
+
+Test Timeout    5 minutes
+
+*** Variables ***
+${URLS_HTML_TEMPLATE}   robot/assets/templates/web/index.html.template
+
+${HOSTS_PREFIX}   vm
+${WEB_USER}       test
+${WEB_PASSWORD}
+
+${URLS_HTML}   html/index.html
+${CREDENTIALS_FILE}   /etc/lighttpd/authorization
+#${CREDENTIALS_FILE}   authorization
+
+*** Test Cases ***
+Update RIC Page
+    [Tags]   UpdateWebPage
+    Run Keyword If   '${WEB_PASSWORD}' == ''   Fail   "WEB Password must not be empty"
+    Run Keyword If   '${WEB_PASSWORD}' != ''   Create File   ${CREDENTIALS_FILE}   ${WEB_USER}:${WEB_PASSWORD}
+
+*** Keywords ***