Skip to content

Commit

Permalink
disable the cont3xt threatstram test config (arkime#3092)
Browse files Browse the repository at this point in the history
* disable the cont3xt threatstram test config

* ok, renabled TS, but make tests check relative
  • Loading branch information
awick authored Jan 15, 2025
1 parent 2440552 commit db50bc1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
18 changes: 11 additions & 7 deletions tests/cont3xt.t
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,8 @@ $json = cont3xtPost('/api/integration/search', to_json({
doIntegrations => ["DNS"]
}));

#diag Dumper($json);

is($json->[0]->{purpose}, "init"); # initial integration chunk
is($json->[0]->{sent}, 0);
is($json->[0]->{text}, "more to follow");
Expand All @@ -745,14 +747,16 @@ is($json->[2]->{indicator}->{itype}, "ip");
is($json->[2]->{parentIndicator}->{query}, "example.com");
is($json->[2]->{parentIndicator}->{itype}, "domain");

is($json->[5]->{purpose}, "data");
is($json->[5]->{indicator}->{query}, "example.com");
is($json->[5]->{indicator}->{itype}, "domain");
is($json->[5]->{data}->{_cont3xt}->{count}, 7);
my $size = scalar @{$json};

is($json->[$size - 2]->{purpose}, "data");
is($json->[$size - 2]->{indicator}->{query}, "example.com");
is($json->[$size - 2]->{indicator}->{itype}, "domain");
is($json->[$size - 2]->{data}->{_cont3xt}->{count}, 7);

is($json->[6]->{purpose}, "finish"); # last integration chunk
is($json->[6]->{resultCount}, 7);
is (scalar @{$json}, 7);
is($json->[$size - 1]->{purpose}, "finish"); # last integration chunk
is($json->[$size - 1]->{resultCount}, 7);
is (scalar @{$json}, $size);

$json = cont3xtPost('/api/integration/search', to_json({
query => "http://example.com/blah.html",
Expand Down
1 change: 1 addition & 0 deletions tests/cont3xt.tests.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ disableUserPasswordUI=false
user=test
key=test
locked=true
#disabled=true

[Maxmind]
geoLite2ASN=../tests/GeoLite2-ASN.mmdb
Expand Down

0 comments on commit db50bc1

Please sign in to comment.