[Issue-Id:RIC-150] Enhancement to it/test repo
[it/test.git] / ric_robot_suite / helm / nanobot / configmap-src / public / resources / e2term_interface.robot
1 *** Settings *** 
2 Documentation     The main interface for interacting with RIC E2 Term (E2term). 
3 ...                It handles low level stuff like managing the http request library and 
4 ...                E2term required fields 
5 Library           RequestsLibrary 
6 Library           UUID 
7 Library           Process 
8 Library           Collections 
9 Library           OperatingSystem 
10
11 Resource          /robot/resources/global_properties.robot 
12 Resource          /robot/resources/json_templater.robot 
13
14
15 *** Variables *** 
16 ${E2TERM_ENDPOINT}      ${GLOBAL_INJECTED_E2TERM_IP_ADDR}:${GLOBAL_E2TERM_SERVER_PORT} 
17
18
19 *** Keywords *** 
20 Run E2Term Health Check 
21      [Documentation]  Runs E2Term Health check 
22      Log To Console     Entering in to E2term 
23      ${data_path}=    Set Variable    ${E2TERM_ENDPOINT} 
24      ${resp} =  Run E2Term RMR Probe Check      ${data_path} 
25      Log To Console     ${resp} 
26
27 Run E2Term RMR Probe Check 
28      [Documentation]    Runs E2Term RMR Probe Check 
29      [Arguments]        ${data_path} 
30
31      ${resp} =  Run     /bin/sh -c "/opt/e2/rmr_probe -h ${data_path} -v verbose" 
32      Log To Console     Received response from E2term ${resp} 
33      ${ret} =   Should Match Regexp     ${resp} OK 
34      Log To Console     ${ret} 
35      [Return]    ${ret}