Remove usage of removed RPC update-entry
[integration/test.git] / csit / suites / sxp / basic / 020_Restconf_CRUD.robot
index af518e67b2ea52cb2cc13fd030bd39ba75a9b296..a747f67d54ee2bdaf49e89dbda6855df10a9f190 100644 (file)
@@ -19,6 +19,16 @@ Test Add Bindings
     Add Bindings    30    2001:0:0:0:0:0:0:0/128
     Wait Until Keyword Succeeds    3x    250ms    Bindings Should Contain    30    2001:0:0:0:0:0:0:0/128
 
+Test Update Bindings
+    [Documentation]    Test if bindings can be updated to different SGT values by new incoming bindings for the same IP prefix
+    [Tags]    Restconf CRUD    SXP
+    Add Bindings    30    1.1.1.10/32
+    Wait Until Keyword Succeeds    3x    250ms    Bindings Should Contain    30    1.1.1.10/32
+    Sleep    1s    New binding must be at least 1s newer
+    Add Bindings    40    1.1.1.10/32
+    Wait Until Keyword Succeeds    3x    250ms    Bindings Should Not Contain    30    1.1.1.10/32
+    Wait Until Keyword Succeeds    3x    250ms    Bindings Should Contain    40    1.1.1.10/32
+
 Test Add Connection
     [Documentation]    Test if connections are added to Node
     [Tags]    Restconf CRUD    SXP
@@ -52,15 +62,6 @@ Test Delete Connection
     Wait Until Keyword Succeeds    3x    250ms    Connections Should Not Contain    127.1.0.30    60000    speaker
     ...    version4
 
-Test Update Binding
-    [Documentation]    Test if bindings can be updated to different values
-    [Tags]    Restconf CRUD    SXP
-    Add Bindings    3230    1.1.1.10/32
-    Wait Until Keyword Succeeds    3x    250ms    Bindings Should Contain    3230    1.1.1.10/32
-    Update Binding    3230    1.1.1.10/32    623    10.10.10.10/32
-    Wait Until Keyword Succeeds    3x    250ms    Bindings Should Not Contain    3230    1.1.1.10/32
-    Wait Until Keyword Succeeds    3x    250ms    Bindings Should Contain    623    10.10.10.10/32
-
 *** Keywords ***
 Clean Node
     Clean Bindings    127.0.0.1