Init Environment And Validate
Stop All Pods Except Simulator
Restart simulator
- Wait until keyword succeeds 1 min 10 sec Validate Required Dockers 1
+ Wait until keyword succeeds 2 min 10 sec Validate Required Dockers 1
Start E2 Manager
Start Dbass
- Wait until keyword succeeds 1 min 10 sec Validate Required Dockers 3
+ Wait until keyword succeeds 2 min 10 sec Validate Required Dockers 3
Start Routing Manager
- Wait until keyword succeeds 1 min 10 sec Validate Required Dockers 4
+ Wait until keyword succeeds 2 min 10 sec Validate Required Dockers 4
Start E2
- Wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ Wait until keyword succeeds 2 min 10 sec Validate Required Dockers
*** Settings ***
Variables ../Scripts/variables.py
-Suite Setup Prepare Enviorment ${False}
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
-Library Process
Library ../Scripts/log_scripts.py
Library REST ${url}
${url} ${e2mgr_address}
*** Test Cases ***
-
-Prepare Redis Monitor Log
+[Setup]
Start Redis Monitor
+ Prepare Enviorment ${False}
Add eNB
Sleep 2s
*** Settings ***
Variables ../Scripts/variables.py
-Suite Setup Prepare Enviorment ${False}
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
*** Test Cases ***
-Prepare Redis Monitor Log
+[Setup]
Start Redis Monitor
+ Prepare Enviorment ${False}
Add eNB
Sleep 2s
Stop Routing Manager
Flush And Populate DB
Start Routing Manager
- wait until keyword succeeds 1 min 10 sec Validate Required Dockers ${pods_number-1}
+ wait until keyword succeeds 2 min 10 sec Validate Required Dockers ${pods_number-1}
Start E2
- wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ wait until keyword succeeds 2 min 10 sec Validate Required Dockers
Prepare Logs For Tests
Remove log files
Disable ric and restart simulator
${result} e2mdbscripts.set_enable_ric_false
Restart simulator
- wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ wait until keyword succeeds 2 min 10 sec Validate Required Dockers
prepare logs for tests
Remove log files
Stop routing manager and restarting gnb simulator
Stop Routing Manager
Restart simulator
- wait until keyword succeeds 1 min 10 sec Validate Required Dockers ${pods_number-1}
+ wait until keyword succeeds 2 min 10 sec Validate Required Dockers ${pods_number-1}
prepare logs for tests
Remove log files
${result} find_rmr_message.verify_logs ${EXECDIR} ${e2mgr_log_filename} ${Setup_failure_message_type} ${None}
Should Be Equal As Strings ${result} True
-
- Start Routing Manager
- AND wait until keyword succeeds 1 min 10 sec Validate Required Dockers
\ No newline at end of file
+[Teardown]
+ Run Keywords
+ Start Routing Manager
+ AND Wait Until Keyword Succeeds 2 min 10 sec Validate Required Dockers
\ No newline at end of file
Get all node ids
- GET v1/nodeb/ids
+ &{res}= GET v1/nodeb/states
Sleep 2s
Integer response status 200
- #Verify eNB node
- String response body 0 inventoryName ${enb_ran_name}
- String response body 0 connectionStatus DISCONNECTED
- String response body 0 globalNbId plmnId def
- String response body 0 globalNbId nbId abc
-
- #Verify gNB node
- String response body 1 inventoryName ${ranName}
-# String response body 1 connectionStatus CONNECTED
-# String response body 1 nodeType GNB
- String response body 1 globalNbId plmnId 02F829
- String response body 1 globalNbId nbId 001100000011000000110000
-
+ ${is_enb_first}= set variable if '${enb_ran_name}'=='${res.body[0].inventoryName}' True False
+
+ run keyword if ${is_enb_first} RUN KEYWORDS
+... String response body 1 inventoryName ${ranName}
+... AND String response body 1 globalNbId plmnId 02F829
+... AND String response body 1 globalNbId nbId 001100000011000000110000
+... AND String response body 0 inventoryName ${enb_ran_name}
+... AND String response body 0 connectionStatus DISCONNECTED
+... AND String response body 0 globalNbId plmnId def
+... AND String response body 0 globalNbId nbId abc
+... AND Log To Console enb index is 0 - all rans were verified successfully
+
+... ELSE RUN KEYWORDS
+... String response body 0 inventoryName ${ranName}
+... AND String response body 0 globalNbId plmnId 02F829
+... AND String response body 0 globalNbId nbId 001100000011000000110000
+... AND String response body 1 inventoryName ${enb_ran_name}
+... AND String response body 1 connectionStatus DISCONNECTED
+... AND String response body 1 globalNbId plmnId def
+... AND String response body 1 globalNbId nbId abc
+... AND Log To Console enb index is 1 - all rans were verified successfully
Prepare Logs For Tests
Remove log files
Remove log files
Save logs
-[Teardown] Run Keywords
- Start Dbass
- AND wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+[Teardown]
+ Run Keywords
+ Start Dbass
+ AND wait until keyword succeeds 2 min 10 sec Validate Required Dockers
Resource ../Resource/Keywords.robot
Library ../Scripts/find_error_script.py
Library ../Scripts/find_rmr_message.py
-Library ../Scripts/rsmscripts.py
Library ../Scripts/e2mdbscripts.py
Library OperatingSystem
Library Collections
[Teardown] Run Keywords
Start E2
- AND wait until keyword succeeds 1 min 10 sec Validate Required Dockers
\ No newline at end of file
+ AND wait until keyword succeeds 2 min 10 sec Validate Required Dockers
\ No newline at end of file
[Teardown] Run Keywords
Start Simulator
- AND wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ AND wait until keyword succeeds 2 min 10 sec Validate Required Dockers
AND Stop Redis Monitor
\ No newline at end of file
*** Settings ***
Variables ../Scripts/variables.py
-Suite Setup Prepare Enviorment ${True}
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource red_button_keywords.robot
*** Test Cases ***
-Prepare Redis Monitor Log
+[Setup]
Start Redis Monitor
+ Prepare Enviorment ${True}
Verify gnb nodeb connection status is CONNECTED and it's associated to an e2t instance
Verify connected and associated
*** Settings ***
Variables ../Scripts/variables.py
-Suite Setup Prepare Enviorment ${True}
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource red_button_keywords.robot
*** Test Cases ***
-Prepare Redis Monitor Log
+[Setup]
Start Redis Monitor
+ Prepare Enviorment ${True}
Verify gnb nodeb connection status is CONNECTED and it's associated to an e2t instance
Verify connected and associated
Restart simulator
Restart simulator
- wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ wait until keyword succeeds 2 min 10 sec Validate Required Dockers
Verify gnb nodeb connection status is CONNECTED and it's associated to an e2t instance - checking again
Verify connected and associated
*** Settings ***
Variables ../Scripts/variables.py
-Suite Setup Prepare Enviorment ${True}
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Resource red_button_keywords.robot
*** Test Cases ***
-Prepare Redis Monitor Log
+[Setup]
Start Redis Monitor
+ Prepare Enviorment ${True}
Verify nodeb connection status is CONNECTED and it's associated to an e2t instance
Verify connected and associated
Init logs
Flush And Populate DB ${set_new_timestamp}
Run keyword if ${need_to_restart_pods}==${True} Restart RM and GNB Simulator
- Wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ Wait until keyword succeeds 2 min 10 sec Validate Required Dockers
Restart RM and GNB Simulator
Restart routing manager
- Wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ Wait until keyword succeeds 2 min 10 sec Validate Required Dockers
Restart simulator
Stop Simulator
log to console Stopping gnbe2 simulator
Run And Return Rc And Output ${stop_simu}
- Sleep 50s
+ Sleep 70s
Start Simulator
log to console Starting gnbe2 simulator
Redis Monitor Logs - Verify Publish To Manipulation Channel
- [Arguments] ${ran_name} ${string}
+ [Arguments] ${ran_name} ${event}
Log To Console Verify Publish To Manipulation Channel
- ${result}= log_scripts.verify_redis_monitor_manipulation_message ${EXECDIR}/${redis_monitor_log_filename} ${ran_name} ${string}
+ ${result}= log_scripts.verify_redis_monitor_manipulation_message ${EXECDIR}/${redis_monitor_log_filename} ${ran_name} ${event}
Should Be Equal As Strings ${result} True
Redis Monitor Logs - Verify Publish To Connection Status Channel
- [Arguments] ${ran_name} ${string}
+ [Arguments] ${ran_name} ${event}
Log To Console Verify Publish To Connection Status Channel
- ${result}= log_scripts.verify_redis_monitor_connection_status_message ${EXECDIR}/${redis_monitor_log_filename} ${ran_name} ${string}
+ ${result}= log_scripts.verify_redis_monitor_connection_status_message ${EXECDIR}/${redis_monitor_log_filename} ${ran_name} ${event}
Should Be Equal As Strings ${result} True
-
return False
-def verify_redis_monitor_manipulation_message(file_path, ran_name, action):
- message = "\"PUBLISH\" \"{e2Manager},RAN_MANIPULATION\" \"" + ran_name + "_" + action + "\""
+def verify_redis_monitor_manipulation_message(file_path, ran_name, event):
+ message = "\"PUBLISH\" \"{e2Manager},RAN_MANIPULATION\" \"" + ran_name + "_" + event + "\""
return verify_log_message(file_path, message)
-def verify_redis_monitor_connection_status_message(file_path, ran_name, status):
- message = "\"PUBLISH\" \"{e2Manager},RAN_CONNECTION_STATUS_CHANGE\" \"" + ran_name + "_" + status + "\""
+def verify_redis_monitor_connection_status_message(file_path, ran_name, event):
+ message = "\"PUBLISH\" \"{e2Manager},RAN_CONNECTION_STATUS_CHANGE\" \"" + ran_name + "_" + event + "\""
return verify_log_message(file_path, message)
Stop Routing manager simulator and restarting simulator
Stop Routing Manager
restart simulator
- wait until keyword succeeds 1 min 10 sec Validate Required Dockers ${pods_number-1}
+ wait until keyword succeeds 2 min 10 sec Validate Required Dockers ${pods_number-1}
prepare logs for tests
Remove log files
[Teardown] Run Keywords
Start Routing Manager
- AND wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ AND wait until keyword succeeds 2 min 10 sec Validate Required Dockers
[Teardown] Run Keywords
Start Dbass
- AND wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ AND wait until keyword succeeds 2 min 10 sec Validate Required Dockers
[Teardown] Run Keywords
Start Dbass
- AND wait until keyword succeeds 1 min 10 sec Validate Required Dockers
\ No newline at end of file
+ AND wait until keyword succeeds 2 min 10 sec Validate Required Dockers
\ No newline at end of file
[Teardown] Run Keywords
Start Dbass
- AND wait until keyword succeeds 1 min 10 sec Validate Required Dockers
\ No newline at end of file
+ AND wait until keyword succeeds 2 min 10 sec Validate Required Dockers
\ No newline at end of file
*** Settings ***
Variables ../Scripts/variables.py
-Suite Setup Prepare Enviorment ${False}
Resource ../Resource/resource.robot
Resource ../Resource/Keywords.robot
Library OperatingSystem
*** Test Cases ***
-Prepare Redis Monitor Log
+[Setup]
Start Redis Monitor
+ Prepare Enviorment ${False}
Add eNB
Sleep 2s