[RIC-621] Add redis monitor verification to automation tests
[ric-plt/e2mgr.git] / Automation / Tests / Add_ENB / Add_ENB_Happy.robot
index 44f4578..970a151 100644 (file)
@@ -27,6 +27,8 @@ 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}
 
 
@@ -35,6 +37,9 @@ ${url}  ${e2mgr_address}
 
 *** Test Cases ***
 
+Prepare Redis Monitor Log
+    Start Redis Monitor
+
 Add eNB
     Sleep  2s
     Add eNb Request
@@ -44,9 +49,15 @@ Add eNB
     String   response body nodeType     ENB
     String   response body enb enbType    MACRO_ENB
 
+prepare logs for tests
+    Remove log files
+    Save logs
 
+Redis Monitor Logs - Verify Publish
+    Redis Monitor Logs - Verify Publish To Manipulation Channel    ${enb_ran_name}    ADDED
 
-
+[Teardown]
+    Stop Redis Monitor