Skip to content

Commit

Permalink
Merge improved test data for the ICMP function of the Observer
Browse files Browse the repository at this point in the history
  • Loading branch information
irl committed Oct 20, 2016
2 parents df6554a + b0c110e commit c6532bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ def test_observer_real_flowcount():
lturi = "pcap:tests/testdata/real.pcap"
assert _test_observer(lturi) == 6317

def test_observer_icmp_flowcount():
lturi = "pcap:tests/testdata/icmp.pcap"
assert _test_observer(lturi) == 1
def test_observer_icmp_ttl_flowcount():
lturi = "pcap:tests/testdata/icmp_ttl.pcap"
# the following assertion will break if we take TCP sequence numbers
# into consideration in the observer
assert _test_observer(lturi) == 297

def test_observer_icmp_unreachable_flowcount():
lturi = "pcap:tests/testdata/icmp_unreachable.pcap"
Expand Down
Binary file removed tests/testdata/icmp.pcap
Binary file not shown.
Binary file added tests/testdata/icmp_ttl.pcap
Binary file not shown.

0 comments on commit c6532bb

Please sign in to comment.