Skip to content

Commit 89af1cf

Browse files
monoidicaaronkaplan
authored andcommitted
TST: RIPE expert: test for handling non-RIPE IPs
1 parent cb2bd70 commit 89af1cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
"source.ip": "228.66.141.189",
7676
}
7777

78+
ARIN_IP_EVENT = {"__type": "Event",
79+
"source.ip": "2001:500:110:201::47"}
80+
7881
@test.skip_internet()
7982
class TestRIPEExpertBot(test.BotTestCase, unittest.TestCase):
8083
"""
@@ -263,5 +266,11 @@ def test_index_error(self):
263266
self.run_bot()
264267
self.assertMessageEqual(0, INDEX_ERROR)
265268

269+
def test_arin_ip(self):
270+
self.input_message = ARIN_IP_EVENT
271+
self.run_bot()
272+
self.assertMessageEqual(0, ARIN_IP_EVENT)
273+
274+
266275
if __name__ == '__main__': # pragma: no cover
267276
unittest.main()

0 commit comments

Comments
 (0)