<RIC-194> add verification for setup failure rmr message 30/3430/1
authorec472j <ec472j@att.com>
Thu, 23 Apr 2020 13:50:22 +0000 (16:50 +0300)
committerec472j <ec472j@att.com>
Thu, 23 Apr 2020 13:50:33 +0000 (16:50 +0300)
Change-Id: Ic39ed1a0450c43be0302cdd1002b2d7bb6aaeaf2
Signed-off-by: ec472j <ec472j@att.com>
Automation/Tests/Resource/scripts_variables.robot
Automation/Tests/Setup_Failure/Setup_failure.robot
Automation/Tests/Update_Ran/Update_ran_Unhappy.robot
Automation/Tests/Update_Ran/Update_ran_happy.robot

index faa8604..89dc05a 100644 (file)
@@ -27,6 +27,7 @@ Documentation    Message types resource file
 *** Variables ***
 
 ${E2_INIT_message_type}    MType: 1100
+${Setup_failure_message_type}    MType: 12003
 ${first_retry_to_retrieve_from_db}      RnibDataService.retry - retrying 1 GetNodeb
 ${third_retry_to_retrieve_from_db}      RnibDataService.retry - after 3 attempts of GetNodeb
 ${RIC_RES_STATUS_REQ_message_type_successfully_sent}     Message type: 10090 - Successfully sent RMR message
index ebc0bc5..052579b 100644 (file)
@@ -28,7 +28,6 @@ Resource   ../Resource/Keywords.robot
 Resource    ../Resource/scripts_variables.robot
 Library     OperatingSystem
 Library     ../Scripts/find_rmr_message.py
-Library     ../Scripts/rsmscripts.py
 Library     REST        ${url}
 Suite Teardown  Start RoutingManager Simulator
 
@@ -40,6 +39,10 @@ Stop Routing manager simulator and restarting simulator
     Stop RoutingManager Simulator
     Restart simulator with less docker
 
+prepare logs for tests
+    Remove log files
+    Save logs
+
 Get request gnb
     Sleep    2s
     Get Request node b gnb
@@ -54,6 +57,10 @@ Get request gnb
     Integer  response body gnb ranFunctions 2 ranFunctionId  3
     Integer  response body gnb ranFunctions 2 ranFunctionRevision  1
 
+E2M Logs - Verify RMR Message
+    ${result}    find_rmr_message.verify_logs   ${EXECDIR}   ${e2mgr_log_filename}  ${Setup_failure_message_type}    ${None}
+    Should Be Equal As Strings    ${result}      True
+
 
 
 
index 25fd953..3b00667 100644 (file)
 Suite Setup   Prepare Enviorment
 Resource   ../Resource/resource.robot
 Resource   ../Resource/Keywords.robot
-Resource    ../Resource/scripts_variables.robot
 Library     OperatingSystem
-Library     ../Scripts/find_rmr_message.py
-Library     ../Scripts/rsmscripts.py
 Library     REST        ${url}
 
 
index f583d21..0b104d2 100644 (file)
 Suite Setup   Prepare Enviorment
 Resource   ../Resource/resource.robot
 Resource   ../Resource/Keywords.robot
-Resource    ../Resource/scripts_variables.robot
 Library     OperatingSystem
-Library     ../Scripts/find_rmr_message.py
-Library     ../Scripts/rsmscripts.py
 Library     REST        ${url}