From 440370de3fc66d5bb9754a55fa78ccce8c598f5d Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Thu, 27 Oct 2016 15:33:42 +0200 Subject: CSIT-465: Common test setup and teardown This test setup and teardown is aimed to be used with all functional tests. It does not include functionality to manipulate VMs (qemu). Test setup includes: - Setup all DUTs before test - Save VPP PIDs - Setup all TGs before traffic script - Update All Interface Data On All Nodes Test teardown includes: - Show Packet Trace on All DUTs - Show vpp trace dump on all DUTs - Vpp Show Errors On All DUTs - Check VPP PID in Teardown Change-Id: Ifee0bd58b7865442c5b510852908fd8363e3c543 Signed-off-by: Tibor Frank --- tests/func/softwire/map_e.robot | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) (limited to 'tests/func/softwire/map_e.robot') diff --git a/tests/func/softwire/map_e.robot b/tests/func/softwire/map_e.robot index c8b7f151fa..78246b5e44 100644 --- a/tests/func/softwire/map_e.robot +++ b/tests/func/softwire/map_e.robot @@ -20,17 +20,10 @@ | Resource | resources/libraries/robot/map.robot | Library | resources.libraries.python.IPUtil | Library | resources.libraries.python.Trace -| Force Tags | HW_ENV | VM_ENV | 3_NODE_DOUBLE_LINK_TOPO | Variables | resources/test_data/softwire/map_e_domains.py | ${5} -| Suite Setup | Run Keywords -| ... | Setup All DUTs Before Test | AND -| ... | Setup All TGs Before Traffic Script -| Test Setup | Run Keywords -| ... | Setup All DUTs Before Test | 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 +| Force Tags | HW_ENV | VM_ENV | 3_NODE_DOUBLE_LINK_TOPO +| Test Setup | Func Test Setup +| Test Teardown | Func Test Teardown | Documentation | *Test for Basic mapping rule for MAP-E*\ | ... | *[Top] Network Topologies:* TG - DUT1 - TG with two links between the | ... | nodes. @@ -66,8 +59,7 @@ # TODO: replace setup when VPP-312 fixed #| | [Setup] | Set Interfaces IP Addresses And Routes | | [Setup] | Run Keywords -| | ... | Setup All DUTs Before Test | AND -| | ... | Setup All TGs Before Traffic Script | AND +| | ... | Func Test Setup | AND | | ... | Set Interfaces IP Addresses And Routes | | [Template] | Check MAP Configuration With Traffic Script # |=================|===============|================|============|=============|==========|================|==========|==================================| @@ -92,8 +84,7 @@ # TODO: replace setup when VPP-312 fixed #| | [Setup] | Set Interfaces IP Addresses And Routes | | [Setup] | Run Keywords -| | ... | Setup All DUTs Before Test | AND -| | ... | Setup All TGs Before Traffic Script | AND +| | ... | Func Test Setup | AND | | ... | Set Interfaces IP Addresses And Routes | | [Template] | Check MAP Configuration With Traffic Script # |===================|===============|================|============|=============|==========|================|==========|==================================| @@ -121,8 +112,7 @@ # TODO: replace setup when VPP-312 fixed #| | [Setup] | Set Interfaces IP Addresses And Routes | | [Setup] | Run Keywords -| | ... | Setup All DUTs Before Test | AND -| | ... | Setup All TGs Before Traffic Script | AND +| | ... | Func Test Setup | AND | | ... | Set Interfaces IP Addresses And Routes | | [Template] | Check MAP Configuration With Traffic Script # |===================|===============|================|============|=============|==========|================|==========|===================================| @@ -169,8 +159,7 @@ # TODO: replace setup when VPP-312 fixed #| | [Setup] | Set Interfaces IP Addresses And Routes | | [Setup] | Run Keywords -| | ... | Setup All DUTs Before Test | AND -| | ... | Setup All TGs Before Traffic Script | AND +| | ... | Func Test Setup | AND | | ... | Set Interfaces IP Addresses And Routes | | [Template] | Check MAP Configuration With Traffic Script # |===================|=========================|================|============|=============|==========|================|==========| @@ -187,8 +176,7 @@ # TODO: replace setup when VPP-312 fixed #| | [Setup] | Set Interfaces IP Addresses And Routes | | [Setup] | Run Keywords -| | ... | Setup All DUTs Before Test | AND -| | ... | Setup All TGs Before Traffic Script | AND +| | ... | Func Test Setup | AND | | ... | Set Interfaces IP Addresses And Routes | | [Template] | Check MAP Configuration With Traffic Script # |===================|=========================|================|============|=============|==========|================|==========| @@ -419,7 +407,8 @@ | | [Teardown] | Run Keywords | | ... | Map Del Domain | ${dut_node} | ${domain_index} | AND | | ... | Show Packet Trace On All DUTs | ${nodes} | AND -| | ... | Clear Packet Trace On All DUTs | ${nodes} +| | ... | Clear Packet Trace On All DUTs | ${nodes} | AND +| | ... | Check VPP PID in Teardown | Check Encapsulation With Traffic Script | | [Arguments] | ${ipv4_dst} | ${dst_port} | ${ipv6_dst} -- cgit 1.2.3-korg