aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_classifier.py
AgeCommit message (Collapse)AuthorFilesLines
2016-12-23make test: improve handling of packet capturesKlement Sekera1-39/+46
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-21make test: Add classifier - ip/mac/pbr casesSteve Shin1-0/+343
Change-Id: I9cdf022a48b2b63e7ce07f4f5322ffda28c08ff0 Signed-off-by: Steve Shin <jonshin@cisco.com>