Ensure netvirt is loaded before executing the remaining tests cases.
[integration/test.git] / test / csit / suites / ovsdb / Openstack_Neutron / 010__ovsdb_flow.robot
index 7afcd8bc54a8af31bde9440e5c8fc00e71572e53..e1151ead70b6dbee11d5b737fcd1b3542d2ca5ba 100644 (file)
@@ -40,7 +40,8 @@ ${FLOAT_IP1_PORT_ID}    01671703-695e-4497-8a11-b5da989d2dc3
 ${FLOAT_IP1_MAC}    FA:16:3E:3F:37:BB
 ${FLOAT_IP1_DEVICE_ID}    f013bef4-9468-494d-9417-c9d9e4abb97c
 ${FLOAT_IP1_ADDRESS}    192.168.111.22
-@{node_list}      ovsdb://uuid/
+@{node_list}    ovsdb://uuid/
+@{netvirt}    1
 
 *** Test Cases ***
 Add variables to controller custom.properties
@@ -59,6 +60,11 @@ Ensure controller is running
     [Tags]    Check controller reachability
     Wait Until Keyword Succeeds    300s    2s    Check For Elements At URI    ${OPERATIONAL_TOPO_API}    ${node_list}
 
+Ensure netvirt is loaded
+    [Documentation]    Check if the netvirt piece has been loaded into the karaf instance
+    [Tags]    Ensure netvirt is loaded
+    Wait Until Keyword Succeeds    300s    4s    Check For Elements At URI    ${OPERATIONAL_NODES_NETVIRT}    ${netvirt}
+
 Check External Net for Tenant
     [Documentation]    Check External Net for Tenant
     [Tags]    OpenStack Call Flow
@@ -249,4 +255,4 @@ Associate the Floating IP with Tenant VM
     ${Data}    Replace String    ${Data}    {vmPortId}    ${TNT1_VM1_PORT_ID}
     Log    ${Data}
     ${resp}    RequestsLibrary.Put    session    ${ODLREST}/floatingips/${FLOAT_IP1_ID}    ${Data}
-    Should Be Equal As Strings    ${resp.status_code}    200
\ No newline at end of file
+    Should Be Equal As Strings    ${resp.status_code}    200