X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=tests%2Ffunc%2Ffds%2Feth2p-ethip4vxlan-l2bdbasemaclrn--eth-4vhost-2vm-fds-tenant-nets-func.robot;h=0a2cd0b515264f851a1017ced851c207bfc3987f;hb=53d69321e41aa6fd94abc16c7050314dc2e53f08;hp=ba26c8bb55af32a97f2dc26d3ac70ca3ef312d0b;hpb=982e81efab69bc007455481b6425fcebc7213906;p=csit.git diff --git a/tests/func/fds/eth2p-ethip4vxlan-l2bdbasemaclrn--eth-4vhost-2vm-fds-tenant-nets-func.robot b/tests/func/fds/eth2p-ethip4vxlan-l2bdbasemaclrn--eth-4vhost-2vm-fds-tenant-nets-func.robot index ba26c8bb55..0a2cd0b515 100644 --- a/tests/func/fds/eth2p-ethip4vxlan-l2bdbasemaclrn--eth-4vhost-2vm-fds-tenant-nets-func.robot +++ b/tests/func/fds/eth2p-ethip4vxlan-l2bdbasemaclrn--eth-4vhost-2vm-fds-tenant-nets-func.robot @@ -18,18 +18,16 @@ | Resource | resources/libraries/robot/testing_path.robot | Resource | resources/libraries/robot/double_qemu_setup.robot | Resource | resources/libraries/robot/qemu.robot +| Resource | resources/libraries/robot/fds/default.robot | Library | resources.libraries.python.Trace +| ... | Force Tags | HW_ENV | VM_ENV | SKIP_PATCH -| Test Setup | Run Keywords | Setup all DUTs before test -| ... | AND | Save VPP PIDs -| ... | AND | Setup all TGs before traffic script -| Test Teardown | Run Keywords | Show Packet Trace on All DUTs | ${nodes} -| ... | AND | Show vpp trace dump on all DUTs -| ... | AND | Qemu Teardown | ${dut1_node} | ${qemu_node1} -| ... | qemu_node1 -| ... | AND | Qemu Teardown | ${dut2_node} | ${qemu_node2} -| ... | qemu_node2 -| ... | AND | Check VPP PID in Teardown +| ... +| Test Setup | Set up FDS functional test | ${nodes} +| ... +| Test Teardown | Tear down FDS functional test | ${nodes} +| ... | ${dut1_node} | ${qemu_node1} | ${dut2_node} | ${qemu_node2} +| ... | Documentation | *Tenant network FDS related.* | ... | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG @@ -76,10 +74,10 @@ *** Test Cases *** | L2 test cases with tenant networks (VXLAN) | | [Documentation] | Ping among all ports inside the same network should pass. -| | ... | a) test l2 connectivity inside every network -| | ... | b) test l2 connectivity between networks +| | ... | a) test l2 connectivity inside every network +| | ... | b) test l2 connectivity between networks | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO | VPP_VM_ENV -| | Given Path for 3-node testing is set +| | Given Configure path in 3-node circular topology | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']} | | And Set Interface Address | | ... | ${dut1_node} | ${dut1_to_dut2} | ${dut1_if_ip} | ${prefix_length} @@ -107,30 +105,30 @@ | | ... | ${dut2_node} | ${sock4} | | ${dut2_vhosts}= | And Create List | ${vhost_if1_DUT2} | ${vhost_if2_DUT2} | | ... | ${vhost_if3_DUT2} | ${vhost_if4_DUT2} -| | When Setup QEMU Vhost and Run | ${dut1_node} -| | ... | ${sock1} -| | ... | ${sock2} -| | ... | ${sock3} -| | ... | ${sock4} -| | ... | ${dut1_blue1} -| | ... | ${dut1_blue2} -| | ... | ${dut1_red1} -| | ... | ${dut1_red2} -| | ... | ${prefix_length} -| | ... | qemu_node1 -| | ... | 04 -| | And Setup QEMU Vhost and Run | ${dut2_node} -| | ... | ${sock1} -| | ... | ${sock2} -| | ... | ${sock3} -| | ... | ${sock4} -| | ... | ${dut2_blue1} -| | ... | ${dut2_blue2} -| | ... | ${dut2_red1} -| | ... | ${dut2_red2} -| | ... | ${prefix_length} -| | ... | qemu_node2 -| | ... | 06 +| | When Configure QEMU vhost and run it | ${dut1_node} +| | ... | ${sock1} +| | ... | ${sock2} +| | ... | ${sock3} +| | ... | ${sock4} +| | ... | ${dut1_blue1} +| | ... | ${dut1_blue2} +| | ... | ${dut1_red1} +| | ... | ${dut1_red2} +| | ... | ${prefix_length} +| | ... | qemu_node1 +| | ... | 04 +| | And Configure QEMU vhost and run it | ${dut2_node} +| | ... | ${sock1} +| | ... | ${sock2} +| | ... | ${sock3} +| | ... | ${sock4} +| | ... | ${dut2_blue1} +| | ... | ${dut2_blue2} +| | ... | ${dut2_red1} +| | ... | ${dut2_red2} +| | ... | ${prefix_length} +| | ... | qemu_node2 +| | ... | 06 | | And Setup VXLAN and BD on Dut | ${dut1_node} | ${dut1_if_ip} | ${dut2_if_ip} | | ... | @{dut1_vhosts} | | And Setup VXLAN and BD on Dut | ${dut2_node} | ${dut2_if_ip} | ${dut1_if_ip} @@ -147,7 +145,7 @@ *** Keywords *** | Setup VXLAN and BD on Dut | | [Documentation] | Setup VXLAN and bridge domain on specific DUT and -| | ... | subsequently interconnect them properly. +| | ... | subsequently interconnect them properly. | | ... | | ... | *Arguments:* | | ... | - dut_node - Node where to setup vxlan and BD. Type: dict @@ -161,30 +159,30 @@ | | ... | \| @{vhosts} \| | | ... | | [Arguments] | ${dut_node} | ${src_ip} | ${dst_ip} | @{vhosts} -| | Bridge domain on DUT node is created +| | Create bridge domain | | ... | ${dut_node} | ${bid_b} | learn=${TRUE} -| | Bridge domain on DUT node is created +| | Create bridge domain | | ... | ${dut_node} | ${bid_r} | learn=${TRUE} -| | ${vxlan1_if}= | Create VXLAN interface | ${dut_node} | ${vni_blue} -| | | ... | ${src_ip} | ${dst_ip} -| | ${vxlan2_if}= | Create VXLAN interface | ${dut_node} | ${vni_red} -| | | ... | ${src_ip} | ${dst_ip} -| | Interface is added to bridge domain +| | ${vxlan1_if}= | Create VXLAN interface | ${dut_node} | ${vni_blue} +| | ... | ${src_ip} | ${dst_ip} +| | ${vxlan2_if}= | Create VXLAN interface | ${dut_node} | ${vni_red} +| | ... | ${src_ip} | ${dst_ip} +| | Add interface to bridge domain | | ... | ${dut_node} | ${vxlan1_if} | ${bid_b} | 0 -| | Interface is added to bridge domain +| | Add interface to bridge domain | | ... | ${dut_node} | @{vhosts}[0] | ${bid_b} | 0 -| | Interface is added to bridge domain +| | Add interface to bridge domain | | ... | ${dut_node} | @{vhosts}[1] | ${bid_b} | 0 -| | Interface is added to bridge domain +| | Add interface to bridge domain | | ... | ${dut_node} | ${vxlan2_if} | ${bid_r} | 0 -| | Interface is added to bridge domain +| | Add interface to bridge domain | | ... | ${dut_node} | @{vhosts}[2] | ${bid_r} | 0 -| | Interface is added to bridge domain +| | Add interface to bridge domain | | ... | ${dut_node} | @{vhosts}[3] | ${bid_r} | 0 | Positive Scenario Ping From DUT1 - Intra network | | [Documentation] | Send ping packets from specified namespaces to other in -| | ... | order to test connectivity. +| | ... | order to test connectivity. | | Send Ping From Node To Dst | ${qemu_node1} | ${dut1_blue2} | ${namespace1} | | Send Ping From Node To Dst | ${qemu_node1} | ${dut1_blue1} | ${namespace2} | | Send Ping From Node To Dst | ${qemu_node1} | ${dut1_red2} | ${namespace3} @@ -192,7 +190,7 @@ | Positive Scenario Ping From DUT1 - Inter network | | [Documentation] | Send ping packets from specified namespaces to other in -| | ... | order to test connectivity. +| | ... | order to test connectivity. | | Send Ping From Node To Dst | ${qemu_node1} | ${dut2_blue1} | ${namespace1} | | Send Ping From Node To Dst | ${qemu_node1} | ${dut2_blue2} | ${namespace1} | | Send Ping From Node To Dst | ${qemu_node1} | ${dut2_blue1} | ${namespace2} @@ -204,7 +202,7 @@ | Positive Scenario Ping From DUT2 - Intra network | | [Documentation] | Send ping packets from specified namespaces to other in -| | ... | order to test connectivity. +| | ... | order to test connectivity. | | Send Ping From Node To Dst | ${qemu_node2} | ${dut2_blue2} | ${namespace1} | | Send Ping From Node To Dst | ${qemu_node2} | ${dut2_blue1} | ${namespace2} | | Send Ping From Node To Dst | ${qemu_node2} | ${dut2_red2} | ${namespace3} @@ -212,7 +210,7 @@ | Positive Scenario Ping From DUT2 - Inter network | | [Documentation] | Send ping packets from specified namespaces to other in -| | ... | order to test connectivity. +| | ... | order to test connectivity. | | Send Ping From Node To Dst | ${qemu_node2} | ${dut1_blue1} | ${namespace1} | | Send Ping From Node To Dst | ${qemu_node2} | ${dut1_blue2} | ${namespace1} | | Send Ping From Node To Dst | ${qemu_node2} | ${dut1_blue1} | ${namespace2} @@ -224,7 +222,7 @@ | Negative Scenario Ping From DUT1 - Intra network | | [Documentation] | Send ping packets from specified namespaces to other in -| | ... | order to test unreachability of namespaces. +| | ... | order to test unreachability of namespaces. | | Run keyword and expect error | Ping Not Successful | | ... | Send Ping From Node To Dst | ${qemu_node1} | ${dut1_red1} | | ... | ${namespace1} @@ -250,10 +248,9 @@ | | ... | Send Ping From Node To Dst | ${qemu_node1} | ${dut1_blue2} | | ... | ${namespace4} - | Negative Scenario Ping From DUT1 - Inter network | | [Documentation] | Send ping packets from specified namespaces to other in -| | ... | order to test unreachability of namespaces. +| | ... | order to test unreachability of namespaces. | | Run keyword and expect error | Ping Not Successful | | ... | Send Ping From Node To Dst | ${qemu_node1} | ${dut2_red1} | | ... | ${namespace1} @@ -281,7 +278,7 @@ | Negative Scenario Ping From DUT2 - Intra network | | [Documentation] | Send ping packets from specified namespaces to other in -| | ... | order to test unreachability of namespaces. +| | ... | order to test unreachability of namespaces. | | Run keyword and expect error | Ping Not Successful | | ... | Send Ping From Node To Dst | ${qemu_node2} | ${dut2_red1} | | ... | ${namespace1} @@ -307,10 +304,9 @@ | | ... | Send Ping From Node To Dst | ${qemu_node2} | ${dut2_blue2} | | ... | ${namespace4} - | Negative Scenario Ping From DUT2 - Inter network | | [Documentation] | Send ping packets from specified namespaces to other in -| | ... | order to test unreachability of namespaces. +| | ... | order to test unreachability of namespaces. | | Run keyword and expect error | Ping Not Successful | | ... | Send Ping From Node To Dst | ${qemu_node2} | ${dut1_red1} | | ... | ${namespace1}