Improve OF13 test - 2nd try 80/4980/1
authorMadhusudhan <madhusudhan.opendaylight@yahoo.com>
Tue, 28 Jan 2014 11:57:57 +0000 (03:57 -0800)
committerMadhusudhan <madhusudhan.opendaylight@yahoo.com>
Tue, 28 Jan 2014 12:29:59 +0000 (04:29 -0800)
Change-Id: Ifd6e274bdd82b5dfd200dab0b8cedbcf07b00957
Signed-off-by: Madhusudhan <madhusudhan.opendaylight@yahoo.com>
15 files changed:
test/csit/suites/base-of13/005__restconf_inventory.txt
test/csit/suites/base-of13/010__restconf_flows.txt
test/csit/suites/base-of13/025__switch_Manager.txt
test/csit/suites/base-of13/040__forwarding_manager.txt
test/csit/suites/base-of13/050__OVSDB_plugin.txt
test/csit/suites/base-of13/100__restart_mininet_OF10.txt
test/csit/suites/base-of13/105__restconf_inventory.txt
test/csit/suites/base-of13/110__restconf_flows.txt
test/csit/suites/base-of13/115__topology_manager.txt
test/csit/suites/base-of13/125__switch_Manager.txt
test/csit/suites/base-of13/130__forwarding_rules_manager.txt
test/csit/suites/base-of13/135__host_tracker.txt
test/csit/suites/base-of13/140__forwarding_manager.txt
test/csit/suites/base-of13/145__arp_handler.txt
test/csit/suites/base-of13/150__OVSDB_plugin.txt

index 09232afd59d5a615ec2d05e2793640e01c3f47e1..0ecdaea6bd5745a37a540a3f2f58946a4f116e92 100644 (file)
@@ -19,13 +19,28 @@ Get list of nodes
        Should Contain     ${resp.content}      openflow:2
        Should Contain     ${resp.content}      openflow:3
        
-Get nodeconnector for a node
+Get nodeconnector for a node 1
     [Documentation]    Get the inventory for a node
-       ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:2
+        ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:1
+        Should Be Equal As Strings   ${resp.status_code}    200
+        Should Contain     ${resp.content}      openflow:1:1
+        Should Contain     ${resp.content}      openflow:1:2
+
+Get nodeconnector for a node 2
+    [Documentation]    Get the inventory for a node
+        ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:2
+        Should Be Equal As Strings   ${resp.status_code}    200
+        Should Contain     ${resp.content}      openflow:2:1
+        Should Contain     ${resp.content}      openflow:2:2
+        Should Contain     ${resp.content}      openflow:2:3
+
+Get nodeconnector for a node 3
+    [Documentation]    Get the inventory for a node
+       ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:3
        Should Be Equal As Strings   ${resp.status_code}    200
-       Should Contain     ${resp.content}      openflow:2:1
-       Should Contain     ${resp.content}      openflow:2:2
-       Should Contain     ${resp.content}      openflow:2:3
+       Should Contain     ${resp.content}      openflow:3:1
+       Should Contain     ${resp.content}      openflow:3:2
+       Should Contain     ${resp.content}      openflow:3:3
 
        
     
index 1657292d9fd6552071210ce6c4ee92d7efbdae42..de306f65adb2767b13384835bce4a99bd16ea352 100644 (file)
@@ -31,7 +31,7 @@ Verify after adding flow config - Sending IPv4 Dest Address and Eth type
 Verify after adding flow operational - Sending IPv4 Dest Address and Eth type
     [Documentation]    Verify the flow
     [Tags]   Get
-    Sleep    5
+    Sleep    10
     ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/2
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain     ${resp.content}    10.0.10.1
@@ -49,9 +49,11 @@ Verify after deleting flow config - Sending IPv4 Dest Address and Eth type
     Should Be Equal As Strings    ${resp.status_code}    404  
     Should Not Contain     ${resp.content}    139
 
+#  This only works the first time
 #Verify after deleting flow operational - Sending IPv4 Dest Address and Eth type
 #    [Documentation]    Verify the flow
 #    [Tags]   Get
+#    Sleep   3
 #    ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/2
 #    Should Be Equal As Strings    ${resp.status_code}    200
 #    Should Not Contain     ${resp.content}    10.0.10.1
@@ -72,7 +74,7 @@ Verify after adding flow config - Output to physical port#
 Verify after adding flow operational - Output to physical port#
     [Documentation]    Verify the flow
     [Tags]   Get
-    Sleep    5
+    Sleep    10
     ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/2
     Should Be Equal As Strings    ${resp.status_code}    200
     Should Contain     ${resp.content}    10.0.20.1
@@ -90,10 +92,11 @@ Verify after deleting flow config - Output to physical port#
     Should Be Equal As Strings    ${resp.status_code}    404 
     Should Not Contain     ${resp.content}    152
 
-#Verify after deleting flow operational - Output to physical port#
-#    [Documentation]    Verify the flow
-#    [Tags]   Get
-#    ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/2
-#    Should Be Equal As Strings    ${resp.status_code}    200
-#    Should Not Contain     ${resp.content}    10.0.20.1
+Verify after deleting flow operational - Output to physical port#
+    [Documentation]    Verify the flow
+    [Tags]   Get
+    Sleep    3
+    ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/2
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Not Contain     ${resp.content}    10.0.20.1
 
index 94bc5eb28f47f55901a8b8285c07358e54008f83..1462861ac408fac62ef7dee03c36890fa80c4e40 100644 (file)
@@ -30,6 +30,7 @@ Add property to node
     [Documentation]    Add a property to node
     Add property to node    MD_SAL    openflow:2    description     Switch2
     Node property should exist    MD_SAL    openflow:2    description    Switch2
+#    Standing bug #335
 #Remove property from node
 #    [Documentation]    Remove a property from node
 #    Remove property from node    MD_SAL    openflow:2    description
index 7e821f3e47fe9310d94c27399a27736108def540..58930c769f4242c7a7c820d2033c317324da3e58 100644 (file)
@@ -28,6 +28,7 @@ Add a static route
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Contain Value    ${content}    ${body}
     Sleep      20
+#     This works locally but NOT in OpenDaylight
 #Check flow in flow stats
 #    [Documentation]    Show flow stats and validate result
 #    [Tags]    get
index 5ec067d40e19a0c05e0de990745a53d04be4ec63..015c32a3d4ecaa883f56114a6e7ff1a2e898920c 100644 (file)
@@ -69,14 +69,14 @@ Add s4 ports
     ${resp}   Post   session   ${REST_CONTEXT_BD}/port/OVS/MININET/s3/s3-eth3
     ...   data={"type":"patch", "CUSTOM":{"peer":"s4-eth2"}}
     Should Be Equal As Strings    ${resp.status_code}    201
-#Ping h1 to h4
-#    [Documentation]    Ping h1 to h4, verify no packet loss
-#    [Tags]   Get
-#    Sleep   5
-#    Write   h1 ping -c 30 h4
-#    Sleep   40
-#   ${result}    Read
-#    Should Contain   ${result}   64 bytes
+Ping h1 to h4
+    [Documentation]    Ping h1 to h4, verify no packet loss
+    [Tags]   Get
+    Sleep   5
+    Write   h1 ping -c 30 h4
+    Sleep   40
+   ${result}    Read
+    Should Contain   ${result}   64 bytes
 Delete s4 ports
     [Documentation]    Delete s4 connected ports
     [Tags]    delete
index 9381dfd94581220b5188a013c8b74c52df0f331e..6f7b14720bc0104de6ca072c00054ae40dad134a 100644 (file)
@@ -11,7 +11,7 @@ Stop Mininet
     Log    Stop Mininet
     Read
     Write    exit 
-    Sleep    40
+    Sleep    60
     Read 
 Start Mininet
     Log    Start Mininet
index 09232afd59d5a615ec2d05e2793640e01c3f47e1..0ecdaea6bd5745a37a540a3f2f58946a4f116e92 100644 (file)
@@ -19,13 +19,28 @@ Get list of nodes
        Should Contain     ${resp.content}      openflow:2
        Should Contain     ${resp.content}      openflow:3
        
-Get nodeconnector for a node
+Get nodeconnector for a node 1
     [Documentation]    Get the inventory for a node
-       ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:2
+        ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:1
+        Should Be Equal As Strings   ${resp.status_code}    200
+        Should Contain     ${resp.content}      openflow:1:1
+        Should Contain     ${resp.content}      openflow:1:2
+
+Get nodeconnector for a node 2
+    [Documentation]    Get the inventory for a node
+        ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:2
+        Should Be Equal As Strings   ${resp.status_code}    200
+        Should Contain     ${resp.content}      openflow:2:1
+        Should Contain     ${resp.content}      openflow:2:2
+        Should Contain     ${resp.content}      openflow:2:3
+
+Get nodeconnector for a node 3
+    [Documentation]    Get the inventory for a node
+       ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:3
        Should Be Equal As Strings   ${resp.status_code}    200
-       Should Contain     ${resp.content}      openflow:2:1
-       Should Contain     ${resp.content}      openflow:2:2
-       Should Contain     ${resp.content}      openflow:2:3
+       Should Contain     ${resp.content}      openflow:3:1
+       Should Contain     ${resp.content}      openflow:3:2
+       Should Contain     ${resp.content}      openflow:3:3
 
        
     
index 0f7d77c8c864f7c30e2094cde13dbf89a9903c24..f9761a7f7c3db08aee7a46f2d400e84fde83668a 100644 (file)
@@ -11,89 +11,49 @@ Variables         ../../variables/Variables.py
 
 ${REST_CON}        /restconf/config/opendaylight-inventory:nodes
 ${REST_OPR}        /restconf/operational/opendaylight-inventory:nodes
-${BODY1}                  <flow xmlns="urn:opendaylight:flow:inventory"><priority>2</priority><flow-name>Foo</flow-name><match><ethernet-match><ethernet-type><type>2048</type></ethernet-type></ethernet-match><ipv4-destination>10.0.10.1/32</ipv4-destination></match><id>139</id><table_id>2</table_id><instructions><instruction><order>0</order><apply-actions><action><order>0</order><dec-nw-ttl/></action></apply-actions></instruction></instructions></flow>
-${BODY2}                  <flow xmlns="urn:opendaylight:flow:inventory"><priority>2</priority><flow-name>Foo</flow-name><match><ethernet-match><ethernet-type><type>2048</type></ethernet-type></ethernet-match><ipv4-destination>10.0.20.1/32</ipv4-destination></match><id>152</id><table_id>2</table_id><instructions><instruction><order>0</order><apply-actions><action><order>0</order><output-action><output-node-connector>1</output-node-connector><max-length>60</max-length></output-action></action></apply-actions></instruction></instructions></flow>
+${BODY2}                  <flow xmlns="urn:opendaylight:flow:inventory"><priority>2</priority><flow-name>Foo</flow-name><match><ethernet-match><ethernet-type><type>2048</type></ethernet-type></ethernet-match><ipv4-destination>10.0.20.1/32</ipv4-destination></match><id>152</id><table_id>0</table_id><instructions><instruction><order>0</order><apply-actions><action><order>0</order><output-action><output-node-connector>openflow:1:1</output-node-connector></output-action></action></apply-actions></instruction></instructions></flow>
 
 *** Test Cases *** 
-Add a flow - Sending IPv4 Dest Address and Eth type
-    [Documentation]    Push a flow through REST-API
-    [Tags]   Push
-    ${resp}   Putxml    session   ${REST_CON}/node/openflow:1/table/2/flow/139    data=${BODY1}
-    Should Be Equal As Strings    ${resp.status_code}    200
-       
-Verify after adding flow config - Sending IPv4 Dest Address and Eth type
-    [Documentation]    Verify the flow
-    [Tags]   Get
-    ${resp}    Get    session     ${REST_CON}/node/openflow:1/table/2
-    Should Be Equal As Strings    ${resp.status_code}    200  
-    Should Contain     ${resp.content}    139    
-
-#Verify after adding flow operational - Sending IPv4 Dest Address and Eth type
-#    [Documentation]    Verify the flow
-#    [Tags]   Get
-#    Sleep    5
-#    ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/2
-#    Should Be Equal As Strings    ${resp.status_code}    200
-#    Should Contain     ${resp.content}    10.0.10.1
-
-Remove a flow - - Sending IPv4 Dest Address and Eth type
-    [Documentation]    Remove a flow
-    [Tags]    remove
-    ${resp}   Delete    session   ${REST_CON}/node/openflow:1/table/2/flow/139    
-    Should Be Equal As Strings    ${resp.status_code}    200
-   
-Verify after deleting flow config - Sending IPv4 Dest Address and Eth type
-    [Documentation]    Verify the flow
-    [Tags]   Get
-    ${resp}    Get    session     ${REST_CON}/node/openflow:1/table/2
-    Should Be Equal As Strings    ${resp.status_code}    404  
-    Should Not Contain     ${resp.content}    139
-
-#Verify after deleting flow operational - Sending IPv4 Dest Address and Eth type
-#    [Documentation]    Verify the flow
-#    [Tags]   Get
-#    ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/2
-#    Should Be Equal As Strings    ${resp.status_code}    200
-#    Should Not Contain     ${resp.content}    10.0.10.1
  
 Add a flow - Output to physical port#
     [Documentation]    Push a flow through REST-API
     [Tags]   Push
-    ${resp}   Putxml    session   ${REST_CON}/node/openflow:1/table/2/flow/152    data=${BODY2}
+    ${resp}   Putxml    session   ${REST_CON}/node/openflow:1/table/0/flow/152    data=${BODY2}
     Should Be Equal As Strings    ${resp.status_code}    200
 
 Verify after adding flow config - Output to physical port#
     [Documentation]    Verify the flow
     [Tags]   Get
-    ${resp}    Get    session     ${REST_CON}/node/openflow:1/table/2
+    ${resp}    Get    session     ${REST_CON}/node/openflow:1/table/0
     Should Be Equal As Strings    ${resp.status_code}    200  
     Should Contain     ${resp.content}    152
  
-#Verify after adding flow operational - Output to physical port#
-#    [Documentation]    Verify the flow
-#    [Tags]   Get
-#    Sleep    5
-#    ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/2
-#    Should Be Equal As Strings    ${resp.status_code}    200
-#    Should Contain     ${resp.content}    10.0.20.1
+Verify after adding flow operational - Output to physical port#
+    [Documentation]    Verify the flow
+    [Tags]   Get
+    Sleep    20
+    ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/0
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain     ${resp.content}    10.0.20.1
 
 Remove a flow - Output to physical port#
     [Documentation]    Remove a flow
     [Tags]    remove
-    ${resp}   Delete    session   ${REST_CON}/node/openflow:1/table/2/flow/152    
+    ${resp}   Delete    session   ${REST_CON}/node/openflow:1/table/0/flow/152    
     Should Be Equal As Strings    ${resp.status_code}    200
 
 Verify after deleting flow config - Output to physical port#
     [Documentation]    Verify the flow
     [Tags]   Get
-    ${resp}    Get    session     ${REST_CON}/node/openflow:1/table/2
-    Should Be Equal As Strings    ${resp.status_code}    404 
+    ${resp}    Get    session     ${REST_CON}/node/openflow:1/table/0
     Should Not Contain     ${resp.content}    152
 
+#    Standing bug #368
 #Verify after deleting flow operational - Output to physical port#
 #    [Documentation]    Verify the flow
 #    [Tags]   Get
-#    ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/2
+#    Sleep    3
+#    ${resp}    Get    session     ${REST_OPR}/node/openflow:1/table/0
 #    Should Be Equal As Strings    ${resp.status_code}    200
 #    Should Not Contain     ${resp.content}    10.0.20.1
 
index d50311c1e768ed9cd04f9aa21b19c8dd156e4e27..a28c667c531977ef82222714de48785af006ee09 100644 (file)
@@ -19,7 +19,6 @@ ${REST_CONTEXT}    /controller/nb/v2/topology
 Get Topology
     [Documentation]    Get Topology and validate the result.
     [Tags]    get
-#    Sleep     10
     ${resp}    Get    session    ${REST_CONTEXT}/${CONTAINER}
     Should Be Equal As Strings    ${resp.status_code}    200 
     Log    ${resp.content}
index 94bc5eb28f47f55901a8b8285c07358e54008f83..1462861ac408fac62ef7dee03c36890fa80c4e40 100644 (file)
@@ -30,6 +30,7 @@ Add property to node
     [Documentation]    Add a property to node
     Add property to node    MD_SAL    openflow:2    description     Switch2
     Node property should exist    MD_SAL    openflow:2    description    Switch2
+#    Standing bug #335
 #Remove property from node
 #    [Documentation]    Remove a property from node
 #    Remove property from node    MD_SAL    openflow:2    description
index e89bf48e728283dcdc91501d4ee4a9cd71f06c54..253bd1d20ca1ae8db1c4c186107612f4b8fb8499 100644 (file)
@@ -31,14 +31,14 @@ Add a flow
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Contain Value    ${content}    ${body}
-#Check flow in flow stats
-#   [Documentation]    Show flow stats and validate result
-#    [Tags]    get
-#    Sleep     20
-#    ${resp}    Get    session    ${REST_CONTEXT_ST}/${CONTAINER}/flow
-#    Should Be Equal As Strings    ${resp.status_code}    200 
-#    Log    ${resp.content}
-#    Should Contain    ${resp.content}    ${FLOW}
+Check flow in flow stats
+   [Documentation]    Show flow stats and validate result
+    [Tags]    get
+    Sleep      20
+    ${resp}    Get    session    ${REST_CONTEXT_ST}/${CONTAINER}/flow
+    Should Be Equal As Strings    ${resp.status_code}    200 
+    Log    ${resp.content}
+    Should Contain    ${resp.content}    ${FLOW}
 Remove a flow
     [Documentation]    Remove a flow, list to validate the result.
     [Tags]    remove
index ff97a3dfaab71ec0bb81022a3e2be9a89757ec69..2576c291d58d985a328477b9618b75ef7c08797b 100644 (file)
@@ -28,14 +28,14 @@ Add a host
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Contain Value    ${content}    ${body} 
-#Check flow in flow stats
-#   [Documentation]    Show flow stats and validate result
-#    [Tags]   get
-#   Sleep      20
-#    ${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}    ${FLOW}   3
+Check flow in flow stats
+   [Documentation]    Show flow stats and validate result
+    [Tags]   get
+    Sleep      20
+    ${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}    ${FLOW}   3
 Remove a host
     [Documentation]    Remove a host, list to validate the result.
     [Tags]    remove
index cc7d5b3e9e6d452cb3b877b20862cbb25c73e38e..6e0da492f120adc4846fbd1316dc5f3d402ae12a 100644 (file)
@@ -28,6 +28,7 @@ Add a static route
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Contain Value    ${content}    ${body}
     Sleep      20
+#    This works locally but fails at OpenDaylight
 #Check flow in flow stats
 #    [Documentation]    Show flow stats and validate result
 #    [Tags]    get
@@ -47,4 +48,3 @@ Remove a static route
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Not Contain Value    ${content}    ${body}
-    Sleep      40
index 0f9f12d9747b29ea49c06f3f449e786a903b384a..623f004df5c95d44a36f38be6245fcb7ee8d27c7 100644 (file)
@@ -24,20 +24,20 @@ List Subnets
     ${subnet}    Get From Dictionary    ${result}    ${key}
     ${content}   Get From List    ${subnet}    0
     Dictionary Should Contain Value   ${content}   0.0.0.0/0
-#Ping h1 to h4
-#   [Documentation]    Ping h1 to h4, verify no packet loss
-#    [Tags]   Get
-#    Write   h1 ping -c 3 h4
-#    Sleep   6
-#    ${result}    Read
-#    Should Contain   ${result}   64 bytes
-#List hosts
-#    [Documentation]    List hosts and verify h1 and h4
-#    [Tags]   Get
-#    ${resp}    Get    session    ${REST_CONTEXT_HT}/${CONTAINER}/hosts/active
-#    Should Be Equal As Strings    ${resp.status_code}    200  
-#    Should Contain     ${resp.content}    10.0.0.1
-#    Should Contain     ${resp.content}    10.0.0.4
+Ping h1 to h4
+   [Documentation]    Ping h1 to h4, verify no packet loss
+    [Tags]   Get
+    Write   h1 ping -c 3 h4
+    Sleep   6
+    ${result}    Read
+    Should Contain   ${result}   64 bytes
+List hosts
+    [Documentation]    List hosts and verify h1 and h4
+    [Tags]   Get
+    ${resp}    Get    session    ${REST_CONTEXT_HT}/${CONTAINER}/hosts/active
+    Should Be Equal As Strings    ${resp.status_code}    200  
+    Should Contain     ${resp.content}    10.0.0.1
+    Should Contain     ${resp.content}    10.0.0.4
 Add a subnet
     [Documentation]    Add a subnet, list to validate the result.
     [Tags]    add
index 5ec067d40e19a0c05e0de990745a53d04be4ec63..62a54cb8d9f0a28900905084b9aedb8a068b756c 100644 (file)
@@ -69,14 +69,14 @@ Add s4 ports
     ${resp}   Post   session   ${REST_CONTEXT_BD}/port/OVS/MININET/s3/s3-eth3
     ...   data={"type":"patch", "CUSTOM":{"peer":"s4-eth2"}}
     Should Be Equal As Strings    ${resp.status_code}    201
-#Ping h1 to h4
-#    [Documentation]    Ping h1 to h4, verify no packet loss
-#    [Tags]   Get
-#    Sleep   5
-#    Write   h1 ping -c 30 h4
-#    Sleep   40
-#   ${result}    Read
-#    Should Contain   ${result}   64 bytes
+Ping h1 to h4
+    [Documentation]    Ping h1 to h4, verify no packet loss
+    [Tags]   Get
+    Sleep   5
+    Write   h1 ping -c 30 h4
+    Sleep   40
+    ${result}    Read
+    Should Contain   ${result}   64 bytes
 Delete s4 ports
     [Documentation]    Delete s4 connected ports
     [Tags]    delete