X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=tests%2Ffunc%2Fhoneycomb%2Fmgmt-cfg-pluginacl-apihc-apivat-func.robot;h=ba63cf6dd4ada498fe7fc0b2ae4167c68b0153ac;hp=b0f202fd3c71d7acf345212774d85986b9def34e;hb=bd680a762d945b7970f7e62b7ee47776f0301f8c;hpb=8452c48c8b3f28ceccbea1e7d42b649238d8f497 diff --git a/tests/func/honeycomb/mgmt-cfg-pluginacl-apihc-apivat-func.robot b/tests/func/honeycomb/mgmt-cfg-pluginacl-apihc-apivat-func.robot index b0f202fd3c..ba63cf6dd4 100644 --- a/tests/func/honeycomb/mgmt-cfg-pluginacl-apihc-apivat-func.robot +++ b/tests/func/honeycomb/mgmt-cfg-pluginacl-apihc-apivat-func.robot @@ -42,14 +42,15 @@ | Library | resources.libraries.python.IPv4Util | Library | resources.libraries.python.IPv6Util | Library | resources.libraries.python.Routing -| Test Teardown | Run Keywords | Read plugin-ACL configuration from VAT -| ... | ${node} | AND -| ... | Clear plugin-acl settings | ${node} | ${dut_to_tg_if1} -| Suite Teardown | Run Keywords | Show Packet Trace on All DUTs | ${nodes} | AND -| ... | Run Keyword If Any Tests Failed -| ... | Restart Honeycomb And VPP And Clear Persisted Configuration | ${node} +| Test Setup | Clear Packet Trace on All DUTs | ${nodes} +| Test Teardown | Run Keywords | Show Packet Trace on All DUTs | ${nodes} +| ... | AND | Read plugin-ACL configuration from VAT | ${node} +| ... | AND | Clear plugin-acl settings | ${node} | ${dut_to_tg_if1} +| Suite Setup | Vpp All ra suppress link layer | ${nodes} +| Suite Teardown +| ... | Restart Honeycomb and VPP | ${node} | Documentation | *Honeycomb access control lists test suite for ACL plugin.* -| Force Tags | Honeycomb_sanity +| Force Tags | honeycomb_sanity | honeycomb_odl *** Test Cases *** | TC01: ACL MAC filtering through plugin-acl node - bridged @@ -62,6 +63,7 @@ | | ... | using different MACs. Receive all packets except those with\ | | ... | MACs in the filtered ranges. | | [Teardown] | Run Keywords +| | ... | Show Packet Trace on All DUTs | ${nodes} | AND | | ... | Clear plugin-acl Settings | ${node} | ${dut_to_tg_if1} | AND | | ... | Honeycomb Removes All Bridge Domains | | ... | ${node} | ${dut_to_tg_if1} | ${dut_to_tg_if2} @@ -73,18 +75,18 @@ | | ... | ${dut_node} | ${dut_to_tg_if1} | ${acl_name_macip} | | ... | ingress | macip=${True} | | When Send TCP Or UDP Packet | ${tg_node} | ${src_ip} | ${dst_ip} -| | ... | ${tg_to_dut_if1} | ${src_mac} -| | ... | ${tg_to_dut_if2} | ${dst_mac} +| | ... | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac} +| | ... | ${tg_to_dut_if2} | ${dut_to_tg_if1_mac} | | ... | TCP | ${src_port} | ${dst_port} | | And Run Keyword And Expect Error | TCP/UDP Rx timeout | | ... | Send TCP Or UDP Packet | ${tg_node} | ${src_ip} | ${dst_ip} | | ... | ${tg_to_dut_if1} | ${classify_src} -| | ... | ${tg_to_dut_if2} | ${dst_mac} +| | ... | ${tg_to_dut_if2} | ${dut_to_tg_if1_mac} | | ... | TCP | ${src_port} | ${dst_port} | | And Run Keyword And Expect Error | TCP/UDP Rx timeout | | ... | Send TCP Or UDP Packet | ${tg_node} | ${src_ip} | ${dst_ip} | | ... | ${tg_to_dut_if1} | ${classify_src2} -| | ... | ${tg_to_dut_if2} | ${dst_mac} +| | ... | ${tg_to_dut_if2} | ${dut_to_tg_if1_mac} | | ... | TCP | ${src_port} | ${dst_port} | TC02: ACL IPv4 filtering through plugin-acl node - bridged @@ -98,6 +100,7 @@ | | ... | to the other, using different IPv4 IPs. Receive all packets except\ | | ... | those with IPs in the filtered ranges and UDP protocol payload. | | [Teardown] | Run Keywords +| | ... | Show Packet Trace on All DUTs | ${nodes} | AND | | ... | Read plugin-ACL configuration from VAT | ${node} | AND | | ... | Clear plugin-acl Settings | ${node} | ${dut_to_tg_if1} | AND | | ... | Honeycomb Removes All Bridge Domains @@ -136,6 +139,7 @@ | | ... | to the other, using different IPv6 IPs. Receive all packets except\ | | ... | those with IPs in the filtered ranges and UDP protocol payload. | | [Teardown] | Run Keywords +| | ... | Show Packet Trace on All DUTs | ${nodes} | AND | | ... | Read plugin-ACL configuration from VAT | ${node} | AND | | ... | Clear plugin-acl Settings | ${node} | ${dut_to_tg_if1} | AND | | ... | Honeycomb Removes All Bridge Domains @@ -174,6 +178,7 @@ | | ... | to the other, using different ports. Receive all packets except\ | | ... | those with ports in the filtered ranges. | | [Teardown] | Run Keywords +| | ... | Show Packet Trace on All DUTs | ${nodes} | AND | | ... | Read plugin-ACL configuration from VAT | ${node} | AND | | ... | Clear plugin-acl Settings | ${node} | ${dut_to_tg_if1} | AND | | ... | Honeycomb Removes All Bridge Domains @@ -213,6 +218,7 @@ | | ... | using IPs and ports. Receive all packets except those with\ | | ... | both IPs and ports in the filtered ranges. | | [Teardown] | Run Keywords +| | ... | Show Packet Trace on All DUTs | ${nodes} | AND | | ... | Read plugin-ACL configuration from VAT | ${node} | AND | | ... | Clear plugin-acl Settings | ${node} | ${dut_to_tg_if1} | AND | | ... | Honeycomb Removes All Bridge Domains @@ -224,19 +230,19 @@ | | And Honeycomb Assigns plugin-acl Chain To Interface | | ... | ${dut_node} | ${dut_to_tg_if1} | ${acl_name_mixed} | ingress | | Then Send TCP Or UDP Packet | ${tg_node} | ${src_ip} | ${dst_ip} -| | ... | ${tg_to_dut_if1} | ${src_mac} -| | ... | ${tg_to_dut_if2} | ${dst_mac} +| | ... | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac} +| | ... | ${tg_to_dut_if2} | ${dut_to_tg_if1_mac} | | ... | TCP | ${src_port} | ${dst_port} | | Then Send TCP Or UDP Packet | ${tg_node} | | ... | ${classify_src_ip} | ${classify_dst_ip} -| | ... | ${tg_to_dut_if1} | ${src_mac} -| | ... | ${tg_to_dut_if2} | ${dst_mac} +| | ... | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac} +| | ... | ${tg_to_dut_if2} | ${dut_to_tg_if1_mac} | | ... | TCP | ${src_port} | ${dst_port} | | And Run Keyword And Expect Error | TCP/UDP Rx timeout | | ... | Send TCP Or UDP Packet | ${tg_node} | | ... | ${classify_src_ip} | ${classify_dst_ip} -| | ... | ${tg_to_dut_if1} | ${src_mac} -| | ... | ${tg_to_dut_if2} | ${dst_mac} +| | ... | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac} +| | ... | ${tg_to_dut_if2} | ${dut_to_tg_if1_mac} | | ... | TCP | ${classify_src_port} | ${classify_dst_port} | TC06: ACL ICMP packet filtering - bridged @@ -251,6 +257,7 @@ | | [Tags] | EXPECTED_FAILING # Bug VPP-624, ICMP type/code values are not matched | | [Teardown] | Run Keywords +| | ... | Show Packet Trace on All DUTs | ${nodes} | AND | | ... | Read plugin-ACL configuration from VAT | ${node} | AND | | ... | Clear plugin-acl Settings | ${node} | ${dut_to_tg_if1} | AND | | ... | Honeycomb Removes All Bridge Domains @@ -290,6 +297,7 @@ | | [Tags] | EXPECTED_FAILING # Bug VPP-624, ICMP type/code values are not matched | | [Teardown] | Run Keywords +| | ... | Show Packet Trace on All DUTs | ${nodes} | AND | | ... | Read plugin-ACL configuration from VAT | ${node} | AND | | ... | Clear plugin-acl Settings | ${node} | ${dut_to_tg_if1} | AND | | ... | Honeycomb Removes All Bridge Domains @@ -331,6 +339,7 @@ | | [Tags] | EXPCETED_FAILING # Bug VPP-633, VPP crashes when any packet hits a reflexive rule | | [Teardown] | Run Keywords +| | ... | Show Packet Trace on All DUTs | ${nodes} | AND | | ... | Read plugin-ACL configuration from VAT | ${node} | AND | | ... | Clear plugin-acl Settings | ${node} | ${dut_to_tg_if1} | AND | | ... | Honeycomb Removes All Bridge Domains @@ -509,18 +518,18 @@ | | And Honeycomb Assigns plugin-acl Chain To Interface | | ... | ${dut_node} | ${dut_to_tg_if1} | ${acl_name_mixed} | ingress | | Then Send TCP Or UDP Packet | ${tg_node} | ${src_ip} | ${dst_ip} -| | ... | ${tg_to_dut_if1} | ${src_mac} -| | ... | ${tg_to_dut_if2} | ${dst_mac} +| | ... | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac} +| | ... | ${tg_to_dut_if2} | ${dut_to_tg_if1_mac} | | ... | TCP | ${src_port} | ${dst_port} | | Then Send TCP Or UDP Packet | ${tg_node} | | ... | ${classify_src_ip} | ${classify_dst_ip} -| | ... | ${tg_to_dut_if1} | ${src_mac} -| | ... | ${tg_to_dut_if2} | ${dst_mac} +| | ... | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac} +| | ... | ${tg_to_dut_if2} | ${dut_to_tg_if1_mac} | | ... | TCP | ${src_port} | ${dst_port} | | And Run Keyword And Expect Error | TCP/UDP Rx timeout | | ... | Send TCP Or UDP Packet | ${tg_node} | | ... | ${classify_src_ip} | ${classify_dst_ip} -| | ... | ${tg_to_dut_if1} | ${src_mac} +| | ... | ${tg_to_dut_if1} | ${tg_to_dut_if1_mac} | | ... | ${tg_to_dut_if2} | ${dst_mac} | | ... | TCP | ${classify_src_port} | ${classify_dst_port} @@ -629,7 +638,7 @@ # routed interfaces not yet supported by ACL plugin (no Jira id available) # Bug VPP-633, VPP crashes when any packet hits a reflexive rule | | Given Setup Interface IPs And Routes For IPv4 plugin-acl Test -| | ... | icmp | ${acl_name_reflex} +| | ... | reflex | ${acl_name_reflex} | | And Add ARP on DUT | | ... | ${node} | ${dut_to_tg_if1} | ${gateway2} | ${tg_to_dut_if1_mac} | | And VPP Route Add