[RIC-196] Update variables naming & add UT
[ric-plt/e2mgr.git] / Automation / Tests / Lost_Connection / Lost_Connetion_CONNECTING_TO_DISCONNECTED.robot
index 8415c47..e9f18b8 100644 (file)
 #   limitations under the License.
 #
 ##############################################################################
+#
+#   This source code is part of the near-RT RIC (RAN Intelligent Controller)
+#   platform project (RICP).
+#
 *** Settings ***
 Suite Setup   Prepare Enviorment
 Resource   ../Resource/resource.robot
@@ -24,21 +28,18 @@ Library    Collections
 Library     REST      ${url}
 
 
-
-
-
 *** Test Cases ***
 
 Pre Condition for Connecting - no simu
     Run And Return Rc And Output    ${stop_simu}
     ${result}=  Run And Return Rc And Output     ${docker_command}
-    Should Be Equal As Integers    ${result[1]}    4
+    Should Be Equal As Integers    ${result[1]}    ${docker_number-1}
 
 
 Prepare Ran in Connecting connectionStatus
     Sleep  1s
     Post Request setup node b x-2
-    Integer     response status       200
+    Integer     response status       204
     Sleep  1s
     GET      /v1/nodeb/test1
     Integer  response status  200
@@ -46,12 +47,9 @@ Prepare Ran in Connecting connectionStatus
     #String   response body connectionStatus    CONNECTING
 
 
-
-Verfiy Disconnected ConnectionStatus
-    Sleep    1s
+Verify Disconnected ConnectionStatus
+    Sleep    10s
     GET      /v1/nodeb/test1
     Integer  response status  200
     String   response body ranName    test1
-    String   response body connectionStatus    DISCONNECTED
-    Integer   response body connectionAttempts    3
-
+    String   response body connectionStatus    DISCONNECTED
\ No newline at end of file