X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fnetvirt%2Fvpnservice%2Fvpn_basic_ipv6.robot;h=74a7b8c4f4385d0b2a17334c83feb679ff233161;hb=94651ca9711d8eb316721775561e815830bc6c7e;hp=96cb6a91009278a27826da7ec2148d41db483b8b;hpb=5b8fd805db0adc5bf9833a227c145dab9ce6311d;p=integration%2Ftest.git diff --git a/csit/suites/netvirt/vpnservice/vpn_basic_ipv6.robot b/csit/suites/netvirt/vpnservice/vpn_basic_ipv6.robot index 96cb6a9100..74a7b8c4f4 100644 --- a/csit/suites/netvirt/vpnservice/vpn_basic_ipv6.robot +++ b/csit/suites/netvirt/vpnservice/vpn_basic_ipv6.robot @@ -138,12 +138,14 @@ Delete Router And Router Interfaces With L3VPN VpnOperations.Associate VPN to Router routerid=${router_id} vpnid=@{VPN_INSTANCE_IDS}[0] ${resp} = VpnOperations.VPN Get L3VPN vpnid=@{VPN_INSTANCE_IDS}[0] BuiltIn.Should Contain ${resp} ${router_id} - : FOR ${INTERFACE} IN @{SUBNETS} - \ OpenStackOperations.Remove Interface ${ROUTER} ${INTERFACE} + FOR ${INTERFACE} IN @{SUBNETS} + OpenStackOperations.Remove Interface ${ROUTER} ${INTERFACE} + END ${interface_output} = OpenStackOperations.Show Router Interface ${ROUTER} - : FOR ${INTERFACE} IN @{SUBNETS} - \ ${subnet_id} = OpenStackOperations.Get Subnet Id ${INTERFACE} - \ BuiltIn.Should Not Contain ${interface_output} ${subnet_id} + FOR ${INTERFACE} IN @{SUBNETS} + ${subnet_id} = OpenStackOperations.Get Subnet Id ${INTERFACE} + BuiltIn.Should Not Contain ${interface_output} ${subnet_id} + END OpenStackOperations.Delete Router ${ROUTER} ${router_output} = OpenStackOperations.List Routers BuiltIn.Should Not Contain ${router_output} ${ROUTER} @@ -154,8 +156,11 @@ Delete Router And Router Interfaces With L3VPN Verify GWMAC Flow Entry Removed From Flow Table On All Compute Nodes Delete Router With NonExistentRouter Name - ${rc} ${output}= Run And Return Rc And Output neutron router-delete nonExistentRouter - BuiltIn.Should Match Regexp ${output} Unable to find router with name or id 'nonExistentRouter'|Unable to find router\\(s\\) with id\\(s\\) 'nonExistentRouter' + ${result} = Process.Run Process openstack router delete nonExistentRouter shell=True + BuiltIn.Log ${result.stdout} + BuiltIn.Log ${result.stderr} + BuiltIn.Should Be True '${result.rc}' == '1' + BuiltIn.Should Match Regexp ${result.stderr} Failed to delete router with name or ID 'nonExistentRouter': No Router found for nonExistentRouter Associate L3VPN To Networks ${network1_id} = OpenStackOperations.Get Net Id @{NETWORKS}[0] @@ -213,12 +218,14 @@ Suite Setup OpenStackOperations.Create Router ${ROUTER} ${router_list} = BuiltIn.Create List ${ROUTER} BuiltIn.Wait Until Keyword Succeeds 3s 1s Utils.Check For Elements At URI ${ROUTER_URL} ${router_list} - : FOR ${interface} IN @{SUBNETS} - \ OpenStackOperations.Add Router Interface ${ROUTER} ${interface} + FOR ${interface} IN @{SUBNETS} + OpenStackOperations.Add Router Interface ${ROUTER} ${interface} + END ${interface_output} = OpenStackOperations.Show Router Interface ${ROUTER} - : FOR ${interface} IN @{SUBNETS} - \ ${subnet_id} = OpenStackOperations.Get Subnet Id ${interface} - \ BuiltIn.Should Contain ${interface_output} ${subnet_id} + FOR ${interface} IN @{SUBNETS} + ${subnet_id} = OpenStackOperations.Get Subnet Id ${interface} + BuiltIn.Should Contain ${interface_output} ${subnet_id} + END ${GWMAC_ADDRS} ${GWIP_ADDRS} = VpnOperations.Get Gateway MAC And IP Address ${ROUTER} ${IP6_REGEX} BuiltIn.Set Suite Variable ${GWMAC_ADDRS} BuiltIn.Set Suite Variable ${GWIP_ADDRS} @@ -238,8 +245,9 @@ Suite Setup OpenStackOperations.Create Vm Instance With Port On Compute Node @{PORTS}[2] @{NET_2_VMS}[0] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP} OpenStackOperations.Create Vm Instance With Port On Compute Node @{PORTS}[3] @{NET_2_VMS}[1] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP} ${vms}= BuiltIn.Create List @{NET_1_VMS} @{NET_2_VMS} - : FOR ${vm} IN @{vms} - \ OpenStackOperations.Poll VM Is ACTIVE ${vm} + FOR ${vm} IN @{vms} + OpenStackOperations.Poll VM Is ACTIVE ${vm} + END BuiltIn.Wait Until Keyword Succeeds 30s 10s Wait For Routes To Propogate ${NETWORKS} ${SUBNET_CIDRS} ${prefix_net10} = Replace String @{SUBNET_CIDRS}[0] ::/64 (:[a-f0-9]{,4}){,4} ${status} ${message} Run Keyword And Ignore Error BuiltIn.Wait Until Keyword Succeeds 3x 60s OpenStackOperations.Collect VM IPv6 SLAAC Addresses @@ -252,9 +260,10 @@ Suite Setup ${VM_INSTANCES} = Collections.Combine Lists ${NET_1_VMS} ${NET_2_VMS} ${VM_IPS}= Collections.Combine Lists ${VM_IP_NET10} ${VM_IP_NET20} ${LOOP_COUNT} BuiltIn.Get Length ${NET_1_VMS} - : FOR ${index} IN RANGE 0 ${LOOP_COUNT} - \ ${status} ${message} Run Keyword And Ignore Error BuiltIn.Should Not Contain @{VM_IPS}[${index}] None - \ Run Keyword If '${status}' == 'FAIL' OpenStack CLI openstack console log show @{VM_INSTANCES}[${index}] 30s + FOR ${index} IN RANGE 0 ${LOOP_COUNT} + ${status} ${message} Run Keyword And Ignore Error BuiltIn.Should Not Contain ${VM_IPS}[${index}] None + Run Keyword If '${status}' == 'FAIL' OpenStack CLI openstack console log show @{VM_INSTANCES}[${index}] 30s + END OpenStackOperations.Copy DHCP Files From Control Node BuiltIn.Set Suite Variable ${VM_IP_NET10} BuiltIn.Set Suite Variable ${VM_IP_NET20}