From: ec472j Date: Thu, 23 Apr 2020 13:50:22 +0000 (+0300) Subject: add verification for setup failure rmr message X-Git-Tag: R5_RC~88^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F3430%2F1;p=ric-plt%2Fe2mgr.git add verification for setup failure rmr message Change-Id: Ic39ed1a0450c43be0302cdd1002b2d7bb6aaeaf2 Signed-off-by: ec472j --- diff --git a/Automation/Tests/Resource/scripts_variables.robot b/Automation/Tests/Resource/scripts_variables.robot index faa8604..89dc05a 100644 --- a/Automation/Tests/Resource/scripts_variables.robot +++ b/Automation/Tests/Resource/scripts_variables.robot @@ -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 diff --git a/Automation/Tests/Setup_Failure/Setup_failure.robot b/Automation/Tests/Setup_Failure/Setup_failure.robot index ebc0bc5..052579b 100644 --- a/Automation/Tests/Setup_Failure/Setup_failure.robot +++ b/Automation/Tests/Setup_Failure/Setup_failure.robot @@ -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 + diff --git a/Automation/Tests/Update_Ran/Update_ran_Unhappy.robot b/Automation/Tests/Update_Ran/Update_ran_Unhappy.robot index 25fd953..3b00667 100644 --- a/Automation/Tests/Update_Ran/Update_ran_Unhappy.robot +++ b/Automation/Tests/Update_Ran/Update_ran_Unhappy.robot @@ -25,10 +25,7 @@ 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} diff --git a/Automation/Tests/Update_Ran/Update_ran_happy.robot b/Automation/Tests/Update_Ran/Update_ran_happy.robot index f583d21..0b104d2 100644 --- a/Automation/Tests/Update_Ran/Update_ran_happy.robot +++ b/Automation/Tests/Update_Ran/Update_ran_happy.robot @@ -25,10 +25,7 @@ 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}