aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_l2bd_multi_instance.py
AgeCommit message (Collapse)AuthorFilesLines
2017-05-10L2BD/TEST:fix l2bd multiinstance testEyal Bari1-104/+94
Change-Id: If864182ec656cc6c6353be642e22910a4fc89870 Signed-off-by: Eyal Bari <ebari@cisco.com>
2017-01-11make test: improve documentation and PEP8 complianceKlement Sekera1-6/+7
Change-Id: Ib4f0353aab6112fcc3c3d8f0bcbed5bc4b567b9b Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-12-23make test: improve handling of packet capturesKlement Sekera1-13/+2
Perform accounting of expected packets based on created packet infos. Use this accounting info to automatically expect (and verify) the correct number of packets to be captured. Automatically retry the read of the capture file if scapy raises an exception while doing so to handle rare cases when capture file is read while only partially written during busy wait. Don't fail assert_nothing_captured if only junk packets arrived. Change-Id: I16ec2e9410ef510d313ec16b7e13c57d0b2a63f5 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-12-16make test: improve robustness and performanceKlement Sekera1-11/+11
Introduce an API which asserts empty capture for interface. Throw exception in old API if the capture does not exist, thus making it clear if the test expects packets to arrive or not. Improve performance by not doing sleeps after starting the packet generator, rather lazily deleting captures when needed. Fix wrong usage of packet.show() in various tests. Change-Id: I456cb23316eef99b3f35f80344fe595c4db9a21c Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-12-13make test: Use VXLAN built in scapy 2.3.3Matej Klotton1-9/+10
- fix documentation issues. - fix mpls test. Change-Id: Ieef6b4b5e4aca99e89bd03e45a991be89d42adba Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-12-06SPAN API: Fix various errors making SPAN break make tests.Ole Troan1-6/+1
- s/l2/span in span_api.c in foreach macro - Not installing .json from Makefile.am Change-Id: I2469fe01138d62e044b8262cdb5a6e3b009bb43e Signed-off-by: Ole Troan <ot@cisco.com>
2016-12-06API: Adapt make test to Python API changes.Ole Troan1-0/+5
Change the test wrapper script for the updated Python API. All tests but the L2BD multi instance runs fine. That is currently skipped. I see intermittent failures when an MLD message is received before the ND NA in MPLS and IPV6 FIB tests. Change-Id: If809877c9abdf596dbb0a419ce5429552f63d212 Signed-off-by: Ole Troan <ot@cisco.com>
2016-12-05test: l2bd instance multi-context correctionJan1-29/+21
- small correction of docstrings - fix of create_pg_interface Change-Id: I1958bd5ddaddaa2f7e6cbb18b0076e59e86d1e68 Signed-off-by: Jan Gelety <jgelety@cisco.com>
2016-12-02test: l2bd instances multi-context test (CSIT-479)Jan1-0/+505
- add/update/delete L2BD instances and verify results by API command bridge_domain_dump and by traffic where applicable Change-Id: Ic9d7f7b5f6f10e5df7053f27cbc87f653704dab1 Signed-off-by: Jan <jgelety@cisco.com>