Added timer & change status to connected state.
[ric-plt/e2mgr.git] / Automation / Tests / GetNodeB-GNB / GetNodeB-GNB_test.robot
index 26a21ed..e4367e9 100644 (file)
 
 *** Settings ***
 Variables  ../Scripts/variables.py
-Suite Setup   Prepare Enviorment    ${True}
 Resource   ../Resource/resource.robot
 Resource   ../Resource/Keywords.robot
 Library     OperatingSystem
 Library     ../Scripts/find_rmr_message.py
-Library     ../Scripts/rsmscripts.py
+Library     ../Scripts/log_scripts.py
 Library     REST        ${url}
 
 *** Variables ***
@@ -39,10 +38,16 @@ ${url}  ${e2mgr_address}
 
 *** Test Cases ***
 
+[Setup]
+    Start Redis Monitor
+    AND Prepare Enviorment    ${True}
+
+Redis Monitor Logs - Verify Publish
+    Redis Monitor Logs - Verify Publish To Connection Status Channel   ${ran_name}    CONNECTED
 
 Get request gnb
     Sleep    2s
-    Get Request node b gnb
+    Get Request nodeb
     Integer  response status  200
     String   response body ranName    ${ranname}
     String   response body connectionStatus    CONNECTED
@@ -54,9 +59,11 @@ Get request gnb
     Integer  response body gnb ranFunctions 1 ranFunctionRevision  1
     Integer  response body gnb ranFunctions 2 ranFunctionId  3
     Integer  response body gnb ranFunctions 2 ranFunctionRevision  1
-
+    Boolean  response body setupFromNetwork    true
 
 Prepare Logs For Tests
     Remove log files
     Save logs
 
+[Teardown]
+    Stop Redis Monitor
\ No newline at end of file