a2efd1cd771bbdb535abe7cf74a991d955518098
[it/test.git] / ric_robot_suite / helm / nanobot / configmap-src / public / testsuites / update_ric_page.robot
1 *** Settings ***
2 Documentation     Initializes RIC Test Web Page and Password
3
4 Library    Collections
5 Library    OperatingSystem
6 Library    StringTemplater
7
8
9 Test Timeout    5 minutes
10
11 *** Variables ***
12 ${URLS_HTML_TEMPLATE}   robot/assets/templates/web/index.html.template
13
14 ${HOSTS_PREFIX}   vm
15 ${WEB_USER}       test
16 ${WEB_PASSWORD}
17
18 ${URLS_HTML}   html/index.html
19 ${CREDENTIALS_FILE}   /etc/lighttpd/authorization
20 #${CREDENTIALS_FILE}   authorization
21
22 *** Test Cases ***
23 Update RIC Page
24     [Tags]   UpdateWebPage
25     Run Keyword If   '${WEB_PASSWORD}' == ''   Fail   "WEB Password must not be empty"
26     Run Keyword If   '${WEB_PASSWORD}' != ''   Create File   ${CREDENTIALS_FILE}   ${WEB_USER}:${WEB_PASSWORD}
27
28 *** Keywords ***