Fixed the VPN service test case issues. 14/45614/7
authorsuvitha.balu <suvitha.balu@tcs.com>
Thu, 15 Sep 2016 05:57:19 +0000 (11:27 +0530)
committerJamo Luhrsen <jluhrsen@redhat.com>
Thu, 22 Sep 2016 06:32:23 +0000 (06:32 +0000)
1. Fixed Get port ID Library API
2. Delete neutron port API call correction.
3. Delete Port validation string corrected.

Change-Id: Id1a3c7b2a6b7b33a754ef776762694f0a21f7c16
Signed-off-by: suvitha.balu <suvitha.balu@tcs.com>
csit/libraries/OpenStackOperations.robot
csit/suites/openstack/vpnservice/basic_vpnservice.robot
csit/testplans/netvirt-vpnservice-1node-openstack.txt

index 83ba84a6db2aea3ac42012116285db40e827d3fe..21977300d3dc53a76fcae538ccd5a9440d46da58 100644 (file)
@@ -84,7 +84,7 @@ Delete Port
     ${output}=    Write Commands Until Prompt    neutron -v port-delete ${port_name}    30s
     Close Connection
     Log    ${output}
-    Should Contain    ${output}    Deleted a new port
+    Should Contain    ${output}    Deleted port: ${port_name}
 
 List Ports
     [Documentation]    List ports and return output with neutron client.
@@ -157,7 +157,10 @@ Get Port Id
     [Arguments]    ${port_name}    ${devstack_conn_id}
     [Documentation]    Retrieve the port id for the given port name to attach specific vm instance to a particular port
     Switch Connection    ${devstack_conn_id}
-    ${port_id}=    Write Commands Until Prompt    neutron port-list | grep "${port_name}" | awk '{print $2}'    30s
+    ${output}=    Write Commands Until Prompt    neutron port-list | grep "${port_name}" | awk '{print $2}'    30s
+    Log    ${output}
+    ${splitted_output}=    Split String    ${output}    ${EMPTY}
+    ${port_id}=    Get from List    ${splitted_output}    0
     Log    ${port_id}
     [Return]    ${port_id}
 
index 2a3819c54b0c23324232338257bb1b7b6643feca..84cdfcf81e15a98cdc768e602aeb88ff90df21c2 100644 (file)
@@ -54,7 +54,7 @@ Check OpenDaylight Neutron Ports
     Should be Equal As Strings    ${resp.status_code}    200
 
 Create Nova VMs
-    [Documentation]    Create two subnets for previously created networks
+    [Documentation]    Create Vm instances on compute node with port
     Create Vm Instance With Port On Compute Node    ${PORT_LIST[0]}    ${VM_INSTANCES[0]}    ${OS_COMPUTE_1_IP}
     Create Vm Instance With Port On Compute Node    ${PORT_LIST[1]}    ${VM_INSTANCES[1]}    ${OS_COMPUTE_2_IP}
     Create Vm Instance With Port On Compute Node    ${PORT_LIST[2]}    ${VM_INSTANCES[2]}    ${OS_COMPUTE_1_IP}
@@ -111,7 +111,7 @@ Delete Vm Instances
 Delete Neutron Ports
     [Documentation]    Delete Neutron Ports in the given Port List.
     : FOR    ${Port}    IN    @{PORT_LIST}
-    \    Delete SubNet    ${Port}
+    \    Delete Port    ${Port}
 
 Delete Sub Networks
     [Documentation]    Delete Sub Nets in the given Subnet List.
index 99b793a7f09db6fd9f5dd37bfa57d34ebb2cc595..c55b42da2bc3e5e2944275756b03d25ec3d17cc4 100644 (file)
@@ -1,2 +1,3 @@
 integration/test/csit/suites/openstack/tempest/
 integration/test/csit/suites/openstack/connectivity/
+integration/test/csit/suites/openstack/vpnservice/