Skip to content

Commit

Permalink
tst: update gethostbyname expert data
Browse files Browse the repository at this point in the history
changed IP address of example.com and example.org
these hostnames have multiple IP addresses

use instead domains with only one result
  • Loading branch information
sebix committed Jan 27, 2025
1 parent 528a376 commit 5381990
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions intelmq/tests/bots/experts/gethostbyname/test_expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
from intelmq.bots.experts.gethostbyname.expert import GethostbynameExpertBot

EXAMPLE_INPUT = {"__type": "Event",
"source.fqdn": "example.com",
"destination.fqdn": "example.org",
"source.fqdn": "iana.org",
"destination.fqdn": "nic.at",
"time.observation": "2015-01-01T00:00:00+00:00"
}
EXAMPLE_OUTPUT = {"__type": "Event",
"source.fqdn": "example.com",
"destination.fqdn": "example.org",
"source.ip": "93.184.215.14",
"destination.ip": "93.184.215.14",
"source.fqdn": "iana.org",
"destination.fqdn": "nic.at",
"source.ip": "192.0.43.8",
"destination.ip": "198.251.90.127",
"time.observation": "2015-01-01T00:00:00+00:00"
}
NONEXISTING_INPUT = {"__type": "Event",
Expand All @@ -30,15 +30,15 @@
"time.observation": "2015-01-01T00:00:00+00:00"
}
EXAMPLE_URL_INPUT = {"__type": "Event",
"source.url": "http://example.com",
"source.url": "http://iana.org",
}
EXAMPLE_URL_OUTPUT = {"__type": "Event",
"source.url": "http://example.com",
"source.ip": "93.184.215.14",
"source.url": "http://iana.org",
"source.ip": "192.0.43.8",
}
EXISITNG_INPUT = {"__type": "Event",
"source.fqdn": "example.com",
"destination.fqdn": "example.org",
"source.fqdn": "iana.org",
"destination.fqdn": "nic.at",
"source.ip": "10.0.0.1",
"destination.ip": "10.0.0.2",
"time.observation": "2015-01-01T00:00:00+00:00"
Expand Down

0 comments on commit 5381990

Please sign in to comment.