Merge "removing failing tests"
[integration/test.git] / test / csit / suites / karaf-compatible / 050__AD_SAL_Apps / 020__static_route.txt
index 48851c86eb41b37506399148150290b2998f42d3..86b20c50181509991c4f55312c6d0f6871d6bfe1 100644 (file)
@@ -1,6 +1,6 @@
 *** Settings ***
 Documentation     Test suite for Static Route
-Suite Setup       Create Session   session   http://${CONTROLLER}:${RESTPORT}   auth=${AUTH}   headers=${HEADERS}
+Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTPORT}    auth=${AUTH}    headers=${HEADERS}
 Suite Teardown    Delete All Sessions
 Library           SSHLibrary
 Library           Collections
@@ -12,7 +12,7 @@ Variables         ../../../variables/Variables.py
 ${name}           test_route1
 ${key}            staticRoute
 ${REST_CONTEXT}    /controller/nb/v2/staticroute
-${REST_CONTEXT_HT}   /controller/nb/v2/hosttracker
+${REST_CONTEXT_HT}    /controller/nb/v2/hosttracker
 
 *** Test Cases ***
 Add a static route
@@ -20,32 +20,32 @@ Add a static route
     [Tags]    apps
     ${body}    Create Dictionary    name    ${name}    prefix    192.168.1.0/24    nextHop
     ...    10.0.0.2
-    ${resp}    Put    session    ${REST_CONTEXT}/${CONTAINER}/route/${name}    data=${body}
+    ${resp}    RequestsLibrary.Put    session    ${REST_CONTEXT}/${CONTAINER}/route/${name}    data=${body}
     Should Be Equal As Strings    ${resp.status_code}    201
-    ${resp}    Get    session    ${REST_CONTEXT}/${CONTAINER}/routes
+    ${resp}    RequestsLibrary.Get    session    ${REST_CONTEXT}/${CONTAINER}/routes
     Should Be Equal As Strings    ${resp.status_code}    200    Response status code error
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Contain Value    ${content}    ${body}
     Sleep    30
-#     This works locally but NOT in OpenDaylight
-#Check flow in flow stats
-#    [Documentation]    Show flow stats and validate result
-#    [Tags]    apps
-#    ${resp}    Get    session    ${REST_CONTEXT_ST}/${CONTAINER}/flow
-#    Should Be Equal As Strings    ${resp.status_code}    200 
-#    Log    ${resp.content}
-#    Should Contain X Times    ${resp.content}    10.0.0.2     3
+    #    This works locally but NOT in OpenDaylight
+    #Check flow in flow stats
+    #    [Documentation]    Show flow stats and validate result
+    #    [Tags]    apps
+    #    ${resp}    Get    session    ${REST_CONTEXT_ST}/${CONTAINER}/flow
+    #    Should Be Equal As Strings    ${resp.status_code}    200
+    #    Log    ${resp.content}
+    #    Should Contain X Times    ${resp.content}    10.0.0.2    3
+
 Remove a static route
     [Documentation]    Remove a static route, list to validate the result.
     [Tags]    apps
     ${body}    Create Dictionary    name    ${name}    prefix    192.168.1.0/24    nextHop
     ...    10.0.0.2
-    ${resp}    Delete    session    ${REST_CONTEXT}/${CONTAINER}/route/${name}
+    ${resp}    RequestsLibrary.Delete    session    ${REST_CONTEXT}/${CONTAINER}/route/${name}
     Should Be Equal As Strings    ${resp.status_code}    204
-    ${resp}    Get    session    ${REST_CONTEXT}/${CONTAINER}/routes
+    ${resp}    RequestsLibrary.Get    session    ${REST_CONTEXT}/${CONTAINER}/routes
     Should Be Equal As Strings    ${resp.status_code}    200
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Not Contain Value    ${content}    ${body}
-