Fix failing sfc test case 35/77435/5
authorJamo Luhrsen <jluhrsen@redhat.com>
Thu, 1 Nov 2018 18:13:56 +0000 (11:13 -0700)
committerJamo Luhrsen <jluhrsen@redhat.com>
Fri, 2 Nov 2018 18:18:01 +0000 (18:18 +0000)
[0] broke a test case. The syntax was wrong and not using
enough arguments. I only fixed the syntax and arguments.
I have no idea if the functionality intended will work
or not.

[0] https://git.opendaylight.org/gerrit/#/c/77258

Change-Id: Iaad136bc88f12dbab474037954cf7d04909b0754
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/libraries/SFC/SfcKeywords.robot
csit/suites/sfc/SFC_Basic/070__sfc_rendered_service_paths.robot

index b8a54ee285fdf1d68975a6d62c162e0421f8379f..943ac7b479482be009808269443c0507cc0c1ab4 100644 (file)
@@ -32,7 +32,7 @@ Check Service Function Types Removed
 
 Check Empty Service Function Paths State
     [Documentation]    Check that the service function paths state is empty after deleting SFPs
-    Utils.Check For Specific Number Of Elements At URI    ${SERVICE_FUNCTION_PATHS_STATE_URI}    service-function-path-state    0
+    Utils.No Content From URI    session    ${SERVICE_FUNCTION_PATH_STATE_URI}
 
 Check Rendered Service Path Created
     [Arguments]    ${sfp_name}
@@ -43,7 +43,7 @@ Check Rendered Service Path Created
 Check Rendered Service Path Deleted
     [Arguments]    ${sfp_name}
     [Documentation]    Check that the Rendered Service Path is deleted
-    Utils.No Content From URI ${SERVICE_FUNCTION_PATH_STATE_URI}/${sfp_name}
+    Utils.No Content From URI    session    ${SERVICE_FUNCTION_PATH_STATE_URI}/${sfp_name}
 
 Get Rendered Service Path Name
     [Arguments]    ${sfp_name}    ${get_reverse}=False
index 5b9cd03424345a59b4b4a08d4beb04d2dce14c14..b6f8f3b28f7d38933d53bea09c9f4d7b2a04905c 100644 (file)
@@ -172,7 +172,7 @@ Clean Datastore After Tests
     Utils.Remove All Elements At URI    ${SERVICE_NODES_URI}
     Utils.Remove All Elements At URI    ${SERVICE_CHAINS_URI}
     Utils.Remove All Elements At URI    ${SERVICE_SCHED_TYPES_URI}
-    Utils.Remove All Elements At URI    ${SERVICE_FUNCTION_PATHS_URI}
+    Utils.Remove All Elements If Exist    ${SERVICE_FUNCTION_PATHS_URI}
     BuiltIn.Wait Until Keyword Succeeds    60s    2s    SfcKeywords.Check Empty Service Function Paths State
 
 *** Keywords ***