Merge "removing failing tests"
[integration/test.git] / test / csit / suites / karaf-compatible / 030__AD_SAL_NSF / 010__switch_manager.txt
index 208f110bc85294264a628a9f5982bf3260f601d6..43f6bf3b95017d36e914e3911359c0639d629e83 100644 (file)
@@ -18,52 +18,57 @@ List all nodes
     [Tags]    adsal
     Log    ${TOPO_TREE_LEVEL}
     ${topo_nodes}    Get Nodes From Topology    ${TOPO_TREE_LEVEL}
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/default/nodes
-    Should Be Equal As Strings    ${resp.status_code}    200    Response   status code error
+    ${resp}    RequestsLibrary.Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/default/nodes
+    Should Be Equal As Strings    ${resp.status_code}    200    Response    status code error
     ${jsondata}=    To JSON    ${resp.content}
     ${nodes}    Extract All Nodes    ${jsondata}
-    List Should Contain Sublist   ${nodes}    ${topo_nodes}
-Check node 1 connectors 
+    List Should Contain Sublist    ${nodes}    ${topo_nodes}
+
+Check node 1 connectors
     [Documentation]    List node connectors and verify all connectors are there
     [Tags]    adsal
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
-    Should Be Equal As Strings    ${resp.status_code}    200    Response   status code error
-    Should Contain     ${resp.content}    s1-eth1
-    Should Contain     ${resp.content}    s1-eth2
-Check node 2 connectors               
-    [Documentation]    List node connectors and verify all connectors are there                      
+    ${resp}    RequestsLibrary.Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
+    Should Be Equal As Strings    ${resp.status_code}    200    Response    status code error
+    Should Contain    ${resp.content}    s1-eth1
+    Should Contain    ${resp.content}    s1-eth2
+
+Check node 2 connectors
+    [Documentation]    List node connectors and verify all connectors are there
     [Tags]    adsal
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:02
-    Should Be Equal As Strings    ${resp.status_code}    200    Response   status code error
-    Should Contain     ${resp.content}    s2-eth1             
-    Should Contain     ${resp.content}    s2-eth2  
-    Should Contain     ${resp.content}    s2-eth3
-Check node 3 connectors               
-    [Documentation]    List node connectors and verify all connectors are there                      
+    ${resp}    RequestsLibrary.Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:02
+    Should Be Equal As Strings    ${resp.status_code}    200    Response    status code error
+    Should Contain    ${resp.content}    s2-eth1
+    Should Contain    ${resp.content}    s2-eth2
+    Should Contain    ${resp.content}    s2-eth3
+
+Check node 3 connectors
+    [Documentation]    List node connectors and verify all connectors are there
     [Tags]    adsal
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:03
-    Should Be Equal As Strings    ${resp.status_code}    200    Response   status code error
-    Should Contain     ${resp.content}    s3-eth1           
-    Should Contain     ${resp.content}    s3-eth2
-    Should Contain     ${resp.content}    s3-eth3
+    ${resp}    RequestsLibrary.Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:03
+    Should Be Equal As Strings    ${resp.status_code}    200    Response    status code error
+    Should Contain    ${resp.content}    s3-eth1
+    Should Contain    ${resp.content}    s3-eth2
+    Should Contain    ${resp.content}    s3-eth3
+
 Add property to node
     [Documentation]    Add a property to node
-    [Tags]    adsal 
-    Add property to node    OF    00:00:00:00:00:00:00:02    description     Switch2
+    [Tags]    adsal
+    Add property to node    OF    00:00:00:00:00:00:00:02    description    Switch2
     Node property should exist    OF    00:00:00:00:00:00:00:02    description    Switch2
-#Remove property from node
-#    [Documentation]    Remove a property from node
-#    Remove property from node    OF    00:00:00:00:00:00:00:02    description
-#    Node property should not exist    OF    00:00:00:00:00:00:00:02     description    Switch2
+    #Remove property from node
+    #    [Documentation]    Remove a property from node
+    #    Remove property from node    OF    00:00:00:00:00:00:00:02    description
+    #    Node property should not exist    OF    00:00:00:00:00:00:00:02    description    Switch2
+
 Add property to nodeconnector
     [Documentation]    Add a property to nodeconnector
-    [Tags]    adsal 
+    [Tags]    adsal
     Add property to nodeconnector    OF    00:00:00:00:00:00:00:02    OF    2    bandwidth    1000
     Nodeconnector property should exist    OF    00:00:00:00:00:00:00:02    OF    2    bandwidth    ${1000}
 
 Remove property from nodeconnector
     [Documentation]    Remove a property from nodeconnector
-    [Tags]    adsal 
+    [Tags]    adsal
     Remove property from nodeconnector    OF    00:00:00:00:00:00:00:02    OF    2    bandwidth
     Nodeconnector property should not exist    OF    00:00:00:00:00:00:00:02    OF    2    bandwidth    ${1000}
 
@@ -71,7 +76,7 @@ Remove property from nodeconnector
 Get node
     [Arguments]    ${node_id}    ${node_type}
     [Documentation]    Get a specific node
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodes
+    ${resp}    RequestsLibrary.Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodes
     Should Be Equal As Strings    ${resp.status_code}    200    Response status code error
     ${result}    TO JSON    ${resp.content}
     ${node}    Create Dictionary    id    ${node_id}    type    ${node_type}
@@ -82,31 +87,31 @@ Get node
 Add property to node
     [Arguments]    ${node_type}    ${node_id}    ${property}    ${value}
     [Documentation]    Add property to node
-    ${resp}    Put    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}/${value}
+    ${resp}    RequestsLibrary.Put    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}/${value}
     Should Be Equal As Strings    ${resp.status_code}    201    Response status code error
 
 Remove property from node
     [Arguments]    ${node_type}    ${node_id}    ${property}
     [Documentation]    Remove property from node
-    ${resp}    Delete    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}
+    ${resp}    RequestsLibrary.Delete    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}
     Should Be Equal As Strings    ${resp.status_code}    204    Response status code error
 
 Add property to nodeconnector
     [Arguments]    ${node_type}    ${node_id}    ${nc_type}    ${nc_id}    ${property}    ${value}
     [Documentation]    Add property to nodeconnector
-    ${resp}    Put    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}/${value}
+    ${resp}    RequestsLibrary.Put    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}/${value}
     Should Be Equal As Strings    ${resp.status_code}    201    Response status code error
 
 Remove property from nodeconnector
     [Arguments]    ${node_type}    ${node_id}    ${nc_type}    ${nc_id}    ${property}
     [Documentation]    Remove property from nodeconnector
-    ${resp}    Delete    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}
+    ${resp}    RequestsLibrary.Delete    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}
     Should Be Equal As Strings    ${resp.status_code}    204    Response status code error
 
 Node property should exist
     [Arguments]    ${node_type}    ${node_id}    ${property}    ${value}
     [Documentation]    Property of node should exist
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodes
+    ${resp}    RequestsLibrary.Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodes
     Should Be Equal As Strings    ${resp.status_code}    200    Response status code error
     ${result}    TO JSON    ${resp.content}
     Log    ${result}
@@ -121,7 +126,7 @@ Node property should exist
 Node property should not exist
     [Arguments]    ${node_type}    ${node_id}    ${property}    ${value}
     [Documentation]    Property of node should not exist
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodes
+    ${resp}    RequestsLibrary.Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodes
     Should Be Equal As Strings    ${resp.status_code}    200    Response status code error
     ${result}    TO JSON    ${resp.content}
     Log    ${result}
@@ -136,7 +141,7 @@ Node property should not exist
 Nodeconnector property should exist
     [Arguments]    ${node_type}    ${node_id}    ${nc_type}    ${nc_id}    ${property}    ${value}
     [Documentation]    Property of nodeconnector should exist
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
+    ${resp}    RequestsLibrary.Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
     Should Be Equal As Strings    ${resp.status_code}    200    Response status code error
     ${result}    TO JSON    ${resp.content}
     Log    ${result}
@@ -148,7 +153,7 @@ Nodeconnector property should exist
 Nodeconnector property should not exist
     [Arguments]    ${node_type}    ${node_id}    ${nc_type}    ${nc_id}    ${property}    ${value}
     [Documentation]    Property of nodeconnector should not exist
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
+    ${resp}    RequestsLibrary.Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
     Should Be Equal As Strings    ${resp.status_code}    200    Response status code error
     ${result}    TO JSON    ${resp.content}
     Log    ${result}