diff options
author | Tibor Frank <tifrank@cisco.com> | 2016-10-27 15:33:42 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2016-11-07 17:07:12 +0100 |
commit | 440370de3fc66d5bb9754a55fa78ccce8c598f5d (patch) | |
tree | e5c9b88a6f854d9fc55d5e36e2897809b8fb1300 /tests/func/l2_xconnect | |
parent | efe5c162d2311ed470285a6f84af7c0f3a0c109c (diff) |
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 <tifrank@cisco.com>
Diffstat (limited to 'tests/func/l2_xconnect')
-rw-r--r-- | tests/func/l2_xconnect/l2_xconnect_untagged.robot | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/func/l2_xconnect/l2_xconnect_untagged.robot b/tests/func/l2_xconnect/l2_xconnect_untagged.robot index 05da05308d..2554007cef 100644 --- a/tests/func/l2_xconnect/l2_xconnect_untagged.robot +++ b/tests/func/l2_xconnect/l2_xconnect_untagged.robot @@ -22,8 +22,8 @@ | Library | resources.libraries.python.Trace | Library | resources.libraries.python.NodePath | Force Tags | 3_NODE_SINGLE_LINK_TOPO | HW_ENV | VM_ENV -| Test Setup | Setup all DUTs before test -| Suite Setup | Setup all TGs before traffic script +| Test Setup | Func Test Setup +| Test Teardown | Func Test Teardown | Documentation | *L2 cross-connect test cases* | ... | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology with @@ -63,7 +63,6 @@ | | When All Vpp Interfaces Ready Wait | ${nodes} | | Then Send and receive ICMPv4 bidirectionally | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} -| | [Teardown] | Run Keyword | Show vpp trace dump on all DUTs | TC02: DUT1 and DUT2 with L2XC switch ICMPv6 between two TG links | | [Documentation] @@ -83,7 +82,6 @@ | | When All Vpp Interfaces Ready Wait | ${nodes} | | Then Send and receive ICMPv6 bidirectionally | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} -| | [Teardown] | Run Keyword | Show vpp trace dump on all DUTs | TC03: DUT with two L2XCs switches ICMPv4 between TG and local VM links | | [Documentation] @@ -107,8 +105,9 @@ | | Then Send and receive ICMPv4 bidirectionally | ${tg_node} | ${tg_to_dut_if1} | | ... | ${tg_to_dut_if2} | | [Teardown] | Run Keywords | Show Packet Trace on All DUTs | ${nodes} -| | ... | AND | Stop and Clear QEMU | ${dut_node} | ${vm_node} -| | ... | AND | Show vpp trace dump on all DUTs +| | ... | AND | Stop and Clear QEMU | ${dut_node} | ${vm_node} +| | ... | AND | Show vpp trace dump on all DUTs +| | ... | AND | Check VPP PID in Teardown | TC04: DUT with two L2XCs switches ICMPv6 between TG and local VM links | | [Documentation] @@ -132,6 +131,7 @@ | | Then Send and receive ICMPv6 bidirectionally | ${tg_node} | ${tg_to_dut_if1} | | ... | ${tg_to_dut_if2} | | [Teardown] | Run Keywords | Show Packet Trace on All DUTs | ${nodes} -| | ... | AND | Stop and Clear QEMU | ${dut_node} | ${vm_node} -| | ... | AND | Show vpp trace dump on all DUTs +| | ... | AND | Stop and Clear QEMU | ${dut_node} | ${vm_node} +| | ... | AND | Show vpp trace dump on all DUTs +| | ... | AND | Check VPP PID in Teardown |