Delete flows at the end
authorLuis Gomez <luis.gomez@ericsson.com>
Tue, 3 Dec 2013 04:22:21 +0000 (20:22 -0800)
committerLuis Gomez <luis.gomez@ericsson.com>
Tue, 3 Dec 2013 04:29:21 +0000 (20:29 -0800)
Change-Id: Ia51681acb90c7404a8adc0a7a678ebc71574dd8b
Signed-off-by: Luis Gomez <luis.gomez@ericsson.com>
test/csit/suites/base/030__arp_handler.txt
test/csit/suites/base/035__forwarding_manager.txt
test/csit/suites/base/050__OVSDB_plugin.txt
test/csit/suites/base/__init__.txt

index f2d113d3ca8cc2e0e7e9520732157971cef692ba..db4797f7faa7c70d6cb6763a73525f3b5844fe1d 100644 (file)
@@ -38,12 +38,6 @@ List hosts
     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
-Remove flows
-    [Documentation]    Remove flows generated by simple fwd
-    [Tags]   Get
-    Write   dpctl del-flows
-    Sleep   1
-    Read
 Add a subnet
     [Documentation]    Add a subnet, list to validate the result.
     [Tags]    add
@@ -66,3 +60,10 @@ Remove a subnet
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Not Contain Value    ${content}    ${body}
+Remove flows
+    [Documentation]    Remove flows generated by simple fwd
+    [Tags]   Get
+    Write   dpctl del-flows
+    Sleep   1
+    Read
+
index d69a7b99aab1839935364f711fec19feaf54d052..fba7b4541c93a2c4931de087ca968e6de9c0f7dd 100644 (file)
@@ -2,6 +2,7 @@
 Documentation     Test suite for the forwarding manager module.
 Suite Setup       Create Session   session   http://${CONTROLLER}:8080   auth=${AUTH}   headers=${HEADERS}
 Suite Teardown    Delete All Sessions
+Library           SSHLibrary
 Library           Collections
 Library           ../../libraries/RequestsLibrary.py
 Library           ../../libraries/Common.py
@@ -25,7 +26,7 @@ Add a static route
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Contain Value    ${content}    ${body}
-
+    Sleep    2
 Remove a static route
     [Documentation]    Remove a static route, list to validate the result.
     [Tags]    remove
@@ -38,3 +39,10 @@ Remove a static route
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Not Contain Value    ${content}    ${body}
+Remove flows
+    [Documentation]    Remove flows generated by simple fwd
+    [Tags]   Get
+    Write   dpctl del-flows
+    Sleep   1
+    Read
+
index cc5152d61a71aecbcab9feba466c93d87bf81c83..08925ff2bdb0fe49695c76327234528c64b5ab92 100644 (file)
@@ -69,12 +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
-Remove flows
-    [Documentation]    Remove flows generated by simple fwd
+Ping h1 to h4
+    [Documentation]    Ping h1 to h4, verify no packet loss
     [Tags]   Get
-    Write   dpctl del-flows
-    Sleep   1
-    Read
+    Sleep   20
+    Write   h1 ping -c 3 h4
+    Sleep   6
+    ${result}    Read
+    Should Contain   ${result}   64 bytes
 Delete s4 ports
     [Documentation]    Delete s4 connected ports
     [Tags]    delete
@@ -117,3 +119,10 @@ Disconnect mininet
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Not Contain Value    ${content}    ${body}
+Remove flows
+    [Documentation]    Remove flows generated by simple fwd
+    [Tags]   Get
+    Write   dpctl del-flows
+    Sleep   1
+    Read
+
index f0c0a85dc19971f2415141c9d6d942685c527a18..fdc96068819ec6840218cc137c3e2f72eb13a770 100644 (file)
@@ -17,6 +17,8 @@ Start Suite
     Sleep    2
     Write    ${start}
     Sleep    65
+    Write   dpctl del-flows
+    Sleep   1
     Read
 Stop Suite
     Log    Stop the test on the base edition