Skip to content

Commit 5381990

Browse files
committed
tst: update gethostbyname expert data
changed IP address of example.com and example.org these hostnames have multiple IP addresses use instead domains with only one result
1 parent 528a376 commit 5381990

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

intelmq/tests/bots/experts/gethostbyname/test_expert.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
from intelmq.bots.experts.gethostbyname.expert import GethostbynameExpertBot
1414

1515
EXAMPLE_INPUT = {"__type": "Event",
16-
"source.fqdn": "example.com",
17-
"destination.fqdn": "example.org",
16+
"source.fqdn": "iana.org",
17+
"destination.fqdn": "nic.at",
1818
"time.observation": "2015-01-01T00:00:00+00:00"
1919
}
2020
EXAMPLE_OUTPUT = {"__type": "Event",
21-
"source.fqdn": "example.com",
22-
"destination.fqdn": "example.org",
23-
"source.ip": "93.184.215.14",
24-
"destination.ip": "93.184.215.14",
21+
"source.fqdn": "iana.org",
22+
"destination.fqdn": "nic.at",
23+
"source.ip": "192.0.43.8",
24+
"destination.ip": "198.251.90.127",
2525
"time.observation": "2015-01-01T00:00:00+00:00"
2626
}
2727
NONEXISTING_INPUT = {"__type": "Event",
@@ -30,15 +30,15 @@
3030
"time.observation": "2015-01-01T00:00:00+00:00"
3131
}
3232
EXAMPLE_URL_INPUT = {"__type": "Event",
33-
"source.url": "http://example.com",
33+
"source.url": "http://iana.org",
3434
}
3535
EXAMPLE_URL_OUTPUT = {"__type": "Event",
36-
"source.url": "http://example.com",
37-
"source.ip": "93.184.215.14",
36+
"source.url": "http://iana.org",
37+
"source.ip": "192.0.43.8",
3838
}
3939
EXISITNG_INPUT = {"__type": "Event",
40-
"source.fqdn": "example.com",
41-
"destination.fqdn": "example.org",
40+
"source.fqdn": "iana.org",
41+
"destination.fqdn": "nic.at",
4242
"source.ip": "10.0.0.1",
4343
"destination.ip": "10.0.0.2",
4444
"time.observation": "2015-01-01T00:00:00+00:00"

0 commit comments

Comments
 (0)