[RIC-571] Add Automation tests + bug fix in Setup of existing eNB flow
[ric-plt/e2mgr.git] / Automation / Tests / E2_Setup_Failure / RM_Error_Setup_Failure.robot
index aca558f..2b6af11 100644 (file)
 
 
 *** Settings ***
+Variables  ../Scripts/variables.py
 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     REST        ${url}
-Suite Teardown  Start RoutingManager Simulator
+
+*** Variables ***
+${url}  ${e2mgr_address}
 
 
 *** Test Cases ***
-Stop Routing manager simulator and restarting simulator
-    Stop RoutingManager Simulator
-    Restart simulator with less docker
+Stop routing manager and restarting gnb simulator
+    Stop Routing Manager
+    Restart simulator
+    wait until keyword succeeds  2 min    10 sec    Validate Required Dockers    ${pods_number-1}
 
 prepare logs for tests
     Remove log files
@@ -43,7 +46,7 @@ prepare logs for tests
 
 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    DISCONNECTED
@@ -57,4 +60,9 @@ Get request gnb
 
 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
\ No newline at end of file
+    Should Be Equal As Strings    ${result}      True
+
+[Teardown]
+    Run Keywords
+    Start Routing Manager
+    AND Wait Until Keyword Succeeds  2 min    10 sec    Validate Required Dockers
\ No newline at end of file