Skip to content

Commit

Permalink
Fix Ubuntu issue, don't check cert for www.iana.org
Browse files Browse the repository at this point in the history
  • Loading branch information
awick committed Oct 29, 2014
1 parent 755759c commit a760d81
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
24 changes: 19 additions & 5 deletions tests/README
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
This directory contains simple pcap regression tests.
By running the command "./tests.pl" each pcap file is run thru moloch capture with the results compared against the matching .test file.
Moloch has both capture and viewer regression tests that are run seperately.

* Requires Test::Differences pacakge: `yum install perl-Test-Differences` or `cpan Test::Differences`

1) Capture
Tests if the capture pcap parsers produce consistent results.
Each pcap file is run thru Moloch capture with the results compared against the matching .test file.
The pcap file have been mostly anonymized. mostly... If you see data that shouldn't be there please let us know.
If you have simple sample pcap files that we can use please share them!

Running the command "./tests.pl --viewer" does basic viewer regression.

Run ./tests.pl <optional PCAP files>

Files with known non moloch source:
PCAP files with known non Moloch source:
bigendian.pcap - https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7221




2) Viewer
Test various viewer apis. Requires that an elasticsearch already be running on the local host.

Run ./tests.pl --viewer <optional testname.t files>


3 changes: 2 additions & 1 deletion tests/tests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
################################################################################
sub doGeo {
if (! -f "ipv4-address-space.csv") {
system("wget https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv");
# Certs are hard MKAY
system("wget --no-check-certificate https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv");
}

if (! -f "GeoIPASNum.dat") {
Expand Down

0 comments on commit a760d81

Please sign in to comment.