X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenstack%2Fclustering%2Fha_l3.robot;h=9b810bb70551853481b7819033fc862a17f25211;hb=94651ca9711d8eb316721775561e815830bc6c7e;hp=d4d15a0448e81915c95048c9da28c98aaf570d79;hpb=8aca28de56771e7689ec57985c82ed879da8e91a;p=integration%2Ftest.git diff --git a/csit/suites/openstack/clustering/ha_l3.robot b/csit/suites/openstack/clustering/ha_l3.robot index d4d15a0448..9b810bb705 100644 --- a/csit/suites/openstack/clustering/ha_l3.robot +++ b/csit/suites/openstack/clustering/ha_l3.robot @@ -1,7 +1,7 @@ *** Settings *** Documentation Test suite to check connectivity in L3 using routers. Suite Setup OpenStackOperations.OpenStack Suite Setup -Suite Teardown Close All Connections +Suite Teardown OpenStackOperations.OpenStack Suite Teardown Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing Test Teardown OpenStackOperations.Get Test Teardown Debugs Library SSHLibrary @@ -44,8 +44,9 @@ Take Down Leader Of Default Shard Create Networks [Documentation] Create Network with neutron request. - : FOR ${NetworkElement} IN @{NETWORKS} - \ OpenStackOperations.Create Network ${NetworkElement} + FOR ${NetworkElement} IN @{NETWORKS} + OpenStackOperations.Create Network ${NetworkElement} + END Create Subnets For net_1 [Documentation] Create Sub Nets for the Networks with neutron request. @@ -118,8 +119,9 @@ Create Router router_3 Add Interfaces To Router [Documentation] Add Interfaces - : FOR ${interface} IN @{SUBNETS} - \ OpenStackOperations.Add Router Interface @{ROUTERS}[2] ${interface} + FOR ${interface} IN @{SUBNETS} + OpenStackOperations.Add Router Interface @{ROUTERS}[2] ${interface} + END Verify Created Routers [Documentation] Check created routers using northbound rest calls @@ -155,25 +157,43 @@ Ping Vm Instance3 In net_1 From net_2 [Documentation] Check reachability of vm instances by pinging to them after creating routers. OpenStackOperations.Ping Vm From DHCP Namespace @{NETWORKS}[1] @{NET_1_L3_VM_IPS}[2] +Connectivity Tests From Vm Instance1 In net_1 In Healthy Cluster + [Documentation] ssh to the VM instance and test operations. + ${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS} + OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[0] ${dst_list} + [Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False + +Connectivity Tests From Vm Instance2 In net_1 In Healthy Cluster + [Documentation] ssh to the VM instance and test operations. + ${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS} + OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[1] ${dst_list} + [Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False + +Connectivity Tests From Vm Instance3 In net_1 In Healthy Cluster + [Documentation] ssh to the VM instance and test operations. + ${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS} + OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[2] ${dst_list} + [Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False + Take Down ODL1 and ODL2 [Documentation] Stop the karaf in First and Second Controller ClusterManagement.Stop Single Member 1 msg=up: ODL1, ODL2, ODL3, down=none ClusterManagement.Stop Single Member 2 msg=up: ODL2, ODL3, down=ODL1 [Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False -Connectivity Tests From Vm Instance1 In net_1 +Connectivity Tests From Vm Instance1 In net_1 With Two ODLs Down [Documentation] ssh to the VM instance and test operations. ${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS} OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[0] ${dst_list} [Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False -Connectivity Tests From Vm Instance2 In net_1 +Connectivity Tests From Vm Instance2 In net_1 With Two ODLs Down [Documentation] ssh to the VM instance and test operations. ${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS} OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[1] ${dst_list} [Teardown] OpenStackOperations.Get Test Teardown Debugs fail=False -Connectivity Tests From Vm Instance3 In net_1 +Connectivity Tests From Vm Instance3 In net_1 With Two ODLs Down [Documentation] ssh to the VM instance and test operations. ${dst_list} = BuiltIn.Create List @{NET_2_L3_VM_IPS} @{NET_1_L3_VM_IPS} OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_L3_VM_IPS}[2] ${dst_list} @@ -246,18 +266,21 @@ Connectivity Tests From Vm Instance3 In net_2 after recovering all nodes Delete Vm Instances In net_1 [Documentation] Delete Vm instances using instance names in net_1. - : FOR ${vm} IN @{NET_1_VMS} - \ OpenStackOperations.Delete Vm Instance ${vm} + FOR ${vm} IN @{NET_1_VMS} + OpenStackOperations.Delete Vm Instance ${vm} + END Delete Vm Instances In net_2 [Documentation] Delete Vm instances using instance names in net_2. - : FOR ${vm} IN @{NET_2_VMS} - \ OpenStackOperations.Delete Vm Instance ${vm} + FOR ${vm} IN @{NET_2_VMS} + OpenStackOperations.Delete Vm Instance ${vm} + END Delete Router Interfaces [Documentation] Remove Interface to the subnets. - : FOR ${interface} IN @{SUBNETS} - \ OpenStackOperations.Remove Interface @{ROUTERS}[2] ${interface} + FOR ${interface} IN @{SUBNETS} + OpenStackOperations.Remove Interface @{ROUTERS}[2] ${interface} + END Delete Routers [Documentation] Delete Router and Interface to the subnets. @@ -280,8 +303,9 @@ Delete Sub Network In net_2 Delete Networks [Documentation] Delete Networks with neutron request. - : FOR ${network} IN @{NETWORKS} - \ OpenStackOperations.Delete Network ${network} + FOR ${network} IN @{NETWORKS} + OpenStackOperations.Delete Network ${network} + END Delete Security Group [Documentation] Delete security groups with neutron request