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/policer/policer_ip4.robot | 6 ++---- tests/func/policer/policer_ip6.robot | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'tests/func/policer') diff --git a/tests/func/policer/policer_ip4.robot b/tests/func/policer/policer_ip4.robot index 5c9e0bbed2..4cb3686788 100644 --- a/tests/func/policer/policer_ip4.robot +++ b/tests/func/policer/policer_ip4.robot @@ -15,11 +15,9 @@ | Force Tags | 3_NODE_DOUBLE_LINK_TOPO | VM_ENV | HW_ENV | Resource | resources/libraries/robot/policer.robot | Library | resources.libraries.python.Trace -| Test Setup | Run Keywords | Setup all DUTs before test -| ... | AND | Setup all TGs before traffic script +| Test Setup | Run Keywords | Func Test Setup | ... | AND | Setup Topology for IPv4 policer testing -| Test Teardown | Run Keywords | Show Packet Trace on All DUTs | ${nodes} -| ... | AND | Show vpp trace dump on all DUTs +| Test Teardown | Func Test Teardown | Documentation | *IPv4 policer test cases* | ... | ... | *[Top] Network topologies:* TG=DUT1 2-node topology with two links\ diff --git a/tests/func/policer/policer_ip6.robot b/tests/func/policer/policer_ip6.robot index a5721a2d7b..6a7ae1a306 100644 --- a/tests/func/policer/policer_ip6.robot +++ b/tests/func/policer/policer_ip6.robot @@ -15,11 +15,9 @@ | Force Tags | 3_NODE_DOUBLE_LINK_TOPO | VM_ENV | HW_ENV | Resource | resources/libraries/robot/policer.robot | Library | resources.libraries.python.Trace -| Test Setup | Run Keywords | Setup all DUTs before test -| ... | AND | Setup all TGs before traffic script +| Test Setup | Run Keywords | Func Test Setup | ... | AND | Setup Topology for IPv6 policer testing -| Test Teardown | Run Keywords | Show Packet Trace on All DUTs | ${nodes} -| ... | AND | Show vpp trace dump on all DUTs +| Test Teardown | Func Test Teardown | Documentation | *IPv6 policer test cases* | ... | ... | *[Top] Network topologies:* TG=DUT1 2-node topology with two links\ -- cgit 1.2.3-korg