FIX: Nanobot cleanup, bugfixes, and features
[it/test.git] / ric_robot_suite / robot / resources / e2sim / e2sim_tools.robot
1 *** Settings ***
2 Documentation     Routines for managing interactions with the E2 Simulator
3
4 Resource          ../global_properties.robot
5
6 Library           KubernetesEntity  ${NAMESPACE}
7 Library           E2SimUtils        ${DBHOST}     ${DBPORT}
8
9
10 *** Variables ***
11 ${DBHOST}         ${GLOBAL_INJECTED_DBAAS_IP_ADDR}
12 ${DBPORT}         ${GLOBAL_DBAAS_SERVER_PORT}
13 ${NAMESPACE}      ${GLOBAL_RICPLT_NAMESPACE}
14
15 *** Keywords ***
16 Generate RAN Name
17      [Documentation]    Generate a new RAN name suitable for use with E2
18      [Arguments]        ${ran_name_prefix}=${EMPTY}
19      ${resp} =          randomRANName   ${ran_name_prefix}
20      [Return]           ${resp}
21
22 Delete RAN Database Entry
23      [Documentation]                Delete the RNIB record for a specific RAN Name
24      [Arguments]                    ${ran_name}
25      ${gnbs} =                      gNodeBDelete    ${ran_name}
26      Dictionary Should Contain Key  ${gnbs}         ${ran_name}
27
28 Restart E2 Simulator
29      [Documentation]                Restart all E2Sim pods
30      [Arguments]                    ${deployment}=  ${GLOBAL_INJECTED_E2MGR_DEPLOYMENT} 
31      ${resp} =                      Redeploy        ${deployment}
32      [Return]                       ${resp}