Test Case Reorganization Part 2
authorLuis Gomez <ecelgp@gmail.com>
Sat, 7 Jun 2014 00:11:29 +0000 (17:11 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Sat, 7 Jun 2014 00:11:29 +0000 (17:11 -0700)
Change-Id: If9ac8a3b7c38f9c7b337a59d5e41b871eeadc222
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
21 files changed:
test/csit/suites/base-of13/010__MD_SAL_NSF/__init__.txt
test/csit/suites/base-of13/020__MD_SAL_NSF_OF13/__init__.txt
test/csit/suites/base-of13/030__AD_SAL_NSF/010__switch_manager.txt
test/csit/suites/base-of13/030__AD_SAL_NSF/__init__.txt
test/csit/suites/base-of13/040__AD_SAL_NSF_OF13/__init__.txt
test/csit/suites/base-of13/050__AD_SAL_Apps/__init__.txt
test/csit/suites/base-of13/060__AD_SAL_Apps_OF13/__init__.txt
test/csit/suites/base-of13/070__Flows_OF13/__init__.txt
test/csit/suites/base-of13/080__OVSDB/__init__.txt
test/csit/suites/base-of13/090__OVSDB_OF13/__init__.txt
test/csit/suites/base/010__AD_SAL_NSF/010__switch_manager.txt [moved from test/csit/suites/base/015__switch_Manager.txt with 77% similarity]
test/csit/suites/base/010__AD_SAL_NSF/020__statistics_manager.txt [moved from test/csit/suites/base/010__statistics_manager.txt with 88% similarity]
test/csit/suites/base/010__AD_SAL_NSF/030__topology_manager.txt [moved from test/csit/suites/base/005__topology_manager.txt with 94% similarity]
test/csit/suites/base/010__AD_SAL_NSF/040__flow_programmer.txt [moved from test/csit/suites/base/020__forwarding_rules_manager.txt with 93% similarity]
test/csit/suites/base/010__AD_SAL_NSF/__init__.txt [moved from test/csit/suites/base/__init__.txt with 76% similarity]
test/csit/suites/base/020__AD_SAL_Apps/010__host_tracker.txt [moved from test/csit/suites/base/025__host_tracker.txt with 93% similarity]
test/csit/suites/base/020__AD_SAL_Apps/020__static_route.txt [moved from test/csit/suites/base/035__forwarding_manager.txt with 74% similarity]
test/csit/suites/base/020__AD_SAL_Apps/030__subnet_gateway.txt [moved from test/csit/suites/base/030__arp_handler.txt with 92% similarity]
test/csit/suites/base/020__AD_SAL_Apps/__init__.txt [new file with mode: 0644]
test/csit/suites/base/030__OVSDB/010_bridge_domain.txt [moved from test/csit/suites/base/050__OVSDB_plugin.txt with 94% similarity]
test/csit/suites/base/030__OVSDB/__init__.txt [new file with mode: 0644]

index bd0aabc4d5e74d47c7413ad584f2d33447c984bf..7cbfbf18e34476e31892c228605ac0ccb8674977 100644 (file)
@@ -9,7 +9,7 @@ ${start}=   sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2
 
 ** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
@@ -19,7 +19,7 @@ Start Suite
     Sleep    30
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
index 6d246504ea24eaf55206dfc219a007cfc592c312..019b0883b6f9087aaab1c66b4efb310bc1e7597c 100644 (file)
@@ -9,7 +9,7 @@ ${start}=   sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2 --switch
 
 ** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
@@ -19,7 +19,7 @@ Start Suite
     Sleep    30
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
index 0149c3546e6d2d879946661278442721947c1246..30cd4eb7936569cb919101ac3248ea7ebe4f41c0 100644 (file)
@@ -1,5 +1,5 @@
 *** Settings ***
-Documentation     Test suite for the Switch Manager
+Documentation     Test suite for Switch Manager
 Suite Setup       Create Session    ${ODL_CONTROLLER_SESSION}    http://${CONTROLLER}:8080    auth=${AUTH}    headers=${HEADERS}
 Suite Teardown    Delete All Sessions
 Library           Collections
index 30de25b658a73946a6911d6bacd4dc8f4e8298c7..29d6ca5748714cdd533b41e5e4d7fa45b9dd9688 100644 (file)
@@ -9,7 +9,7 @@ ${start}=   sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2
 
 ** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
@@ -19,7 +19,7 @@ Start Suite
     Sleep    30
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
index d75c464b1d3db0b4b6a37114cb3b52412ef407ee..b2ca3487c33d783338bb6adfef621902d3075944 100644 (file)
@@ -9,7 +9,7 @@ ${start}=   sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2 --switch
 
 ** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
@@ -19,7 +19,7 @@ Start Suite
     Sleep    30
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
index 5a2056b0618c206a3b5144b4b6570d45b0f9c408..0c6c07592e9dc8788a92c8e77567bd100eac3486 100644 (file)
@@ -9,7 +9,7 @@ ${start}=   sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2
 
 ** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
@@ -19,7 +19,7 @@ Start Suite
     Sleep    30
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
index 42d377dd04401678f65db9c836bb480462a3b8d3..5882daa213e2e658cdc5c2e16608133de24dee55 100644 (file)
@@ -9,7 +9,7 @@ ${start}=   sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2 --switch
 
 ** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
@@ -19,7 +19,7 @@ Start Suite
     Sleep    30
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
index 42354a8433159a2c64cdf6fba7ebfb01050ea4bc..de519bbb0b91a0739b45d98018d11bcd5e694386 100644 (file)
@@ -9,7 +9,7 @@ ${start}=   sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2 --switch
 
 ** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
@@ -19,7 +19,7 @@ Start Suite
     Sleep    20
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
index 020d13358d385bacb84a085eaf6baa40e257a68c..31c9137a28060adba647d30f760e14dbd9e077a8 100644 (file)
@@ -9,7 +9,7 @@ ${start}=   sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2
 
 ** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
@@ -19,7 +19,7 @@ Start Suite
     Sleep    20
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
index cd8ba66a82ea12e9b3f601d3549b2ea04c381ce1..98abe73cf97e22d35e874775cb6ac0a1f21fd266 100644 (file)
@@ -9,7 +9,7 @@ ${start}=   sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2 --switch
 
 ** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
@@ -19,7 +19,7 @@ Start Suite
     Sleep    20
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
similarity index 77%
rename from test/csit/suites/base/015__switch_Manager.txt
rename to test/csit/suites/base/010__AD_SAL_NSF/010__switch_manager.txt
index 55fb8c74d6f3dcf4979b270a0d2c3a01cbffee2d..be2f4c5911889f3f8a7662b1b6a182126eef5596 100644 (file)
@@ -1,13 +1,13 @@
 *** Settings ***
-Documentation     Test suite for the switch manager bundle.
+Documentation     Test suite for Switch Manager
 Suite Setup       Create Session    ${ODL_CONTROLLER_SESSION}    http://${CONTROLLER}:8080    auth=${AUTH}    headers=${HEADERS}
 Suite Teardown    Delete All Sessions
 Library           Collections
 Library           RequestsLibrary
-Library           ../../libraries/Common.py
-Library           ../../libraries/SwitchManager.py
-Variables         ../../variables/Variables.py
-Library           ../../libraries/Topology.py
+Library           ../../../libraries/Common.py
+Library           ../../../libraries/SwitchManager.py
+Variables         ../../../variables/Variables.py
+Library           ../../../libraries/Topology.py
 
 *** Variables ***
 ${REST_CONTEXT}    /controller/nb/v2/switchmanager
@@ -18,22 +18,42 @@ List all nodes
     [Tags]    list_info
     Log    ${TOPO_TREE_LEVEL}
     ${topo_nodes}    Get Nodes From Topology    ${TOPO_TREE_LEVEL}
-    ${resp}    Get    ${ODL_CONTROLLER_SESSION}    ${REST_CONTEXT}/${CONTAINER}/nodes
+    ${resp}    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}
-Get a node
-    [Documentation]    Get a node
-    Get node    00:00:00:00:00:00:00:02    OF
+Check node 1 connectors 
+    [Documentation]    List node connectors and verify all connectors are there
+    [Tags]    list_info
+    ${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                      
+    [Tags]    list_info
+    ${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                      
+    [Tags]    list_info
+    ${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
 Add property to node
     [Documentation]    Add a property to node
     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
     Add property to nodeconnector    OF    00:00:00:00:00:00:00:02    OF    2    bandwidth    1000
similarity index 88%
rename from test/csit/suites/base/010__statistics_manager.txt
rename to test/csit/suites/base/010__AD_SAL_NSF/020__statistics_manager.txt
index 49d2e83914b9db26e725935bf80d39ffa2165e56..adc6d9ce23ee0042642f97bfb2468d6d889f2c68 100644 (file)
@@ -1,11 +1,11 @@
 *** Settings ***
-Documentation     Test suite for the statistics manager module
+Documentation     Test suite for Statistics Manager
 Suite Setup       Create Session   session   http://${CONTROLLER}:8080   auth=${AUTH}   headers=${HEADERS}
 Suite Teardown    Delete All Sessions
 Library           Collections
-Library           ../../libraries/RequestsLibrary.py
-Library           ../../libraries/Common.py
-Variables         ../../variables/Variables.py
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${node1}       "00:00:00:00:00:00:00:01"
similarity index 94%
rename from test/csit/suites/base/005__topology_manager.txt
rename to test/csit/suites/base/010__AD_SAL_NSF/030__topology_manager.txt
index 076d5e44ee50836068b2d7876f7de277ad1a50d2..58a4d08c0a6eefd1e6b508678da1f607d9aa2ae1 100644 (file)
@@ -3,9 +3,9 @@ Documentation     Test suite for Topology Manager
 Suite Setup       Create Session   session   http://${CONTROLLER}:8080   auth=${AUTH}   headers=${HEADERS}
 Suite Teardown    Delete All Sessions
 Library           Collections
-Library           ../../libraries/RequestsLibrary.py
-Library           ../../libraries/Common.py
-Variables         ../../variables/Variables.py
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${node1}   "00:00:00:00:00:00:00:01"
similarity index 93%
rename from test/csit/suites/base/020__forwarding_rules_manager.txt
rename to test/csit/suites/base/010__AD_SAL_NSF/040__flow_programmer.txt
index 390949a4cd33f9fbd2bc55078f0127ffce9d1281..6b748625a25d8be9ab3655d18e9295d7fafeee48 100644 (file)
@@ -1,11 +1,11 @@
 *** Settings ***
-Documentation     Test suite for the forwarding rule manager module.
+Documentation     Test suite for Flow Programmer
 Suite Setup       Create Session   session   http://${CONTROLLER}:8080  auth=${AUTH}   headers=${HEADERS}
 Suite Teardown    Delete All Sessions
 Library           Collections
-Library           ../../libraries/RequestsLibrary.py
-Library           ../../libraries/Common.py
-Variables         ../../variables/Variables.py
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${name}           flow1
similarity index 76%
rename from test/csit/suites/base/__init__.txt
rename to test/csit/suites/base/010__AD_SAL_NSF/__init__.txt
index 1f057da7c16a8981344e9ace5054cb8fa02aabb7..8c56b003cc621764365bc62c3343e5d6c8747465 100644 (file)
@@ -1,5 +1,5 @@
 *** Settings ***
-Documentation     Test suite for the OpenDaylight base edition
+Documentation     Test suite for AD-SAL NSF
 Suite Setup       Start Suite
 Suite Teardown    Stop Suite
 Library     SSHLibrary
@@ -9,17 +9,17 @@ ${start}=  sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2
 
 *** Keywords ***
 Start Suite  
-    Log    Start the test on the base edition
+    Log    Start mininet
     Open Connection   ${MININET}     prompt=>
     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
     Write    sudo ovs-vsctl set-manager ptcp:6644
     Write    sudo mn -c
     Sleep    2
     Write    ${start}
-    Sleep    70
+    Sleep    10
     Read
 Stop Suite
-    Log    Stop the test on the base edition
+    Log    Stop mininet
     Read
     Write    exit 
     Sleep    4
similarity index 93%
rename from test/csit/suites/base/025__host_tracker.txt
rename to test/csit/suites/base/020__AD_SAL_Apps/010__host_tracker.txt
index 34856e3f2a5fbcf643f221a5a615686f74956cef..851aaf1da909567374248f3bcff1c5f7c0de6dc5 100644 (file)
@@ -1,11 +1,11 @@
 *** Settings ***
-Documentation     Test suite for the host tracker module.
+Documentation     Test suite for Host Tracker
 Suite Setup       Create Session   session   http://${CONTROLLER}:8080   auth=${AUTH}   headers=${HEADERS}
 Suite Teardown    Delete All Sessions
 Library           Collections
-Library           ../../libraries/RequestsLibrary.py
-Library           ../../libraries/Common.py
-Variables         ../../variables/Variables.py
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${name}           10.0.1.4
similarity index 74%
rename from test/csit/suites/base/035__forwarding_manager.txt
rename to test/csit/suites/base/020__AD_SAL_Apps/020__static_route.txt
index 68cd4440933e7799c7febfa7198c4e2e1feab48c..8c21cf1f9d62be6b0bf716764a555c4f0603503b 100644 (file)
@@ -1,12 +1,12 @@
 *** Settings ***
-Documentation     Test suite for the forwarding manager module.
+Documentation     Test suite for Static Route
 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
-Variables         ../../variables/Variables.py
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${name}           test_route1
@@ -27,7 +27,15 @@ Add a static route
     ${result}    To JSON    ${resp.content}
     ${content}    Get From Dictionary    ${result}    ${key}
     List Should Contain Value    ${content}    ${body}
-    Sleep    5
+    Sleep    10
+#     This works locally but NOT in OpenDaylight
+#Check flow in flow stats
+#    [Documentation]    Show flow stats and validate result
+#    [Tags]    get
+#    ${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]    remove
similarity index 92%
rename from test/csit/suites/base/030__arp_handler.txt
rename to test/csit/suites/base/020__AD_SAL_Apps/030__subnet_gateway.txt
index 210ec4444139815958ede6e4473acc2ab123b832..8ad5385aacfbf8fb73e0c2d6e6299b5db3b64319 100644 (file)
@@ -1,12 +1,12 @@
 *** Settings ***
-Documentation     Test suite for the arp handler module.
+Documentation     Test suite for Subnet Gateway
 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
-Variables         ../../variables/Variables.py
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${name}           test
diff --git a/test/csit/suites/base/020__AD_SAL_Apps/__init__.txt b/test/csit/suites/base/020__AD_SAL_Apps/__init__.txt
new file mode 100644 (file)
index 0000000..310cb94
--- /dev/null
@@ -0,0 +1,27 @@
+*** Settings ***
+Documentation     Test suite for AD-SAL Applications
+Suite Setup       Start Suite
+Suite Teardown    Stop Suite
+Library     SSHLibrary
+
+*** Variables ***
+${start}=  sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2
+
+*** Keywords ***
+Start Suite  
+    Log    Start mininet
+    Open Connection   ${MININET}     prompt=>
+    Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
+    Write    sudo ovs-vsctl set-manager ptcp:6644
+    Write    sudo mn -c
+    Sleep    2
+    Write    ${start}
+    Sleep    10
+    Read
+Stop Suite
+    Log    Stop mininet
+    Read
+    Write    exit 
+    Sleep    4
+    Read 
+    Close Connection 
similarity index 94%
rename from test/csit/suites/base/050__OVSDB_plugin.txt
rename to test/csit/suites/base/030__OVSDB/010_bridge_domain.txt
index dee106179b518cadb03cf8dcfb271abffe58681b..faf8f1cfe486c4382897447153b40dddfb6d1c52 100644 (file)
@@ -1,13 +1,13 @@
 *** Settings ***
-Documentation     Test suite for OVSDB plugin
+Documentation     Test suite for Bridge Domain
 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
-Library           ../../libraries/Topology.py
-Variables         ../../variables/Variables.py
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Library           ../../../libraries/Topology.py
+Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${key}             node
@@ -73,10 +73,10 @@ Ping h1 to h4
     [Documentation]    Ping h1 to h4, verify no packet loss
     [Tags]   ovsdb
     Sleep   5
-    Write   h1 ping -w 40 h4
-    Sleep   40
-    Write   h4 ping -w 40 h1
-    Sleep   40
+    Write   h1 ping -w 6 h4
+    Sleep   6
+    Write   h4 ping -w 6 h1
+    Sleep   6
     ${result}    Read
     Should Contain   ${result}   64 bytes
 Delete s4 ports
diff --git a/test/csit/suites/base/030__OVSDB/__init__.txt b/test/csit/suites/base/030__OVSDB/__init__.txt
new file mode 100644 (file)
index 0000000..182db10
--- /dev/null
@@ -0,0 +1,27 @@
+*** Settings ***
+Documentation     Test suite for OVSDB
+Suite Setup       Start Suite
+Suite Teardown    Stop Suite
+Library     SSHLibrary
+
+*** Variables ***
+${start}=  sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,2
+
+*** Keywords ***
+Start Suite  
+    Log    Start mininet
+    Open Connection   ${MININET}     prompt=>
+    Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any 
+    Write    sudo ovs-vsctl set-manager ptcp:6644
+    Write    sudo mn -c
+    Sleep    2
+    Write    ${start}
+    Sleep    10
+    Read
+Stop Suite
+    Log    Stop mininet
+    Read
+    Write    exit 
+    Sleep    4
+    Read 
+    Close Connection